OSDN Git Service

target/alpha: Implement prctl_unalign_sigbus
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Dec 2021 15:01:25 +0000 (07:01 -0800)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 6 Jan 2022 10:40:52 +0000 (11:40 +0100)
commitfed142461780f714e83123833a8d9682c32f68ee
treee4aed76bb492cf64fceb8c5be23f3aed3e540f8a
parent6e8dcacd0840b3c38e7ec664bb9adbccc2108fdd
target/alpha: 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.

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