Re: [PATCH for-7.1 v6 34/51] target/nios2: Enable unaligned traps for system mode

2022-03-17 Thread Peter Maydell
On Thu, 17 Mar 2022 at 05:35, Richard Henderson wrote: > > Unaligned traps are optional, but required with an mmu. > Turn them on always, because the fallback behaviour is not > documented (though presumably it discards low bits). Mmm; the instruction descriptions just say "the operation is undef

[PATCH for-7.1 v6 34/51] target/nios2: Enable unaligned traps for system mode

2022-03-16 Thread Richard Henderson
Unaligned traps are optional, but required with an mmu. Turn them on always, because the fallback behaviour is not documented (though presumably it discards low bits). Enable alignment checks in the config file. Unwind the guest pc properly from do_unaligned_access. Signed-off-by: Richard Henders