Skip to content

Encountered Issues in Generating SPEC2006 Checkpoints for RV64GV #829

@xhzzz28

Description

@xhzzz28

https://docs.xiangshan.cc/zh-cn/latest/tools/simpoint/
根据此文档进行操作,使用riscv-pk流程,在生成rv64g以及rv64g_Zicond_Zba_Zbb流程正常;
使用gcc14编译rv64gv版本的spec2006,在进行profiling时会出现如下错误:

  • cd /spec
  • ./gcc 166.i -o 166.s
    [ 0.000000] gcc[21]: unhandled signal 4 code 0x1 at 0x0000000000317b00 in gcc[10000+4ce000]
    [ 0.000000] CPU: 0 PID: 21 Comm: gcc Not tainted 4.18.0-14486-g655055af981b-dirty # 182
    [ 0.000000] sepc: 0000000000317b00 ra : 000000000036a3e8 sp : 0000003fffed8c10
    [ 0.000000] gp : 00000000004e68d8 tp : 00000000005a3760 t0 : 0000000000000002
    [ 0.000000] t1 : 0000000000317580 t2 : 0000000000000000 s0 : 00000000004decc8
    [ 0.000000] s1 : 0000000000000001 a0 : 0000000000000004 a1 : 0000003fffed8db8
    [ 0.000000] a2 : 0000003fffed8de0 a3 : 0000000000000000 a4 : 0000003fffed8c38
    [ 0.000000] a5 : 00000000000105d8 a6 : 0000000000000004 a7 : 0000000000000010
    [ 0.000000] s2 : 0000000000000004 s3 : 0000003fffed8db8 s4 : 0000003fffed8de0
    [ 0.000000] s5 : 0000000000000001 s6 : 00000000000105d8 s7 : 0000000000010230
    [ 0.000000] s8 : 0000000000000000 s9 : 0000000000000000 s10: ffffffffffffffff
    [ 0.000000] s11: 000000000012e790 t3 : 0000000000000000 t4 : 00000000004e57b0
    [ 0.000000] t5 : 00000000005a2750 t6 : 00000000004deca0
    [ 0.000000] sstatus: 0000000200002020 sbadaddr: 00000000c22022f3 scause: 0000000000000002
    Illegal instruction
  • date -R
    Thu, 01 Jan 1970 00:00:00 +0000
  • set +x

通过反汇编文件追踪到是执行此指令时出现问题
317b00: c22022f3 csrr t0,vlenb

请问如何解决

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions