Message ID | 20171005143601.21584-5-richard.henderson@linaro.org (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 82A816029B for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 5 Oct 2017 14:37:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 014DE28CA6 for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 5 Oct 2017 14:37:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA4E228CA9; Thu, 5 Oct 2017 14:37:35 +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 DE0F728CA6 for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 5 Oct 2017 14:37:34 +0000 (UTC) Received: from localhost ([::1]:40183 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 1e07HK-0002MH-4Z for patchwork-qemu-devel@patchwork.kernel.org; Thu, 05 Oct 2017 10:37:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1e07G4-0002KA-JG for qemu-devel@nongnu.org; Thu, 05 Oct 2017 10:36:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1e07G0-0001yp-Js for qemu-devel@nongnu.org; Thu, 05 Oct 2017 10:36:16 -0400 Received: from mail-qt0-x22f.google.com ([2607:f8b0:400d:c0d::22f]:55452) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1e07G0-0001yQ-F1 for qemu-devel@nongnu.org; Thu, 05 Oct 2017 10:36:12 -0400 Received: by mail-qt0-x22f.google.com with SMTP id x54so25684375qth.12 for <qemu-devel@nongnu.org>; Thu, 05 Oct 2017 07:36:12 -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=cXxdyWFqydMB2qOTu/4wULu4y8k6Bslrjk6HWtmobII=; b=PpACFAvARajS1egSQP5tkIP5skQTLqBPlOLiFsdyr/dfTgAmEVR1EbcMLLbdGHWG8U QNrvYmJ969lX/z8/B6ZWAFwAxN8hOoQVeKPCKWXCl/VZ1U2Ysr4XuPAt4ZmxFUaCa+qC 64FG3yF/Xh255j9zMvUuUEwRlZWUR4tZlb8So= 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:mime-version:content-transfer-encoding; bh=cXxdyWFqydMB2qOTu/4wULu4y8k6Bslrjk6HWtmobII=; b=ivtK+hWI30pxqoCtPq/0YZM9EooGHlvsj0gRJSuqosWbR3KL6R+eC3elLm4Em2bhvW T8IjEIQagh8hkeUL29GhOAOhUdAkbfJOrHOSa55PoB5Y9+TPoZ5edxtvaPf50nkc4ujM wEy+SSN67q6Xpio7wVDpdI5JFf0ugOpbNS34ke4Hob54Oeeie67jefVjtsmRojpESE6D LcbtCbnLsuXeJADf0Q5uC+t5675MRIkNS+CB2zHP1+cG+Oz42hdJ1yxerLN4uv6wkF6O n7LKENXTmqplB6JusKVxkKLn2BP4OGeyMGXa5bZxpbAi62uz6qlByuqQG7YjQR6e+b32 3Bbw== X-Gm-Message-State: AMCzsaVX1ytnEExxZhtNtSuU2B/YXeJN9deDiWbizYC3CxsleJYMklQn 3NnTxhSx60ULyYH09Dwe0rfR744b13E= X-Google-Smtp-Source: AOwi7QC7xmPtbNiViNg3i3r22a69Dm7jSU0L3KWncsPfoqFczTPnvZq6Ig9+2vl/Rhvqt1tCp9hLsQ== X-Received: by 10.129.120.79 with SMTP id t76mr9347734ywc.126.1507214171647; Thu, 05 Oct 2017 07:36:11 -0700 (PDT) Received: from bigtime.twiddle.net.com ([2606:a000:7a4a:b100::1b]) by smtp.gmail.com with ESMTPSA id c13sm8277148ywm.101.2017.10.05.07.36.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Oct 2017 07:36:10 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Thu, 5 Oct 2017 10:36:01 -0400 Message-Id: <20171005143601.21584-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171005143601.21584-1-richard.henderson@linaro.org> References: <20171005143601.21584-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22f Subject: [Qemu-devel] [PATCH v2 4/4] linux-user/sh4: Reduce TARGET_VIRT_ADDR_SPACE_BITS to 31 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: peter.maydell@linaro.org, riku.voipio@iki.fi, Richard Henderson <rth@twiddle.net> 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/sh4/cpu.h b/target/sh4/cpu.h index 79f85d3365..123f34783a 100644 --- a/target/sh4/cpu.h +++ b/target/sh4/cpu.h @@ -45,7 +45,11 @@ #define TARGET_PAGE_BITS 12 /* 4k XXXXX */ #define TARGET_PHYS_ADDR_SPACE_BITS 32 -#define TARGET_VIRT_ADDR_SPACE_BITS 32 +#ifdef CONFIG_USER_ONLY +# define TARGET_VIRT_ADDR_SPACE_BITS 31 +#else +# define TARGET_VIRT_ADDR_SPACE_BITS 32 +#endif #define SR_MD 30 #define SR_RB 29