]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm: Add a _MAX sentinel to ARMASIdx enum
authorGustavo Romero <gustavo.romero@linaro.org>
Fri, 16 Jan 2026 18:58:13 +0000 (15:58 -0300)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 22 Jan 2026 09:48:46 +0000 (10:48 +0100)
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 <gustavo.romero@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-ID: <20260116185814.108560-4-gustavo.romero@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
target/arm/cpu.h

index 2f124d1b157ab0cb06c21175add84e1fc93f5131..1eaf5a3fddff22d6afa815b8488b0e298d9a2d84 100644 (file)
@@ -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)