Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mcause is different between xiangshan and spike when execute sh. #3878

Open
ha0lyu opened this issue Nov 16, 2024 · 0 comments
Open

mcause is different between xiangshan and spike when execute sh. #3878

ha0lyu opened this issue Nov 16, 2024 · 0 comments

Comments

@ha0lyu
Copy link
Contributor

ha0lyu commented Nov 16, 2024

I have tested it in the newest version, it works! No more mstatus different for now.
However, this test case raise mcause different:

sh      s2, 1259(s0)   # test case
-------------------
privilegeMode: 3
 mcause different at pc = 0x0080000030, right= 0x0000000000000007, wrong = 0x0000000000000006

I ran this test case, the mcause value is 6 in the official spike, which is the same as XiangShan. But in spike-diff, it is 7, nemu-diff reported nothing.

Thanks.

Originally posted by @ha0lyu in #3860 (comment)

NEMU HIT GOOD TRAP:mcause-nemu.log
spike-so raise different:mcause-spike.log

To Reproduce

sh      s2, 1259(s0

Environment
XiangShan branch: master
XiangShan commit id: 011f1eff
NEMU commit id: b9507fbc
SPIKE commit id:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant