Message ID | 20220703082419.770989-39-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5036:0:0:0:0 with SMTP id e22csp2928536mab; Sun, 3 Jul 2022 02:05:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s/IB33S/N72dhUt1+Fm+G5QQ8CgaFJukznJcY1j/GQPSIPWmEwFXeapQu2sm7pknslphhv X-Received: by 2002:a81:6dce:0:b0:31c:9398:45a5 with SMTP id i197-20020a816dce000000b0031c939845a5mr222117ywc.65.1656839111713; Sun, 03 Jul 2022 02:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656839111; cv=none; d=google.com; s=arc-20160816; b=GDu7Pgienghodcs3G/lUJNjMcmO/pguEU4zsQATKTP+MaLszwQfvtBirX94wnbbknG UWFe/2jqVjJOybQsb28eun7H/1wKO1fo4oeL4alKJftKYfc70meKtAuejSPQdCcOeKsg eZOvESeukuScprk/e1uVMR+QJqEuBTWPG5IeoZkI1s4XSGHZIhKLcIofN6IjCRhgf49s cm/9dJyhhVelBjHDQrPWX3SK7sWDAZ67IPdpAfefyHmaEmPyYy5qqM0oUf+SB6K5gmTA HZQvm0Aw51YwoMCTK5+ixuxKB8q1J/Q6HjkmfjtH/l49LMBJJdbHclNjadqdTkK0RYjd MBrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XqyFuY6xtQUWsP/jQ4A5BA4dQ9EI8+6RDOKP4j5I7T8=; b=lgR0S4eCBqzT+w+mWroMTHoHO/qwAw3tBY9t6aq4A8fyM4p/KcMmrls3vV1GJAhcwk Vhdqk+HT+XYQbSR7F4pfwzLHZxXAq/BTSlVvzMx01Nq2YRv9oWb9INyvP6ypCE8jYj01 MXlDgAzdrP6xS4Ol9+esSSEZll4h79YluYVxlcAkdYaCRq9+qF4rPjA6cRmE0Igo4JuU P48p01pQwrCioSNM7iOx9hxyqtL8xyK3WbN/MQt3QSp5YtLjlb9QN1jZ3BpFGokS+AEw mOicr3j5dmskINBa4LFE00U7+r9nKgFZGyw+fPArY5GRYQgdIZ73UyBhCn1UKwqd4h4g ny5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="SX/PtmQo"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 184-20020a8119c1000000b0030c5a2eb3casi36333658ywz.206.2022.07.03.02.05.11 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Jul 2022 02:05:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="SX/PtmQo"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:43030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1o7vXT-0006mi-7T for patch@linaro.org; Sun, 03 Jul 2022 05:05:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1o7uvu-0001oR-H8 for qemu-devel@nongnu.org; Sun, 03 Jul 2022 04:26:22 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:53789) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1o7uvt-0006B6-1X for qemu-devel@nongnu.org; Sun, 03 Jul 2022 04:26:22 -0400 Received: by mail-pj1-x1031.google.com with SMTP id ju17so1428110pjb.3 for <qemu-devel@nongnu.org>; Sun, 03 Jul 2022 01:26:20 -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=XqyFuY6xtQUWsP/jQ4A5BA4dQ9EI8+6RDOKP4j5I7T8=; b=SX/PtmQoX3SyAefqW0WshbEGF+GdNUEa6OM2aUFIwXqU3U6FOz808rcD50Go3qmtqQ W+t44DrLvDv636LS20+UlfPKga5YbPSWNu+geHk5yfh31EzMD/QcaFWnAlwf/BAr5BMb 6ZQeAWFxFA8idcHDC5J1Y2Oz3xGzENrv+DBeY6NDzxPoXqGmTSHDX0bRUT4553hme5H4 vg28/5DeG5LOb0ChjpIb74jqUKJ6bVFa1drDqX5WPJ2sq2haO66d//azbpF1f3bX+Mna kuhq/I8P8DH6tYUXvpW2f+JXpkhBPP6/GRZvOMOGsVw5LKfTGH9O2qAAh4DDRQy8hNvN dO0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XqyFuY6xtQUWsP/jQ4A5BA4dQ9EI8+6RDOKP4j5I7T8=; b=UzdlaUo2P5cAKzry07c0cikJnYkwRvSHD3THqEF8/LPrdQ08rnw5wQ4ol6aitzaEWh OrWt6t+K1Di87MnMaeb5cXxkc5AaKhBPaa4+pX+yEk7pxdc2Cr8iqNpzJjSWBd8BZ/E5 jFUGfmY4ydP0jN6jZ04rgF6G5X9BkMih9oBiN6fxVVe47yMxaKMmsz27E2wyq4TU2J9B JSb+j07Hzha3GOWIHL1/mW7zj5mv4ZiHTF/A2OBFg4iWMgrdFRVfNWDWuYy8Vfw2Lp4Y fzIfo3vbHNSd6yeB44Wdygxw/x1iRYjBKdDPEd9q8ztUkNcJkGkAKuqI9hIyfA4vPoSb Sxaw== X-Gm-Message-State: AJIora9iNOuEEz1mrO1PZTVay+Gb2Ixd0njbP8OtJsylKAYsJTpxXQxc dWPE6sKWm8FQr8Pjpx3+atODnF9+6DIYGeMA X-Received: by 2002:a17:90a:a605:b0:1ea:6b4f:915e with SMTP id c5-20020a17090aa60500b001ea6b4f915emr29139094pjq.60.1656836780182; Sun, 03 Jul 2022 01:26:20 -0700 (PDT) Received: from stoup.. ([122.255.60.245]) by smtp.gmail.com with ESMTPSA id im22-20020a170902bb1600b0016a3f9e528asm13569112plb.57.2022.07.03.01.26.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jul 2022 01:26:19 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 38/62] target/arm: Fix S2 disabled check in S1_ptw_translate Date: Sun, 3 Jul 2022 13:53:55 +0530 Message-Id: <20220703082419.770989-39-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220703082419.770989-1-richard.henderson@linaro.org> References: <20220703082419.770989-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1031.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, T_SCC_BODY_TEXT_LINE=-0.01 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-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target/arm: Implement FEAT_HAFDBS
|
expand
|
diff --git a/target/arm/ptw.c b/target/arm/ptw.c index 12288ac365..12b6c2c98b 100644 --- a/target/arm/ptw.c +++ b/target/arm/ptw.c @@ -211,11 +211,10 @@ static hwaddr S1_ptw_translate(CPUARMState *env, ARMMMUIdx mmu_idx, ARMMMUFaultInfo *fi) { bool is_secure = *is_secure_ptr; + ARMMMUIdx s2_mmu_idx = is_secure ? ARMMMUIdx_Stage2_S : ARMMMUIdx_Stage2; if (arm_mmu_idx_is_stage1_of_2(mmu_idx) && - !regime_translation_disabled(env, ARMMMUIdx_Stage2, is_secure)) { - ARMMMUIdx s2_mmu_idx = is_secure ? ARMMMUIdx_Stage2_S - : ARMMMUIdx_Stage2; + !regime_translation_disabled(env, s2_mmu_idx, is_secure)) { GetPhysAddrResult s2 = {}; int ret;
Pass the correct stage2 mmu_idx to regime_translation_disabled, which we computed afterward. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/arm/ptw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)