Re: [PATCH] target/riscv: fix exception index on instruction access fault

2021-04-19 Thread Alistair Francis
On Tue, Apr 20, 2021 at 10:56 AM Alistair Francis wrote: > > On Sat, Apr 17, 2021 at 12:48 AM Emmanuel Blot > wrote: > > > > When no MMU is used and the guest code attempts to fetch an instruction > > from an invalid memory location, the exception index defaults to a data > > load access fault,

Re: [PATCH] target/riscv: fix exception index on instruction access fault

2021-04-19 Thread Alistair Francis
On Sat, Apr 17, 2021 at 12:48 AM Emmanuel Blot wrote: > > When no MMU is used and the guest code attempts to fetch an instruction > from an invalid memory location, the exception index defaults to a data > load access fault, rather an instruction access fault. > > Signed-off-by: Emmanuel Blot Re

[PATCH] target/riscv: fix exception index on instruction access fault

2021-04-16 Thread Emmanuel Blot
When no MMU is used and the guest code attempts to fetch an instruction from an invalid memory location, the exception index defaults to a data load access fault, rather an instruction access fault. Signed-off-by: Emmanuel Blot --- target/riscv/cpu_helper.c | 4 +++- 1 file changed, 3 insertio