From patchwork Thu Oct 5 14:36:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 821840 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="PpACFAvA"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3y7Fht6LDSz9sNc for ; Fri, 6 Oct 2017 01:37:02 +1100 (AEDT) Received: from localhost ([::1]:40183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e07Gn-0002MH-0s for incoming@patchwork.ozlabs.org; Thu, 05 Oct 2017 10:37:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) 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 ) 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 ) 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 ; 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 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 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, riku.voipio@iki.fi, Richard Henderson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson The real kernel has TASK_SIZE as 0x7c000000, due to quirks with a couple of SH parts. But nominally user-space is limited to 2GB. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20170708025030.15845-4-rth@twiddle.net> --- target/sh4/cpu.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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