target/arm: Implement arm_cpu_record_sigbus
commit39a099ca25670b9fed838a09887fe8a1fdd803d3
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 23 Jul 2021 22:22:54 +0000 (23 12:22 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 2 Nov 2021 11:00:52 +0000 (2 07:00 -0400)
tree9a19867b4dacfbe6a11662bf75557dd72d18af7f
parente7424abc201ea06ff91a15fd86a533a22cd8dff4
target/arm: Implement arm_cpu_record_sigbus

Because of the complexity of setting ESR, re-use the existing
arm_cpu_do_unaligned_access function.  This means we have to
handle the exception ourselves in cpu_loop, transforming it
to the appropriate signal.

Reviewed-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/aarch64/cpu_loop.c
linux-user/arm/cpu_loop.c
target/arm/cpu.c
target/arm/cpu_tcg.c
target/arm/internals.h
target/arm/tlb_helper.c