qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Peter Maydell
Subject: Re: [PATCH for-7.1 v6 34/51] target/nios2: Enable unaligned traps for system mode
Date: Thu, 17 Mar 2022 16:06:32 +0000

On Thu, 17 Mar 2022 at 05:35, Richard Henderson
<richard.henderson@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.henderson@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.maydell@linaro.org>

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]