-
Notifications
You must be signed in to change notification settings - Fork 663
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
Wrong mstatus, mtval
value when Xiangshan executes an illegal instruction.
#3860
Comments
mstatus, mtval
value when Xiangshan executes illegal instruction.mstatus, mtval
value when Xiangshan executes an illegal instruction.
hello@ha0lyu 😄 I have reviewed the test case and log information you submitted. In both NEMU and spike-so, the value of the mtval register is Regarding the discrepancy you mentioned with the mstatus register, it may be due to the fact that both XiangShan and NEMU have implemented the SMDBLTRP extension (RISC-V M-mode Double Trap Extension), which is not implemented in Spike. You can find more details here: OpenXiangShan/NEMU#641 (comment) |
Hi @fly-1011,
As for the error Let's keep this issue open until this bug fixed. |
Thanks for @fly-1011 response. |
For |
Hi @lewislzh,
I ran this test case, the Thanks. |
This seems to be a new issue. Please create a new issue for it. |
Before start
Describe the bug
When xiangshan execute an illegal instruction
fld fa1, 160(a1)
, xiangshan gets wrongmstatus & mtval
comparing withready-to-run/spike-so
,mtval
is certainly wrong because it is also different from the result of NEMU. Please check the two log files for details.Expected behavior
mstatus & mtval is right value.
To Reproduce
test.zip
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: