From nobody Sun Jan 25 11:58:48 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=1769072268; cv=none; d=zohomail.com; s=zohoarc; b=kEonfH7YsszAF3if9a+TGb5ILtqK2zH4DM109oG9tfIhDXyaqzPof3araras7U/AVcMjq94nnjMXynH6j94yQ3c+PUKq2kuI0WXRxpGrPG7L0tiUKi5OW0wV/BQmHDIQn4XoSWB/1xhVpRgIK8P7xniiNS7BWYBi2Zs7oTCLoGk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769072268; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=Jx2MTEh6sIqMM1OGINhFt99VXMr3lBlqUEdHP0I77/k=; b=FEMZhybmtASnYNRDFxXrgrFdEIDpsL6nmyZspsc67pgwzpgjD6SkZodeMNFyfJuWw9kNrcgChNzQi8PZOFZyB6meZ4bLuhFFi+N1XlqsEwJTQIuXBo9/DNBwJXmCjdqWmyK2bdmKFlP/aZUbGxpsbrxF3PBwLtf7qKYEf40bqd4= 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 176907226801987.95645607857455; Thu, 22 Jan 2026 00:57:48 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1viqUR-0004Jx-1i; Thu, 22 Jan 2026 03:56:31 -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 1viqU2-0003bk-9y for qemu-devel@nongnu.org; Thu, 22 Jan 2026 03:56:12 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1viqU0-0006KW-Mr for qemu-devel@nongnu.org; Thu, 22 Jan 2026 03:56:06 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-47ee76e8656so9377995e9.0 for ; Thu, 22 Jan 2026 00:56:03 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-480497035cdsm14497205e9.19.2026.01.22.00.56.01 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 22 Jan 2026 00:56:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769072162; x=1769676962; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Jx2MTEh6sIqMM1OGINhFt99VXMr3lBlqUEdHP0I77/k=; b=gDyoYl+BJhTEeDGpT74HeeGPOSMI5MhSTg87j0kZrFs1Q4ryPPXGwnoxqcIRdkIBy5 CxyxLp2EjoUy+g60X9C+qy7MT1oYnYbMx9WqwlmlLZMfDujfjBh93SE3Ekdg/jXwKZLq /CARKrbpozbc1cbMEDSZBT02m1h/QuH1xrCpJTziTLq7imdxbPbLzmRbpxN6PpIMff+Q qYyBebfqHEyL4QEv3D5Bc2P5gs7KosuVSac1By6VE4nAwXHazEO6f+kmyEGnwZcD02l6 T7MacGF+puZobVWbIjVK8nlD17BiOhysH7/zUl2q/cdHP55n5egrufUdGv3Dz93TsuCx ijsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769072162; x=1769676962; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Jx2MTEh6sIqMM1OGINhFt99VXMr3lBlqUEdHP0I77/k=; b=UvLTdjf65inP4LdvruiiJyH6ylfEBrXvBqaxDxabtrmCHa2SoVXeDO3DsOl1PCt4ET 04hgF01B944gaS6taGGqbmnWoEOMiwaBXbc7A9nWvhU4U9CecHqz6LNgss/T+17sPcgE 7vIRJKS3sDhoIt3S0bw6nHHFa0WGwhGMMt21FRS6FZU/2aeR+BUqytPznF+Z6Gkp/+Kf sxF4B/h/LTbX5BxKKAg+Arn/4SvWgIRy0zRfAAtkg0SJMTPrEVRUQ2I3o+vKoAYh/bLe hJpyJVppktSn+XImh3I29X2DJwSL2Njkiv7VIqju+k2BCQ3yOhHpEcoyPazIcJw0fVHv 7rMw== X-Gm-Message-State: AOJu0YxnuC1UkH5Dopuwcsu73mj8NCpLPwafH1iZ31hf4N0id0RIP7DR E9B/8z6fUco4TANpz/OeCdCIPfEfsoUYwAqSKovnCafq4SfhsDCnWVjfieYuFlvKZJYd+mbsn0z /xXLmKZk= X-Gm-Gg: AZuq6aIdvqCrY9JWQKKUN3cNzotvrMgHSRUOTUdPIWanNzZwpY6RBul/DrnoeUId0bb exsw6i0ruS8XxZa4bC4TBahcxN4hfsgrYChym0s/P5X8vNba+7p0/PWuC4PqdqHESfC7mLAXkKW J8vrdLtwvlmqKQzfNQGC7dkt1LVjF8B2YLvomIf4Wng6aa2Xsg1Kn8KToLHzZLxy2SYIhbOF1yM Wzb6c7EJSAEzH7RoVgC32PRhKOBv/BD/IARidILEA/LgE/VRpKSOV1YkCdiCXHwdXJneAE+sKdf SDuQTvgfyLudgjQssJhL5y9tr3IhMXCiLXCL3g3Nuu2Aq51zL/AcjZh5aPV8F44H2EWWmxOcl2u 8uZSOn/mZT/le5RjGv+JjJ1ZyeZjxF1RzyswngUTPRvElPpY47aHmTSF+4+xu/yfycaALICsGjy AbAO/HN41emO4bDg+IvZKLLxf7FE3/IpA5DvP9Wqa2GYRUKi38/1aDqo/dAxteE7QR7TIPIOE= X-Received: by 2002:a05:600c:820b:b0:47a:9560:ec28 with SMTP id 5b1f17b1804b1-4803e7a2d1dmr110270785e9.13.1769072162181; Thu, 22 Jan 2026 00:56:02 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 28/31] target/arm: Initialize AS 0 first Date: Thu, 22 Jan 2026 09:52:51 +0100 Message-ID: <20260122085255.95035-29-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260122085255.95035-1-philmd@linaro.org> References: <20260122085255.95035-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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=ham 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: 1769072268641158500 From: Gustavo Romero Move the initialization of AS of index 0 (ARMASIdx_NS) so it happens before the initialization of the other address spaces. This is purely a code organization change with no effect on behavior. Signed-off-by: Gustavo Romero Suggested-by: Alex Benn=C3=A9e Reviewed-by: Pierrick Bouvier Message-ID: <20260116185814.108560-2-gustavo.romero@linaro.org> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/arm/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 05fa3339b1a..8d5987397ad 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -2159,6 +2159,8 @@ static void arm_cpu_realizefn(DeviceState *dev, Error= **errp) cs->num_ases =3D 1 + has_secure; } =20 + cpu_address_space_init(cs, ARMASIdx_NS, "cpu-memory", cs->memory); + if (has_secure) { if (!cpu->secure_memory) { cpu->secure_memory =3D cs->memory; @@ -2176,8 +2178,6 @@ static void arm_cpu_realizefn(DeviceState *dev, Error= **errp) } } =20 - cpu_address_space_init(cs, ARMASIdx_NS, "cpu-memory", cs->memory); - /* No core_count specified, default to smp_cpus. */ if (cpu->core_count =3D=3D -1) { cpu->core_count =3D smp_cpus; --=20 2.52.0