From nobody Tue Feb 10 13:36:21 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1768590004; cv=none; d=zohomail.com; s=zohoarc; b=Gnd1ZcuEl9UtZIQ+M2LgekNWwvjvQK4ncbUTSl/Iu8glCQKcrFWALgwmsBY6c1ttx/cxVPz1t0OR+44bd72G7Fhza3yOcuCoMmRQPx8WygjZbHI3rO12tbI44Cre7qdFGqxD8YtFZYsVTF9zNtcl21trCVW4KwNykv4XBdzFN4U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1768590004; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=0cae0AKU0AXhKRe7liQDqczScNpFcN33Kwt7lSzXYw0=; b=khAVPLzGg5ViyrcBNzAdQm6NQBVmPUc3eA95ifGSLK21f7B7hba0fFKrPNjnrDSVEdzQ0HC0pacNZ/M3EqBlBHu4UqtW/v0/RmnPENClKb8FDU+UibcU2wsrH6FIm9LVIoZwlegRKsc0B/ef91w+PQmdnsPQsgfrES5h/uCUZ1s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1768590004385107.98081830332148; Fri, 16 Jan 2026 11:00:04 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vgp27-0001Kp-7m; Fri, 16 Jan 2026 13:58:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vgp25-0001KG-LA for qemu-devel@nongnu.org; Fri, 16 Jan 2026 13:58:54 -0500 Received: from mail-dy1-x132f.google.com ([2607:f8b0:4864:20::132f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vgp23-0000lS-Sx for qemu-devel@nongnu.org; Fri, 16 Jan 2026 13:58:53 -0500 Received: by mail-dy1-x132f.google.com with SMTP id 5a478bee46e88-2b6b0500e06so2001149eec.1 for ; Fri, 16 Jan 2026 10:58:51 -0800 (PST) Received: from gromero0.. ([191.8.214.17]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2b6c2de1f29sm1524126eec.15.2026.01.16.10.58.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jan 2026 10:58:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1768589930; x=1769194730; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0cae0AKU0AXhKRe7liQDqczScNpFcN33Kwt7lSzXYw0=; b=Np8FqvN7CuPRfsAEGVeggKT/11HLyXAVEQCogvp85gRElnN3gtCbhQCh47A8LEh5rt kELtR5xrICx2ufShrsQZsQA2H2o+rYZmIZVxklWJNhGuwr7pfXne8KEHXIB4yJ9nNeu0 5lo06dneRGGMsqyPOoUR6ZpV9AKw8yUrENNIqM89ckhndu+HJjjPGnX6pXBgsZ6vIkZK A2xv9KJE77efyCUyKjdg/R2vnZAm8+cw43VgXhnH0+iC5Z3Vyu8LuJ+iEiZO1YS8hpRk +gyRYZprMsfW7iCWDH09abdItd7ZKu5FxWXas8dGPZN4kRLrXIQuQUdFu/SkTp7UqaSJ TJeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768589930; x=1769194730; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=0cae0AKU0AXhKRe7liQDqczScNpFcN33Kwt7lSzXYw0=; b=USTP8f972OIGaU3SoQ6jTzSlDbRoA7w0Dv19+kiROa34TIzHDLOeWzFnBJWQwYuldT vlKedJhyQ+/k6jeS3kqIWp5Iitet5y8yWluqg2LbG4EYg7EC8EBreH6LJCbaPevDw5fe z1mPHzdp6Lg10Cq4qU591LwjLYHSUn63iAzA81vagOrpa60Ja/uKwadVH3PzYI5vyCnx D4myPZzSvEOBygl8/ZTdeOLHmcGfuCQOK14OSQ7z37IOa0rSixcoLr4PsI3rX6Ms2/G9 qhGwCS6EIB1kWSJmcbmsMiKKV6cz6lJAmO79jRQAsGpLm2CnW6DtJNxtxymZ+5rVpeNT q40A== X-Gm-Message-State: AOJu0YxKI40TJ9Kknig04j8sRcOqMU/FZPX8+mP1MWph+p5RcyD3qRtF xddUFQzsGBrTreATfCaPXhW1vfFXOj73VYgwGcaLoGF1mQ+pBQWq6gXPciebATMQpmmFBkfwc7Z 8CBhL X-Gm-Gg: AY/fxX6MPNds29aIBHg7Uc+WYoK/QYuhgtCr+IWTrCkPKHMbQuRw9IdN7pfiZw9cUd6 Xwerhkr44JJOfWPZDY7q+NYwM699bMJG2bwYrUd/AmMcRXVpwa5hEQNrlqB3aVmDIPntBu91Brh an3KEw6x5hsGJuvVRsrhq9bp63/y35HMORywXYaWYz16dqGoni+2/k9G4mi+viKKDo0yCFCg4C5 xRtaikwyXavdcm0lAcaRGKYwAcdc/X92WZMQbjl2xHFWHu34exdukV8UvayFLf/QGig+s7qd9wM 6q9gW8nHVclKwXVMD9tMhkdLbkUTQ59XIf6J2ta6V0iejM4uDEywkY4gLVeb5S3Wn7SBG3LhB6e uelk5+n9zHkz2V0fy3zdNVHgV2KxqzTfPa9Akb0g+srkRrOATiuFzB8DJ1QP3MxncUEXUDzNBds /ysOwziL4xWRuCIA== X-Received: by 2002:a05:7301:129a:b0:2ab:9b40:fc78 with SMTP id 5a478bee46e88-2b6b40f3574mr2511745eec.20.1768589928927; Fri, 16 Jan 2026 10:58:48 -0800 (PST) From: Gustavo Romero To: qemu-devel@nongnu.org, qemu-arm@nongnu.org, richard.henderson@linaro.org, alex.bennee@linaro.org, philmd@linaro.org, peter.maydell@linaro.org Cc: gustavo.romero@linaro.org Subject: [PATCH v4 2/4] target/i386: Add a _MAX sentinel to X86ASIdx enum Date: Fri, 16 Jan 2026 15:58:12 -0300 Message-Id: <20260116185814.108560-3-gustavo.romero@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260116185814.108560-1-gustavo.romero@linaro.org> References: <20260116185814.108560-1-gustavo.romero@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::132f; envelope-from=gustavo.romero@linaro.org; helo=mail-dy1-x132f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1768590005592158500 Content-Type: text/plain; charset="utf-8" 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 --- target/i386/cpu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/target/i386/cpu.h b/target/i386/cpu.h index 2bbc977d90..da5161fc1a 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 =3D 0, X86ASIdx_SMM =3D 1, + X86ASIdx_MAX =3D X86ASIdx_SMM } X86ASIdx; =20 #ifndef CONFIG_USER_ONLY --=20 2.34.1