]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/sh4: Implement prctl_unalign_sigbus
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Dec 2021 15:01:27 +0000 (07:01 -0800)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 6 Jan 2022 10:40:52 +0000 (11:40 +0100)
commit4da06fb306276946e227669bfc4df2077a8fa6c9
tree5c03601e404ad94039fe33c41a789a8bfec1cf32
parent217d1a5ef887c2013dc7446adff856e795cd8488
target/sh4: Implement prctl_unalign_sigbus

Leave TARGET_ALIGNED_ONLY set, but use the new CPUState
flag to set MO_UNALN for the instructions that the kernel
handles in the unaligned trap.

The Linux kernel does not handle all memory operations: no
floating-point and no MAC.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20211227150127.2659293-7-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/sh4/target_prctl.h
target/sh4/cpu.h
target/sh4/translate.c