On 7/8/2025 2:07 PM, Xu Lu wrote:
> When supervisor CSRs are accessed from VU-mode, a virtual instruction
> exception should be raised instead of an illegal instruction.
>
> Fixes: c1fbcecb3a (target/riscv: Fix csr number based privilege checking)
> Signed-off-by: Xu Lu
> ---
> target/riscv/csr.
On Tue, Jul 8, 2025 at 11:37 AM Xu Lu wrote:
>
> When supervisor CSRs are accessed from VU-mode, a virtual instruction
> exception should be raised instead of an illegal instruction.
>
> Fixes: c1fbcecb3a (target/riscv: Fix csr number based privilege checking)
> Signed-off-by: Xu Lu
LGTM.
Revie
When supervisor CSRs are accessed from VU-mode, a virtual instruction
exception should be raised instead of an illegal instruction.
Fixes: c1fbcecb3a (target/riscv: Fix csr number based privilege checking)
Signed-off-by: Xu Lu
---
target/riscv/csr.c | 2 +-
1 file changed, 1 insertion(+), 1 dele
FYI, the discussion about whether vs insn fault or illegal insn fault
should be raised can be found from [1].
[1] https://lists.riscv.org/g/tech-privileged/message/2469
On Tue, Jul 8, 2025 at 2:07 PM Xu Lu wrote:
>
> When supervisor CSRs are accessed from VU-mode, a virtual instruction
> excepti