From patchwork Fri Mar 9 04:12:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Clark X-Patchwork-Id: 10269657 Return-Path: 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 98CA9602BD for ; Fri, 9 Mar 2018 04:27:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B23D29C70 for ; Fri, 9 Mar 2018 04:27:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 700AE29CB5; Fri, 9 Mar 2018 04:27:22 +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 F21BF29C70 for ; Fri, 9 Mar 2018 04:27:21 +0000 (UTC) Received: from localhost ([::1]:43164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eu9cm-0006Sl-Q4 for patchwork-qemu-devel@patchwork.kernel.org; Thu, 08 Mar 2018 23:27:20 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eu9Qy-0004ZQ-6X for qemu-devel@nongnu.org; Thu, 08 Mar 2018 23:15:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eu9Qx-000797-8i for qemu-devel@nongnu.org; Thu, 08 Mar 2018 23:15:08 -0500 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]:36292) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eu9Qx-00078t-32 for qemu-devel@nongnu.org; Thu, 08 Mar 2018 23:15:07 -0500 Received: by mail-pl0-x243.google.com with SMTP id 61-v6so4614116plf.3 for ; Thu, 08 Mar 2018 20:15:07 -0800 (PST) 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=5wkGofJ2JvTExfEREXPeUuFavSJnHyXXkYmuyPtGFLE=; b=OGFcZ/7MvqKhldw1W+tCJG3V1DV4+zJzX4ucY8ZMoxvNNyKfvLBvjLlaqJgmrMyJDB mIhue7jCWjuGQsumrsZmgZ79KKRUsGLVRBwLJmsHgaQ5lgwfZXbN5fNk0AdUZWkc3bCl SwzFql8iq6eLkhO5kf3xW1wBV4WPIPuSxQskFvHBBpt3/Mym89XwraQcBggRlnXGfJSC clBsFX+ksmjG72uN7axLeZFvfz5Xjn+PGGIga8rhao7bph7Nu8yGKusN9LAS1cHZoV70 lnq/gmBUT9w4v2EDkZqIa+dJqe5LVov46j3QWYBz+6cBOIVYu0tzw60cmM5+tZ3fuU9D TEEg== 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=5wkGofJ2JvTExfEREXPeUuFavSJnHyXXkYmuyPtGFLE=; b=rQhFiFgBmOyCN8QyEov9rpTdcTQOuUN0HTOos/6CheVBirvBs36gif/fF8IViHdU5d sA5oEiNs9wWZVtrmhoclHqUUbC34WwHDjguXeIvwB68Hs1N4uGv1PTbHM5Ll3H9cfLw8 LDVpiUcbJk0FX7eusaINm8tPrsKuaHt5j49/BG7N8sUbcbV1cv9wG19fQT7uFM+cX28e iaSbmEyICg/5FOYeUoJt5ajIcl6cG5ctu95oPW59p2VhPE9QdFBW0/KjPMGJBA9gzig0 XHEdjWSuijpP5lMniJ2JQsNjy8T3+9ElVOp6MemtP3IO02T57i0NoZMSAJqXZZzbCSwq 332g== X-Gm-Message-State: APf1xPD7hhW5yMBdP0ykacbqs+Kzm+jh9wdKs7X/m5EpS24FWQbqymc3 4bPTrDkvPgdWd80p1hTr0QuBmX7MheQ= X-Google-Smtp-Source: AG47ELs/LXlLQ/ZOqo68wuYPuPcPhpk2lWLgT4yIlMvkWBNRZ6+dHygcpXCq80t18XahwSz+DRPF8w== X-Received: by 2002:a17:902:7282:: with SMTP id d2-v6mr26798619pll.303.1520568906219; Thu, 08 Mar 2018 20:15:06 -0800 (PST) Received: from localhost.localdomain (125-237-39-90-fibre.bb.spark.co.nz. [125.237.39.90]) by smtp.gmail.com with ESMTPSA id h15sm334141pfi.56.2018.03.08.20.15.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Mar 2018 20:15:05 -0800 (PST) From: Michael Clark To: qemu-devel@nongnu.org Date: Fri, 9 Mar 2018 17:12:41 +1300 Message-Id: <1520568765-58189-20-git-send-email-mjc@sifive.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1520568765-58189-1-git-send-email-mjc@sifive.com> References: <1520568765-58189-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:c01::243 Subject: [Qemu-devel] [PATCH v2 19/23] RISC-V: riscv-qemu port supports sv39 and sv48 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bastian Koppelmann , Michael Clark , Palmer Dabbelt , Sagar Karandikar Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Cc: Sagar Karandikar Cc: Bastian Koppelmann Signed-off-by: Michael Clark Signed-off-by: Palmer Dabbelt --- target/riscv/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 7c4482b..f47fc9c 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -24,8 +24,8 @@ #define TARGET_PAGE_BITS 12 /* 4 KiB Pages */ #if defined(TARGET_RISCV64) #define TARGET_LONG_BITS 64 -#define TARGET_PHYS_ADDR_SPACE_BITS 50 -#define TARGET_VIRT_ADDR_SPACE_BITS 39 +#define TARGET_PHYS_ADDR_SPACE_BITS 52 +#define TARGET_VIRT_ADDR_SPACE_BITS 48 #elif defined(TARGET_RISCV32) #define TARGET_LONG_BITS 32 #define TARGET_PHYS_ADDR_SPACE_BITS 34