You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the previous issues and did not find anything relevant. 我已经搜索过之前的 issue,并没有找到相关的。
I have reviewed the commit messages from the relevant commit history. 我已经浏览过相关的提交历史和提交信息。
Describe the bug
When executing .word 0x6781 instruction to Xiangshan, riscv64-spike-so has an exception, but Xiangshan does not. I think this is a decoding related problem .
Expected behavior
When testing with riscv64-spike-so
When I debug with spike, the .word 0x6781 instruction corresponds to c.lui a5, 0x0
In addition, I don't know if nemu has such a problem, because when I use nemu as a reference model, the following log message appears:
@vincen-dev
The critical-error currently indicates more than two traps occurring within the same privilege level. At present, XiangShan/NEMU/Spike considers this error a software issue rather than a hardware issue (i.e., it is normal for the hardware to throw a critical-error). This requires verifying the software implementation. As a result, the system will directly trigger a good trap (indicating that the hardware behavior meets expectations) and print a critical-error warning. We recommend checking the test cases for common issues, such as not setting mtvec, when this error occurs.
Thank you for your issue. This is actually a bug caused by a mismatch between XiangShan and Spike. The provided Spike does not enable the Zimop and Zcmop extensions, while XiangShan supports them. As a result, Spike raised an exception, whereas XiangShan did not.
Additionally, I recommend using .half instead of .word when inserting a C-extension instruction. If you use .word but only provide 2 bytes of data, the remaining 2 bytes will be automatically set to 0. This would result in an invalid instruction, which is likely to interfere with our judgment.
Before start
Describe the bug
When executing
.word 0x6781
instruction to Xiangshan,riscv64-spike-so
has an exception, but Xiangshan does not. I think this is a decoding related problem .Expected behavior
When testing with
riscv64-spike-so
When I debug with spike, the .word
0x6781
instruction corresponds toc.lui a5, 0x0
In addition, I don't know if
nemu
has such a problem, because when I use nemu as a reference model, the following log message appears:To Reproduce
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: