Closed zhangkanqi closed 7 months ago
Sorry, I forget that RSD merely supports M-mode.
But what should RSD do when encounter mret
instruction? Doing nothing?
Thank you for your report. After checking the specification, I found the following statement, which leads me to believe that the FS field should be updated by privileged code (software), and the SD should be updated by hardware according to the FS. Consequently, it appears that the hardware does not need to update the FS on the mret. Furthermore, the FS and SD have not been implemented yet and should be implemented.
I see. Thanks for your reply:)
Bug Description:
The previous value of
mstatus
is 0x00007800, but after executingmret
instruction,mstatus
is still 0x00007800. However, according to the riscv specification as below,mstatus
should be 0x80006080, which spike does so.