Skip to content

Gem5 fails with panic: cpu stucked!! #682

@ZyablitskiyA

Description

@ZyablitskiyA

Hello dear XiangShan Gem5 developers!
I've crafted a simple repro for a problem I encounter running heavy inhouse tests. Could you please take a look?

Attaching a binary of the simple repro.
ipf.bin.tar.gz

Expected behavior: successful exit
Actual behavior: failure with the below text (--debug-flags Exec)

1768896: system.cpu: T0 : 0x80040000    : jal zero, 4036             : IntAlu :  D=0x0000000080040004
build/RISCV/cpu/o3/[commit.cc](http://commit.cc/):748: warn: cpu may be stucked
build/RISCV/cpu/o3/[commit.cc](http://commit.cc/):745: warn: [sn:2804] c_lw a2, 52(s0)
build/RISCV/cpu/o3/[commit.cc](http://commit.cc/):746: panic: cpu stucked!!

To reproduce, run a simulation with command line:
../gem5.opt --debug-flags Exec ../configs/example/xiangshan.py --maxinsts 10000000000 --raw-cpt --generic-rv-cpt ./ipf.bin
gem5 version I'm using: a75b15c
nexus-am version: 5ca795e3c07658d7d98dd09adfbdbd2cbc342566

I am happy to provide any additional details by your request.
Thank you!

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