From: Gustavo Romero Date: Fri, 16 Jan 2026 18:58:13 +0000 (-0300) Subject: target/arm: Add a _MAX sentinel to ARMASIdx enum X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d60038fc84f2cdb6c99a75149e46f861700332d;p=thirdparty%2Fqemu.git target/arm: Add a _MAX sentinel to ARMASIdx enum Add a sentinel to the ARMASIdx enum so it can be used to compute the total number of address spaces supported by the arch. Signed-off-by: Gustavo Romero Reviewed-by: Pierrick Bouvier Message-ID: <20260116185814.108560-4-gustavo.romero@linaro.org> Signed-off-by: Philippe Mathieu-Daudé --- diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 2f124d1b15..1eaf5a3fdd 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -2347,6 +2347,7 @@ typedef enum ARMASIdx { ARMASIdx_S = 1, ARMASIdx_TagNS = 2, ARMASIdx_TagS = 3, + ARMASIdx_MAX = ARMASIdx_TagS } ARMASIdx; static inline ARMMMUIdx arm_space_to_phys(ARMSecuritySpace space)