From patchwork Wed Oct 18 12:33:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 116285 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp6017265qgn; Wed, 18 Oct 2017 05:39:10 -0700 (PDT) X-Received: by 10.55.215.220 with SMTP id t89mr2259041qkt.34.1508330350720; Wed, 18 Oct 2017 05:39:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508330350; cv=none; d=google.com; s=arc-20160816; b=ieqOpO4Elf8Gsn8prvBU7os25wiQBL9xhuhJH0ITvELpi9e7TtaSZJCYHnBtvsgmxQ D4x+m+627uNGLHgjoDbYBdMN2E2bXBrNRDyfcsAQ3qoF4hp2jhfC4HA17+SX/RKcYlPi 2nkayovAtP6gG3PEA5jAkrxw4RZRXot65+0aNWiZKW0c/RAXfqaFW6FSATW6c5jLNEFp JpsJF9qUXoFvS97lmVi3l3WX7RVqr7EikkMi3jFyea0OsCfXbMZpi7THMzlLiLnJem3/ SzjDPaaUwAep4zaniw3jrfO5xtBNHfuMq3VsR6fors7czx1X4eQhegHmLGGJymK3KlDl /ECA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=D15kYJ1dQaoRtaovaOvhZvcW056wbKjMMHwChxXqABc=; b=NmUNTPuNFNEW2675DM/XreEf2tVzjjbxWaSEt0nxUuvnQfmEVFQsBz0CEhem2PEWWD DHis8SzZ7jXzaitmO2B+jPOh20HhjNFAm68OHf8O2Au83D1r+eeFlIqdc6L2yVyUUkTt UswmimZgovFDJGQ52KgOLIJEnfDS+qAOZVihFfz91uPJ4yjJEq4vh3HiPBzPXwGz8WJ+ 145x2dmVolImk70utG6P8f7IA6DgC1xufyC+mp81GeuiLS5FxvqWf8w65zBZKULuK7Qj vzTV8eV/AJygY1W96ANvQagYz+9ibhH7v4P76lv8VUIH9GAqdBMn47rjvdJRpn4axF2L GEfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=gZVyQdi+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 31si7917024qty.256.2017.10.18.05.39.10 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 18 Oct 2017 05:39:10 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=gZVyQdi+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4ncq-0000jl-I4 for patch@linaro.org; Wed, 18 Oct 2017 08:39:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4nXY-0005F0-Br for qemu-devel@nongnu.org; Wed, 18 Oct 2017 08:33:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4nXX-0003yp-HA for qemu-devel@nongnu.org; Wed, 18 Oct 2017 08:33:40 -0400 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]:53466) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4nXX-0003xc-AW for qemu-devel@nongnu.org; Wed, 18 Oct 2017 08:33:39 -0400 Received: by mail-lf0-x242.google.com with SMTP id l23so5613147lfk.10 for ; Wed, 18 Oct 2017 05:33:39 -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=D15kYJ1dQaoRtaovaOvhZvcW056wbKjMMHwChxXqABc=; b=gZVyQdi+dctcQMZa1/vYJCrXy2Z+wLNvRbwIhoBpHL5KKX1mdwi9Czg2QnOe9RmW+l u5dn3Ht70wZ4g91OXjM/5LP5T8YZkKDzabtDPtxwzZjqTX/e0JVp5R08s8YGQ0iLKt4h 2EF+BqkVNJ8MZ4eyp56TwaZzYey8axEqcbYw0= 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=D15kYJ1dQaoRtaovaOvhZvcW056wbKjMMHwChxXqABc=; b=f++xa3khCJHmf7cMRcJMxkvX7nY9yaw6B9LrIwcLAVLLLdG5KvHMDNLf/mI3GAVP0V 7Ej4UzCz2cjHjNHG3bBCazlOXcDeC5tjE4vt7E+vR2hx23bPaQb3UlQKngzCbi4asnVg tteUeTi+ohjM+zT6c++By4urJBhNHbDod6z97NhP12eItJzZL0PPwfanw0O3XHVK78q3 mlNdMSxjtrHnIL/QkymvwlsNXCGGDGoSLeRVrtKPZuoDLIbmhPSvruURre++3QHhI8Nz qMa1zgwXM+mvI03rh43y5k7FtVoxaWbEgJG3+XpXFJ6xv6vRMiptmcxcGVhFjP9iekur St6A== X-Gm-Message-State: AMCzsaVLcYuJw7I4Uijb2KpCekN+KuWLWSh0swdMoqkSEeWyDnaKKFz0 R9Uc9QC2dymK5v3WSCFLwcGIhkoCjrg= X-Google-Smtp-Source: ABhQp+SuGyufGjKD9BHh7TY9jlG72oIxoagSsvYrzs4QAtMxQ0YFpF1aF3fmkTolfmsXCdyrir9tlQ== X-Received: by 10.25.99.208 with SMTP id v77mr5715237lfi.108.1508330017889; Wed, 18 Oct 2017 05:33:37 -0700 (PDT) Received: from berserk.kos.to (91-157-170-157.elisa-laajakaista.fi. [91.157.170.157]) by smtp.gmail.com with ESMTPSA id j71sm2590718lfk.6.2017.10.18.05.33.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Oct 2017 05:33:36 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Wed, 18 Oct 2017 15:33:21 +0300 Message-Id: X-Mailer: git-send-email 2.14.2 In-Reply-To: References: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::242 Subject: [Qemu-devel] [PULL 07/10] 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: Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.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> Signed-off-by: Riku Voipio --- target/sh4/cpu.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.14.2 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