From nobody Mon Oct 27 14:08:33 2025 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=1761231430; cv=none; d=zohomail.com; s=zohoarc; b=F4yv3qpYBCX/0c4wML8BCovLStL33NZaB7HupOZoNBFl+q3KH0xq86y/zC7luq7HliKs7F5k8rS0xKb9Vs3bG2rfceq9mOh99LshtqYYmShYaI3xiWiq0q7JW3RwbShFUUBwuWOBXyQd17RtYKkVooD3BTpNHedSXAP6BKBOvfA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761231430; h=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=Uir+DCzIAMR+d974t4+bUz1BzOrdumPLHshzxJg6y18=; b=JRROKu+7IekWh7fGvT30Wccb3wQprmje/q1OdPcEy19vuyOSSK0DS4fSs0ZAfcGd02zrPaKKsNuf7sZuiFR0WXx3XSeXwZgnSPgq5vhnjgg9LqeLgVz9zSL73oR7Z8CAa7UW5SGnGHYUZfabA/Ef8DTuhYsqNQlLfRLzBaWck1M= 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 1761231430179649.3742903658033; Thu, 23 Oct 2025 07:57:10 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vBwjY-0004lc-HP; Thu, 23 Oct 2025 10:56:08 -0400 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 1vBwjX-0004kq-7R for qemu-devel@nongnu.org; Thu, 23 Oct 2025 10:56:07 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vBwjV-0005Yh-LN for qemu-devel@nongnu.org; Thu, 23 Oct 2025 10:56:07 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-4711f3c386eso7068755e9.0 for ; Thu, 23 Oct 2025 07:56:05 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-429898acc63sm4398465f8f.27.2025.10.23.07.56.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Oct 2025 07:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761231364; x=1761836164; 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=Uir+DCzIAMR+d974t4+bUz1BzOrdumPLHshzxJg6y18=; b=omHNIL5jwWoKP2Yy6fmPHi+2t1bMg1aHfqaZyxz/h8pOXIGM50OyuWtZcnTznSy8Cq den9zjIzc52DT184cI4HsORGQ9wTIkuuGLO8JEGqJDXlxDov6vAalfCHN2WORO5Nkblv L4jE2V0MppxeJqJy91eeSl95nWBmwzfLyTQKdKDzFvcakimDFLEkzQjoSAT3h65jFT8W kkUiAwnF0ypXAC0zRQTcqEuO+TSj81zQLTmQZgyMCVZouNQ/F5VWIf3yS9SVMkY/RdE3 gsaveM3vBXqFf9fvF9slOs9FSrBnA5JQ2PeootN1dbRiiKUdgRwid93wsytL721mLmec bepg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761231364; x=1761836164; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Uir+DCzIAMR+d974t4+bUz1BzOrdumPLHshzxJg6y18=; b=dKqT6sZ/KsqC+zoFw6pK7u3+kHw+qSd5O3fAHOdCiBwCb7uRGDf93piJ+bDa2xpFO7 Tnwoo0sauYuwhqgkZ0Tlg/cemLNk18/kR/wa984lvUOi+kZJASKDNsF9f9v1Ghshbkf9 Dw6AMK9mcIbh9ltc9wvP8hQ1CA9+AwtPqyH1o6x4JY+2TVsoSyYzeYRwsXwaya4nqkwu Uq4IR5D0Zifp2WONrEPz4ODb9xM8U5D6yRpjWhsCTyTnB8A0axmZinq8vivw0ZxRSlnD 477iH6Jh2pdPI8I9CYBzfSX8mtgrRVm+hKzWYcFTWnelcPhXRoJhFgl/w6/FEJEZlnmg aYUQ== X-Gm-Message-State: AOJu0YzsjryYxXWCH9ctEFEiJHQIQsxKuKL3LeiZ7yHqtGvTVP8wVe4U FKTivarmePIwznGcoQBdUNhhSAIhywzBNZ29zvrnNexF577aDX7dnFzfiAExEDFiNoXveBrfQnA +lrSA X-Gm-Gg: ASbGncvTC32VCkac19aEa4KHl/KXCjtf64Wnp4/Y0j6GW1VNj1kis8GYeAQAun/dI2j fEGp+Tdjyc0EU0renK2NicAVZeOqa7XYZ/b2KWjuQ3ffyDPNfvvmmFXgOElo+19jO9ZBfUD+CCf mQ7MviXh9lnyrTMxXXEDEKR6NBJeUsIHEebIBsvyEhQBro9gQ69onysIEpam+oRMk83GCxnCIgR c+K+ehthdoksStIP+t++Jh97VrkDFqxBUSvZtJvGWsg6v6MSqCdpivC1JChce0D+40sTw0XCuGX M8TRgva8LweyBCLYonbtoPXPRDX1vgDwzBMMRa+TKKE4/UmaBW92HHwyo1/15vKWRbqbYbbvoKx +AJ57Xp/pw5RpL+Ij/yZ40q3Flz8R6SUUP7cX1q9zmaOcj+UNuJrAtPWzQAD0oS7WdGGGSV+zGu KXJMPNQWb7frgBBGiV X-Google-Smtp-Source: AGHT+IGFH9fqQoz5JcUH9ZqWVsIxK2xPgUeyiXkZk/iYHaU8qxWV//fmaDrJ3pjKff8VfgAipIU3Eg== X-Received: by 2002:a05:600c:3548:b0:471:131f:85aa with SMTP id 5b1f17b1804b1-471178a74a2mr148248165e9.13.1761231363677; Thu, 23 Oct 2025 07:56:03 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 07/16] target/arm: Use el local indexing mair_el Date: Thu, 23 Oct 2025 15:55:45 +0100 Message-ID: <20251023145554.2062752-8-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251023145554.2062752-1-peter.maydell@linaro.org> References: <20251023145554.2062752-1-peter.maydell@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 client-ip=2a00:1450:4864:20::32a; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32a.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: 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: 1761231431917154100 Content-Type: text/plain; charset="utf-8" From: Richard Henderson We already have regime_el() computed to a local. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20251014195017.421681-6-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- target/arm/ptw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/ptw.c b/target/arm/ptw.c index 54c45fc9feb..5fcf1042726 100644 --- a/target/arm/ptw.c +++ b/target/arm/ptw.c @@ -2319,7 +2319,7 @@ static bool get_phys_addr_lpae(CPUARMState *env, S1Tr= anslate *ptw, =20 /* Index into MAIR registers for cache attributes */ attrindx =3D extract32(attrs, 2, 3); - mair =3D env->cp15.mair_el[regime_el(mmu_idx)]; + mair =3D env->cp15.mair_el[el]; result->cacheattrs.is_s2_format =3D false; result->cacheattrs.attrs =3D extract64(mair, attrindx * 8, 8); =20 --=20 2.43.0