diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-11-07 11:33:45 -0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-11-13 09:17:21 -0800 |
commit | 17fe594c59c7a7304c663534ffb0853eb7e903d5 (patch) | |
tree | 969238c15afba4f8ae7a40085b8812d03a53bf22 /target/hppa/mem_helper.c | |
parent | 2a23f0f1189666fe453027eca60daf03c561bfd6 (diff) |
target/hppa: Introduce MMU_IDX_MMU_DISABLED
Reduce the number of direct checks against MMU_PHYS_IDX.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/hppa/mem_helper.c')
-rw-r--r-- | target/hppa/mem_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/hppa/mem_helper.c b/target/hppa/mem_helper.c index a13f200359..af8e86699d 100644 --- a/target/hppa/mem_helper.c +++ b/target/hppa/mem_helper.c @@ -367,8 +367,8 @@ bool hppa_cpu_tlb_fill(CPUState *cs, vaddr addr, int size, trace_hppa_tlb_fill_excp(env, addr, size, type, mmu_idx); /* Failure. Raise the indicated exception. */ - raise_exception_with_ior(env, excp, retaddr, - addr, mmu_idx == MMU_PHYS_IDX); + raise_exception_with_ior(env, excp, retaddr, addr, + MMU_IDX_MMU_DISABLED(mmu_idx)); } trace_hppa_tlb_fill_success(env, addr & TARGET_PAGE_MASK, |