|
From: | Weiwei Li |
Subject: | Re: [PATCH 2/4] target/riscv: Remove check on mode for MPRV |
Date: | Sat, 3 Jun 2023 21:46:33 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
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~
[Prev in Thread] | Current Thread | [Next in Thread] |