|
From: | Laurent Vivier |
Subject: | Re: [PATCH v2 6/6] target/sh4: Implement prctl_unalign_sigbus |
Date: | Mon, 27 Dec 2021 16:40:06 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 |
Le 27/12/2021 à 16:01, Richard Henderson a écrit :
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> --- linux-user/sh4/target_prctl.h | 2 +- target/sh4/cpu.h | 4 +++ target/sh4/translate.c | 50 ++++++++++++++++++++++++----------- 3 files changed, 39 insertions(+), 17 deletions(-)
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
[Prev in Thread] | Current Thread | [Next in Thread] |