From patchwork Fri Jan 29 10:59:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 373287 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp2087815jam; Fri, 29 Jan 2021 03:00:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcq9h8Gc3jqwSVDL0aGEuNUUxWsovza10ZHpcahY4y88TI9PQARFE2uUTOaYZUJIS0PLuB X-Received: by 2002:a25:768e:: with SMTP id r136mr5437460ybc.92.1611918057945; Fri, 29 Jan 2021 03:00:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611918057; cv=none; d=google.com; s=arc-20160816; b=iC5C6iM8kg5yyAwp8BXCdnSuQ26/oFnQYgVqgdd6+3lDsO336EfXLcNJ+nB3BGOvBA k89/PFi+gxeJw965Q0FB7pxfyhpU9Whv8HCnDbB1M1hrcC19nXj6fqLTpG3lXH/+Qvex OmUgjzOHBan1tioNpK+OopGyOuhmNW7i3BeeZDIsTFE1pDh7lcY49Y5opbnhqUnUzK+O 3MlfogTb31OTrv7DmEkdrLbCo+AfIFw5JvALEg78pJntYQluCgU6Fc4OWFRszCNiWC1L BPrm07EbZyOPFLLkQIV0cOsnvWLUCFWY5dqIz6Knk/uhTVHdiLNMcvqEJzAkhysg0rkI tPCA== 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:to:from :dkim-signature; bh=qewTpRFCmZV4l2YIPf8U3raTgpS0uedHR3JcStZB1zg=; b=cgqbB/meuDULK95vf5L/8c8zX3n/zst45n7aPWvyWNQ5gBjzjo2nWsRleDR2MwylpD aETMipgZP9Fm9XrXHSKOPpJyteeZN8dNyYBqAilp/wlPOswpbsMhdDYKnv0fZtgwvq/r 1yGKZc422nnb6h62oV2nuJqSKjKiKaUoIgaRC+hi5CQlqFnyLEFNzbDbZK21PuMzgbAM qRpquhWXXnpceG4RZod4Wkv7dU6uUgDC98JHgtdqdh0H0QABqNKpTKSDVK6fI0ZafhKl ya2Uj9+VaqPgD59aoTaOILNraXflrGeQstC8CI3rcHpU/FqJFlu1SzRSeCN3nCn7lSag /IdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m4OEAPh+; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id j126si7665944ybb.41.2021.01.29.03.00.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Jan 2021 03:00:57 -0800 (PST) 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=m4OEAPh+; 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]:58664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5RWL-0004TK-Do for patch@linaro.org; Fri, 29 Jan 2021 06:00:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5RW3-0004OA-Bp for qemu-devel@nongnu.org; Fri, 29 Jan 2021 06:00:39 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:34988) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5RVn-0006vJ-PU for qemu-devel@nongnu.org; Fri, 29 Jan 2021 06:00:39 -0500 Received: by mail-wr1-x436.google.com with SMTP id l12so8404730wry.2 for ; Fri, 29 Jan 2021 03:00:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=qewTpRFCmZV4l2YIPf8U3raTgpS0uedHR3JcStZB1zg=; b=m4OEAPh+PmUJw4V317r+HyCwpjlCQeFSWh69lU7OwcLKovBFzONgMpHZxNDZcRkKoY 8yQdDyn6LvBx4XN50zs+t75b5MaQMXoKw8Ode0+/ydgiVXxMu8mfz+R73wNF8zf3ax15 Ernuvkf56ZmrSZqtQ8vQeAFocz7vrViIsD20q7Ow1B6yGQ9/xAJi6oQG+VKnnK5a5dVf l3h3BP5Fj58Y8Y1mjnZc+vQ0uCPVDEibEYNsS0uWHyh08FXsMPhzFH1Uq2zR/WVubCM5 lo38HbcGbfLTQGXUpUqgCTupCQGooIVZgnsnP+tpFwThQB9Noeby+uJyde1XFoqH2yyZ 2pUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qewTpRFCmZV4l2YIPf8U3raTgpS0uedHR3JcStZB1zg=; b=UFj100e8Vr+4th5GJyMSViJn5obgrvU4cxloKpxyXwigA9b8dpkA1pI1g8TXZ8yeOf I85Bo8o02ZChCTCE1cHefwhB1bIKA9xhBqlN+i5akEpwQgd482GXxru/dOPHchDhyu08 kZ2Szkqxpun8KkM2nPeb5mkPg+3RKo49vdX6g/hqD2qGsJhCqPjMz/l9lSRyQcPPvG31 3ABIjk4z2GQKfh9XzeM2MjhtXqLmaeTBVmroC8vjJX0M1flrYNVUec8JXiVUDc6Qx8pj ZEgryHWhU/SxyYXRuyyw6bdQw7HPdsiLAhZWWPbCf90eqTrw3aRzuXwsna1oo2CBGafB dOqg== X-Gm-Message-State: AOAM5304FcmMxZ9M+MBuR7zv7P2xKQBw6qdgRmRLpZNsEhACqNHGA0i4 7lQ4tGC9FIyxLkRDB9NrYohNZ0q26CLd1Q== X-Received: by 2002:adf:c14d:: with SMTP id w13mr3781771wre.383.1611918022420; Fri, 29 Jan 2021 03:00:22 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id w20sm9268761wmm.12.2021.01.29.03.00.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jan 2021 03:00:21 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 08/46] target/arm: Replace magic value by MMU_DATA_LOAD definition Date: Fri, 29 Jan 2021 10:59:34 +0000 Message-Id: <20210129110012.8660-9-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210129110012.8660-1-peter.maydell@linaro.org> References: <20210129110012.8660-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x436.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé cpu_get_phys_page_debug() uses 'DATA LOAD' MMU access type. Signed-off-by: Philippe Mathieu-Daudé Message-id: 20210127232822.3530782-1-f4bug@amsat.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target/arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 diff --git a/target/arm/helper.c b/target/arm/helper.c index 677a4aa79e7..47e266d7e64 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -12418,7 +12418,7 @@ hwaddr arm_cpu_get_phys_page_attrs_debug(CPUState *cs, vaddr addr, *attrs = (MemTxAttrs) {}; - ret = get_phys_addr(env, addr, 0, mmu_idx, &phys_addr, + ret = get_phys_addr(env, addr, MMU_DATA_LOAD, mmu_idx, &phys_addr, attrs, &prot, &page_size, &fi, &cacheattrs); if (ret) {