target/arm: Use cpu_loop_exit_sigsegv for mte tag lookup
Use the new os interface for raising the exception, rather than calling arm_cpu_tlb_fill directly. Reviewed-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
90113883af
commit
5e98763c0e
|
@ -84,10 +84,8 @@ static uint8_t *allocation_tag_mem(CPUARMState *env, int ptr_mmu_idx,
|
||||||
uintptr_t index;
|
uintptr_t index;
|
||||||
|
|
||||||
if (!(flags & (ptr_access == MMU_DATA_STORE ? PAGE_WRITE_ORG : PAGE_READ))) {
|
if (!(flags & (ptr_access == MMU_DATA_STORE ? PAGE_WRITE_ORG : PAGE_READ))) {
|
||||||
/* SIGSEGV */
|
cpu_loop_exit_sigsegv(env_cpu(env), ptr, ptr_access,
|
||||||
arm_cpu_tlb_fill(env_cpu(env), ptr, ptr_size, ptr_access,
|
!(flags & PAGE_VALID), ra);
|
||||||
ptr_mmu_idx, false, ra);
|
|
||||||
g_assert_not_reached();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Require both MAP_ANON and PROT_MTE for the page. */
|
/* Require both MAP_ANON and PROT_MTE for the page. */
|
||||||
|
|
Loading…
Reference in New Issue