On 2023/6/3 05:01, Richard Henderson wrote:
On 6/1/23 18:31, Weiwei Li wrote:Even though MPRV normally can be set to 1 in M mode, it seems possible to set it to 1 in other mode by gdbstub.That would seem to be a gdbstub bug, since it is cleared on exit from M-mode, and cannot be set again until we re-enter M-mode.
Yeah, MPRV normally can be set only in M mode. However, gdbstub can bypass the check on privilege mode for CSRs access inriscv_csrrw_check.
Regards, Weiwei Li
r~