diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-07-23 12:22:54 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-11-02 07:00:52 -0400 |
commit | 39a099ca25670b9fed838a09887fe8a1fdd803d3 (patch) | |
tree | 9a19867b4dacfbe6a11662bf75557dd72d18af7f /target/arm/cpu.c | |
parent | e7424abc201ea06ff91a15fd86a533a22cd8dff4 (diff) | |
download | qemu-39a099ca25670b9fed838a09887fe8a1fdd803d3.zip qemu-39a099ca25670b9fed838a09887fe8a1fdd803d3.tar.gz qemu-39a099ca25670b9fed838a09887fe8a1fdd803d3.tar.bz2 |
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>
Diffstat (limited to 'target/arm/cpu.c')
-rw-r--r-- | target/arm/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 7a18a58..a211804 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -2035,6 +2035,7 @@ static const struct TCGCPUOps arm_tcg_ops = { #ifdef CONFIG_USER_ONLY .record_sigsegv = arm_cpu_record_sigsegv, + .record_sigbus = arm_cpu_record_sigbus, #else .tlb_fill = arm_cpu_tlb_fill, .cpu_exec_interrupt = arm_cpu_exec_interrupt, |