]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm: Fix GPT fault type for address outside PPS
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 26 Sep 2025 00:11:32 +0000 (17:11 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 7 Oct 2025 10:26:10 +0000 (11:26 +0100)
The GPT address size fault is for the table itself.  The physical
address being checked gets Granule protection fault at Level 0 (R_JFFHB).

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-id: 20250926001134.295547-9-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/ptw.c

index 36917be83e3fea8bf98678a5804804517f43f863..236c3a9569b2f20bd020a2a8a8ed865aa31e686b 100644 (file)
@@ -413,7 +413,7 @@ static bool granule_protection_check(CPUARMState *env, uint64_t paddress,
         if (pspace == ARMSS_NonSecure) {
             return true;
         }
-        goto fault_size;
+        goto fault_fail;
     }
 
     /* GPC Priority 4: the base address of GPTBR_EL3 exceeds PPS. */