[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 22/41] target/arm: Use cpu_loop_exit_sigsegv for mte tag looku
From: |
Richard Henderson |
Subject: |
[PATCH v4 22/41] target/arm: Use cpu_loop_exit_sigsegv for mte tag lookup |
Date: |
Wed, 6 Oct 2021 10:22:48 -0700 |
Use the new os interface for raising the exception,
rather than calling arm_cpu_tlb_fill directly.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/mte_helper.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/target/arm/mte_helper.c b/target/arm/mte_helper.c
index 724175210b..e09b7e46a2 100644
--- a/target/arm/mte_helper.c
+++ b/target/arm/mte_helper.c
@@ -84,10 +84,8 @@ static uint8_t *allocation_tag_mem(CPUARMState *env, int
ptr_mmu_idx,
uintptr_t index;
if (!(flags & (ptr_access == MMU_DATA_STORE ? PAGE_WRITE_ORG :
PAGE_READ))) {
- /* SIGSEGV */
- arm_cpu_tlb_fill(env_cpu(env), ptr, ptr_size, ptr_access,
- ptr_mmu_idx, false, ra);
- g_assert_not_reached();
+ cpu_loop_exit_sigsegv(env_cpu(env), ptr, ptr_access,
+ !(flags & PAGE_VALID), ra);
}
/* Require both MAP_ANON and PROT_MTE for the page. */
--
2.25.1
- [PATCH v4 34/41] target/ppc: Implement ppc_cpu_record_sigsegv, (continued)
- [PATCH v4 34/41] target/ppc: Implement ppc_cpu_record_sigsegv, Richard Henderson, 2021/10/06
- [PATCH v4 24/41] target/cris: Make cris_cpu_tlb_fill sysemu only, Richard Henderson, 2021/10/06
- [PATCH v4 07/41] linux-user/host/x86: Populate host_signal.h, Richard Henderson, 2021/10/06
- [PATCH v4 09/41] linux-user/host/alpha: Populate host_signal.h, Richard Henderson, 2021/10/06
- [PATCH v4 37/41] target/s390x: Implement s390_cpu_record_sigsegv, Richard Henderson, 2021/10/06
- [PATCH v4 39/41] target/sparc: Make sparc_cpu_tlb_fill sysemu only, Richard Henderson, 2021/10/06
- [PATCH v4 11/41] linux-user/host/arm: Populate host_signal.h, Richard Henderson, 2021/10/06
- [PATCH v4 01/41] accel/tcg: Split out adjust_signal_pc, Richard Henderson, 2021/10/06
- [PATCH v4 08/41] linux-user/host/ppc: Populate host_signal.h, Richard Henderson, 2021/10/06
- [PATCH v4 02/41] accel/tcg: Move clear_helper_retaddr to cpu loop, Richard Henderson, 2021/10/06
- [PATCH v4 22/41] target/arm: Use cpu_loop_exit_sigsegv for mte tag lookup,
Richard Henderson <=
- [PATCH v4 25/41] target/hexagon: Remove hexagon_cpu_tlb_fill, Richard Henderson, 2021/10/06
- [PATCH v4 31/41] target/nios2: Implement nios2_cpu_record_sigsegv, Richard Henderson, 2021/10/06
- [PATCH v4 30/41] target/mips: Make mips_cpu_tlb_fill sysemu only, Richard Henderson, 2021/10/06
- [PATCH v4 32/41] linux-user/openrisc: Adjust signal for EXCP_RANGE, EXCP_FPE, Richard Henderson, 2021/10/06
- [PATCH v4 36/41] target/s390x: Use probe_access_flags in s390_probe_access, Richard Henderson, 2021/10/06
- [PATCH v4 35/41] target/riscv: Make riscv_cpu_tlb_fill sysemu only, Richard Henderson, 2021/10/06
- [PATCH v4 38/41] target/sh4: Make sh4_cpu_tlb_fill sysemu only, Richard Henderson, 2021/10/06
- [PATCH v4 40/41] target/xtensa: Make xtensa_cpu_tlb_fill sysemu only, Richard Henderson, 2021/10/06