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 <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>
This commit is contained in:
Richard Henderson 2025-09-25 17:11:32 -07:00 committed by Peter Maydell
parent 59bcd13b64
commit a0f1bb0dfe

View 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. */