From nobody Mon Nov 17 01:31:45 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1602174361; cv=none; d=zohomail.com; s=zohoarc; b=hZ7svR5BwE7Pj6N0W9GtTS3BT2fKlG5EhqSlG/mcHJpophrhM0r1fF6FbvDaQSi8t1mVOgQKCc8PwKXwSF9M5dtdXt/VqqNjF9k4O3zR1Fd+SS/ZGim5GoO+dtyVJXedyvk5zRlA7VfrQJghPwa1hYWL3toU+v/heCoFqhxHIz4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602174361; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=siDQkbvJh9Bvpko0a5lV9YTIkAumZtHw2Xcw/++VZdY=; b=neHfJQNLccypfVNXlEmdXoTCkl3lcgwwoKcFL4DMpwBUkEj1PV9G7t6dyjEDd884eWTB12RXvfBrbkgn6nyfL3ciN4aqlvmpnQVmcJfo49L+x+AgnNj1MlqoXZzklFg8tKPtqk675bMhh9ytkgY/jgd624Nw3jzk5pbXbkyIHoM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1602174361712537.743600865502; Thu, 8 Oct 2020 09:26:01 -0700 (PDT) Received: from localhost ([::1]:57116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQYjw-0006ic-H1 for importer@patchew.org; Thu, 08 Oct 2020 12:26:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQYgL-0002Wk-Pv for qemu-devel@nongnu.org; Thu, 08 Oct 2020 12:22:17 -0400 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]:41217) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQYgC-0007e3-W5 for qemu-devel@nongnu.org; Thu, 08 Oct 2020 12:22:17 -0400 Received: by mail-ot1-x341.google.com with SMTP id q21so5999940ota.8 for ; Thu, 08 Oct 2020 09:22:00 -0700 (PDT) Received: from localhost.localdomain (168.189-204-159.bestelclientes.com.mx. [189.204.159.168]) by smtp.gmail.com with ESMTPSA id l138sm5076218oih.32.2020.10.08.09.21.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 09:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=siDQkbvJh9Bvpko0a5lV9YTIkAumZtHw2Xcw/++VZdY=; b=Wye5DEjHWxQHtc/xyy4JqjU0Jj/GF+1CrQloR02V1GTG4c/t8gNQqdXxBJwSVgW3Nq 9Jubj0jphT3qdYuPh2t0kJA0SeRHDZMHqkxd8Y0PZN33xV+FIdJ8j3kYq0H0+gZEE0TF cm2AI5VBuACe1OWLCqBLYu8YR3FKYTEtSIyCDpO45klC+gB9fhM4Sg3gnIlpUmSuBdQx AM2LKgjyCuIpCU9ca8vDQvWrZaTehsZOMBvRO5lVuGrIY/B7cx4rtWe1mdPB122a7dGf i9lyREBIJfUy4EfTRrC6zggXbW9ybd5UWSBmOGti1/GduE1FQz9Gcdmc8voz1A9ZZ+TO 0Cpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=siDQkbvJh9Bvpko0a5lV9YTIkAumZtHw2Xcw/++VZdY=; b=DmhmXmeht5Oif8Ok/WHuI0/9D5KrMQSvYHs65F5d13QaCY6kypRBsc3OGM1ENQHJcv krJBqCJjF63qU+YYJ0zy+qvn7hdhoZAUctJw9p40+sdVTN/BPeRviTWNsfXVbqVf1mX4 HPZO93Arvi3tSBdtbn9TRHc3cag8QTc5101myyizGG6eWE/3LpuUSOPV3Cxdtw/+QTKU rx2uPrm75BryvbO60xRIeXppdPlYhqhA4sixl5T6B2o+Ybbgfs4dOO98XOqoHmlPEUUQ zdMp9+3kHAVRLhs+m3D3qEd5QlsbFG8NT/Zc4ZU5y/rktv7dt48tloUl/eZnkNI4t0JV cUGQ== X-Gm-Message-State: AOAM533CFhm2VJAOPbqY+eq9zLULOER+1WaUS3EwklBqSDy1m8iPux5s tkBtVpJUNc1u7t81ruU27GJ4ZnynaAJmdrZU X-Google-Smtp-Source: ABdhPJwaMIc4XJkw5ujvlIY4ORtvV1HrNmIFf/xfNfOQNNvrovZjYJYQ17iVQMaRJc41wQKnZeT6rg== X-Received: by 2002:a9d:2a83:: with SMTP id e3mr5346596otb.237.1602174119678; Thu, 08 Oct 2020 09:21:59 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 1/3] target/arm: Remove redundant mmu_idx lookup Date: Thu, 8 Oct 2020 11:21:53 -0500 Message-Id: <20201008162155.161886-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201008162155.161886-1-richard.henderson@linaro.org> References: <20201008162155.161886-1-richard.henderson@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=2607:f8b0:4864:20::341; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x341.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org, vincenzo.frascino@arm.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" We already have the full ARMMMUIdx as computed from the function parameter. For the purpose of regime_has_2_ranges, we can ignore any difference between AccType_Normal and AccType_Unpriv, which would be the only difference between the passed mmu_idx and arm_mmu_idx_el. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Vincenzo Frascino Tested-by: Vincenzo Frascino --- target/arm/mte_helper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/arm/mte_helper.c b/target/arm/mte_helper.c index 5615c6706c..734cc5ca67 100644 --- a/target/arm/mte_helper.c +++ b/target/arm/mte_helper.c @@ -563,8 +563,7 @@ static void mte_check_fail(CPUARMState *env, uint32_t d= esc, =20 case 2: /* Tag check fail causes asynchronous flag set. */ - mmu_idx =3D arm_mmu_idx_el(env, el); - if (regime_has_2_ranges(mmu_idx)) { + if (regime_has_2_ranges(arm_mmu_idx)) { select =3D extract64(dirty_ptr, 55, 1); } else { select =3D 0; --=20 2.25.1