target/arm/ptw: Flip sense of get_phys_addr_pmsav8 return value
Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20260515142541.571911-8-peter.maydell@linaro.org
Peter Maydell committed
May 15, 2026 at 15:25 UTC
26f790fe37a1bcc5d4551a5a01ef8b667bad628a
1 file changed
+4
-4
target/arm/ptw.c
+4
-4
@@ -3191,7 +3191,7 @@ static bool get_phys_addr_pmsav8(CPUARMState *env,
3191
result->f.lg_page_size = sattrs.subpage ? 0 : TARGET_PAGE_BITS;
3192
result->f.phys_addr = address;
3193
result->f.prot = 0;
3194
- return true;
3194
+ return false;
3195
}
3196
} else {
3197
/*
@@ -3217,12 +3217,12 @@ static bool get_phys_addr_pmsav8(CPUARMState *env,
3217
result->f.lg_page_size = sattrs.subpage ? 0 : TARGET_PAGE_BITS;
3218
result->f.phys_addr = address;
3219
result->f.prot = 0;
3220
- return true;
3220
+ return false;
3221
}
3222
}
3223
}
3224
3225
- ret = pmsav8_mpu_lookup(env, address, access_type, ptw->in_prot_check,
3225
+ ret = !pmsav8_mpu_lookup(env, address, access_type, ptw->in_prot_check,
3226
mmu_idx, secure, result, fi, NULL);
3227
/*
3228
* For two-stage PMSA translations, s2prot holds the stage 2
@@ -3755,7 +3755,7 @@ static bool get_phys_addr_nogpc(CPUARMState *env, S1Translate *ptw,
3755
3756
if (arm_feature(env, ARM_FEATURE_V8)) {
3757
/* PMSAv8 */
3758
- ret = get_phys_addr_pmsav8(env, ptw, address, access_type,
3758
+ ret = !get_phys_addr_pmsav8(env, ptw, address, access_type,
3759
result, fi);
3760
} else if (arm_feature(env, ARM_FEATURE_V7)) {
3761
/* PMSAv7 */