]> git.proxmox.com Git - mirror_qemu.git/commit - target/arm/cpu.c
target/arm: Implement arm_cpu_record_sigsegv
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 18 Sep 2021 01:23:07 +0000 (18:23 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 2 Nov 2021 11:00:52 +0000 (07:00 -0400)
commit9b12b6b44250c23cd29161ca7007559e22beaf94
treeb25c25b064d47bf4b419be2eb8a0749ad0f1697c
parent5e98763c0ef55fbd8fe4fe8614825ab508543d32
target/arm: Implement arm_cpu_record_sigsegv

Because of the complexity of setting ESR, continue to use
arm_deliver_fault.  This means we cannot remove the code
within cpu_loop that decodes EXCP_DATA_ABORT and
EXCP_PREFETCH_ABORT.

But using the new hook means that we don't have to do the
page_get_flags check manually, and we'll be able to restrict
the tlb_fill hook to sysemu later.

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