From: Gustavo Romero Date: Fri, 16 Jan 2026 18:58:12 +0000 (-0300) Subject: target/i386: Add a _MAX sentinel to X86ASIdx enum X-Git-Tag: v11.0.0-rc0~103^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=500bf3dfcfd077cb442138677b6ec6bb23026d63;p=thirdparty%2Fqemu.git target/i386: Add a _MAX sentinel to X86ASIdx enum 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 Reviewed-by: Pierrick Bouvier Message-ID: <20260116185814.108560-3-gustavo.romero@linaro.org> Signed-off-by: Philippe Mathieu-Daudé --- diff --git a/target/i386/cpu.h b/target/i386/cpu.h index 2bbc977d908..da5161fc1a5 100644 --- a/target/i386/cpu.h +++ b/target/i386/cpu.h @@ -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