]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/i386: Add a _MAX sentinel to X86ASIdx enum
authorGustavo Romero <gustavo.romero@linaro.org>
Fri, 16 Jan 2026 18:58:12 +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 X86ASIdx 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-3-gustavo.romero@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
target/i386/cpu.h

index 2bbc977d90880a943b24b0c531f2874609c86afc..da5161fc1a50e762bac0367f5f0f6317bfea2857 100644 (file)
@@ -2733,6 +2733,7 @@ void cpu_sync_avx_hflag(CPUX86State *env);
 typedef enum X86ASIdx {
     X86ASIdx_MEM = 0,
     X86ASIdx_SMM = 1,
+    X86ASIdx_MAX = X86ASIdx_SMM
 } X86ASIdx;
 
 #ifndef CONFIG_USER_ONLY