From nobody Tue Feb 10 18:44:03 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail header.i=@wdc.com; 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=wdc.com ARC-Seal: i=1; a=rsa-sha256; t=1592586902; cv=none; d=zohomail.com; s=zohoarc; b=Q3sGLksBJkxldayr4g0lHKdiof6UPmpYOm2iP4HfylqxWaP9LJX60sCyc66ZnRX+I6mMPuBfx5/OOTiRupdlO6lyVFJPBK8vMPx3UH1mg/hkqfuj/8BvyM9n5K5cXPoTQdxCoLcVr1ukYMngcsb7pl1ItYw8zKu2MFaeuazYyLo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592586902; 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=2FbR2oMszDkXFD8HmFXuQdZNjw66rBD1JObdxJpXB0Q=; b=GMzrYuJwedJWMS2zYe0JtfPbq17+xx6vH1UCG7YGrqcC0f61hXut9y7dPl+HWmWymksJHC/jpPt1vjXjwHkspGBLQF7oQqsAikEt3ID0mXQw4kRuBp9fyQb2NYUylTTxyaUTOIQpWL7PhX1VFx6vccvR+e0eDp4QNqwLbItmeEM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail header.i=@wdc.com; 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 15925869029361003.587950777955; Fri, 19 Jun 2020 10:15:02 -0700 (PDT) Received: from localhost ([::1]:32864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmKbV-0002gf-CM for importer@patchew.org; Fri, 19 Jun 2020 13:15:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmKUH-0000mH-JT for qemu-devel@nongnu.org; Fri, 19 Jun 2020 13:07:34 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:19141) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmKUE-0004Pg-Pd for qemu-devel@nongnu.org; Fri, 19 Jun 2020 13:07:33 -0400 Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 20 Jun 2020 01:07:22 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jun 2020 09:56:00 -0700 Received: from unknown (HELO risc6-mainframe.hgst.com) ([10.86.58.142]) by uls-op-cesaip02.wdc.com with ESMTP; 19 Jun 2020 10:07:23 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1592586450; x=1624122450; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pxVyDAhQ8bumskxZPWWUD2L/widqjE3TyqKlh9liO+U=; b=HSZA0iEBpZs640potEO5cWs8TBKs/HOCRWZQP7fBOPMQfxf4LdDiFUng ytBzdCQHI4dEFruQLGhr/ZoCLfsgxT0UTy8UTa1C13P9AHSlD33oFvKLQ f2VzwLTNATi5UX34aNkN0pb2CsEIk8Cf/5lPWzYUy5/UUDzp/UovW171k XM1Ya7XkqXMkkvMWcRIRBxnt81JteI56YOBOLlsONlCJ7pIaOxwfOcpIM DoMsr/jjNslowP8ZgHmZz7zJdHSIN8U7wqeixbgLhWbWTB45/faGBvgf/ EbC+a3zZcNIj16GuO5C5DAO8r69yiSBeJfkyoNFF6l9sWKCv4WgYQ0uB0 g==; IronPort-SDR: HNC/iQWwRGTQPYh11Eyi7g8ral4CD6GAs2nZigswBuFT9VziUNg7zDM9frzdryFVhmsMwAKy1O KYVWRbC21HUCsuUgyn3OAh+RbYc9QbKmdRNVA9wgu5SLQ3xIRp3n22WoV8S/ywX3MynTdJgIN+ JlroG0bVJZoqv0C33sFh4wsvD7zEVZ2eF9IYVhDOyDeO54QAzjl3NJvqrRXIzbzLpN7tVPicK/ 3wowZamv1N+R8zz1HpbnU0A6iGYdFZ+/+g5EhUblRU4/+OENdUcRVDPmLR0934tizBIYdR5HJ/ DNc= X-IronPort-AV: E=Sophos;i="5.75,256,1589212800"; d="scan'208";a="144763315" IronPort-SDR: aJth/n0C5p7M16ossfwrWPVI2bokLW97MXr+x41TAGKllcwbMweBOvyFVXRKKCHGHq30wDrzR+ lAdpX8RAf5xCC0X7QaZf0J+r2gmZLUoMc= IronPort-SDR: 4LThq1gMuUwK6x6GWk2VeDZF8defDPcGlKgDwClSY7lxxpFfIWZu89Z/EyXIuYHBG3K5r0E/dH urQG//ltD4kA== WDCIronportException: Internal From: Alistair Francis To: peter.maydell@linaro.org, qemu-devel@nongnu.org Subject: [PULL v2 07/32] target/riscv: Set access as data_load when validating stage-2 PTEs Date: Fri, 19 Jun 2020 09:57:52 -0700 Message-Id: <20200619165817.4144200-8-alistair.francis@wdc.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619165817.4144200-1-alistair.francis@wdc.com> References: <20200619165817.4144200-1-alistair.francis@wdc.com> 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=216.71.153.141; envelope-from=prvs=4324eb4de=alistair.francis@wdc.com; helo=esa3.hgst.iphmx.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/19 13:07:21 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: alistair23@gmail.com, Richard Henderson , Alistair Francis 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" Signed-off-by: Alistair Francis Reviewed-by: Richard Henderson --- target/riscv/cpu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/cpu_helper.c b/target/riscv/cpu_helper.c index 62fe1ecc8f..eda7057663 100644 --- a/target/riscv/cpu_helper.c +++ b/target/riscv/cpu_helper.c @@ -435,7 +435,7 @@ restart: hwaddr vbase; =20 /* Do the second stage translation on the base PTE address. */ - get_physical_address(env, &vbase, &vbase_prot, base, access_ty= pe, + get_physical_address(env, &vbase, &vbase_prot, base, MMU_DATA_= LOAD, mmu_idx, false, true); =20 pte_addr =3D vbase + idx * ptesize; --=20 2.27.0