From: Richard Henderson Date: Fri, 26 Sep 2025 00:11:32 +0000 (-0700) Subject: target/arm: Fix GPT fault type for address outside PPS X-Git-Tag: v10.2.0-rc1~74^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0f1bb0dfeb2c8cd806349aa5938d9aab6ef1d61;p=thirdparty%2Fqemu.git target/arm: Fix GPT fault type for address outside PPS 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 Reviewed-by: Pierrick Bouvier Message-id: 20250926001134.295547-9-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- diff --git a/target/arm/ptw.c b/target/arm/ptw.c index 36917be83e..236c3a9569 100644 --- a/target/arm/ptw.c +++ b/target/arm/ptw.c @@ -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. */