Message ID | 1521494329-19546-16-git-send-email-mjc@sifive.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EAD7160385 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 19 Mar 2018 21:32:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D79D92944D for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 19 Mar 2018 21:32:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBE12294B7; Mon, 19 Mar 2018 21:32:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 800812944D for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 19 Mar 2018 21:32:28 +0000 (UTC) Received: from localhost ([::1]:44051 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1ey2OJ-0004Mb-Mo for patchwork-qemu-devel@patchwork.kernel.org; Mon, 19 Mar 2018 17:32:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <mjc@sifive.com>) id 1ey2CC-0001Qq-Av for qemu-devel@nongnu.org; Mon, 19 Mar 2018 17:19:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <mjc@sifive.com>) id 1ey2CB-0002he-HF for qemu-devel@nongnu.org; Mon, 19 Mar 2018 17:19:56 -0400 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:40252) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <mjc@sifive.com>) id 1ey2CB-0002hH-BN for qemu-devel@nongnu.org; Mon, 19 Mar 2018 17:19:55 -0400 Received: by mail-pg0-x243.google.com with SMTP id g8so7423106pgv.7 for <qemu-devel@nongnu.org>; Mon, 19 Mar 2018 14:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=w9WsqLi+36GH5HBFoHBihcbZkY4SSijk4a3jyX/eVfA=; b=jiVp0G0ArYGyeYkvPeGBIVEA1BQ1cOz04B4USN7VqWsUeMJQRV9egeIEIKiO5PfuW8 9UxiHHRGC2aa7cKSSFr1AqL4xpDzD5pP7zCpjbRs2QZ0GpWTaoQlKvqFUzyBRwsy7+Zc LmYMvZCTg5Ym4LSFB30CfwHjPtciZupLEe9rkW7NQ7fshZoUtOS/6qPl3ZNsjLMgDpvD IV5G8nbknMcj3FmGmK+vr5PRnu+P2pGGFkgaFMdD0yo9+OUfgPBeXOq/bFE703ZQ9E0W j9c+k12YbjHUb0qNPg15cM36qfkn7tthb+wUvpQ5lORlj6s875q/+BWY6V0UOIPhtSux Olmw== 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; bh=w9WsqLi+36GH5HBFoHBihcbZkY4SSijk4a3jyX/eVfA=; b=ULPS17ir6QuUaij37lwfuCIqZrIlavNEr3rbtdGHhJ9FPZsNaRzN/ob7p+N/nAXRep IF6zx07rjHLacgFfLq/pTCCY5g9Zep6nHtnHKEGOL4QB77nLTVZyVcbYbaFY4TVQW34H wQiqRCbumgbRxr54253sdxRSvYKapCKMZmHJSo/LLfaSboALU43FJ3EKVDik393VX6sM 5TA8ykVPtYAjFd9qgm3hEnc3UvgmwmmLbuM+pCY1exIPlW3rW1Wm2AXgx5oUdrdDzsxg riYmLKr8Rl4/dBfRPNdY4gkfA83Aoth6L+oWBdO2sHWxMliphuXR6BlSAjCEBUnjb8gd uMRA== X-Gm-Message-State: AElRT7ERrVhYxn3ILWYmxFloDaxLIV2j7dcZ3YtC8+olh1n1ZPrZ+NP2 ajcHHbGbUFimxe6WLDSuN84IWVgWAmw= X-Google-Smtp-Source: AG47ELupQGNAWugbCqGCgz8+EnjwwaK4dCP7E6JFajjoIYdMmNey4PV0frUWlOE1qahOtOmu9c20Gw== X-Received: by 10.99.127.92 with SMTP id p28mr10378484pgn.305.1521494394412; Mon, 19 Mar 2018 14:19:54 -0700 (PDT) Received: from monty.com ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id i127sm120500pfc.136.2018.03.19.14.19.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Mar 2018 14:19:53 -0700 (PDT) From: Michael Clark <mjc@sifive.com> To: qemu-devel@nongnu.org Date: Mon, 19 Mar 2018 14:18:38 -0700 Message-Id: <1521494329-19546-16-git-send-email-mjc@sifive.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1521494329-19546-1-git-send-email-mjc@sifive.com> References: <1521494329-19546-1-git-send-email-mjc@sifive.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::243 Subject: [Qemu-devel] [PATCH v4 15/26] RISC-V: Use memory_region_is_ram in pte update X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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: <http://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> Cc: patches@groups.riscv.org, Michael Clark <mjc@sifive.com>, Palmer Dabbelt <palmer@sifive.com>, Sagar Karandikar <sagark@eecs.berkeley.edu>, Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/target/riscv/helper.c b/target/riscv/helper.c index c68826b..cfbf1d1 100644 --- a/target/riscv/helper.c +++ b/target/riscv/helper.c @@ -237,7 +237,7 @@ restart: rcu_read_lock(); mr = address_space_translate(cs->as, pte_addr, &addr1, &l, false); - if (memory_access_is_direct(mr, true)) { + if (memory_region_is_ram(mr)) { target_ulong *pte_pa = qemu_map_ram_ptr(mr->ram_block, addr1); #if TCG_OVERSIZED_GUEST