Re: [PATCH] target/riscv: Fix exception type when VU accesses supervisor CSRs

2025-07-21 Thread Nutty Liu
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.

Re: [PATCH] target/riscv: Fix exception type when VU accesses supervisor CSRs

2025-07-15 Thread Anup Patel
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

[PATCH] target/riscv: Fix exception type when VU accesses supervisor CSRs

2025-07-08 Thread Xu Lu
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

Re: [PATCH] target/riscv: Fix exception type when VU accesses supervisor CSRs

2025-07-08 Thread Xu Lu
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