On Thu, 17 Mar 2022 at 05:35, Richard Henderson <richard.hender...@linaro.org> 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 undefined", so I guess we can do whatever we like :-) > Enable alignment checks in the config file. > Unwind the guest pc properly from do_unaligned_access. > > Signed-off-by: Richard Henderson <richard.hender...@linaro.org> > --- > target/nios2/helper.c | 4 ++-- > configs/targets/nios2-softmmu.mak | 1 + > 2 files changed, 3 insertions(+), 2 deletions(-) Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM