Re: [PATCH] target/riscv: Fix VS mode hypervisor CSR access

2022-05-09 Thread Alistair Francis
On Fri, May 6, 2022 at 11:16 PM Dylan Reid wrote: > > VS mode access to hypervisor CSRs should generate virtual, not illegal, > instruction exceptions. > > Don't return early and indicate an illegal instruction exception when > accessing a hypervisor CSR from VS mode. Instead, fall through to the

Re: [PATCH] target/riscv: Fix VS mode hypervisor CSR access

2022-05-09 Thread Alistair Francis
On Fri, May 6, 2022 at 11:16 PM Dylan Reid wrote: > > VS mode access to hypervisor CSRs should generate virtual, not illegal, > instruction exceptions. > > Don't return early and indicate an illegal instruction exception when > accessing a hypervisor CSR from VS mode. Instead, fall through to the

[PATCH] target/riscv: Fix VS mode hypervisor CSR access

2022-05-06 Thread Dylan Reid
VS mode access to hypervisor CSRs should generate virtual, not illegal, instruction exceptions. Don't return early and indicate an illegal instruction exception when accessing a hypervisor CSR from VS mode. Instead, fall through to the `hmode` predicate to return the correct virtual instruction ex