From patchwork Tue Aug 9 15:55:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 73571 Delivered-To: patch@linaro.org Received: by 10.182.109.66 with SMTP id hq2csp607790obb; Tue, 9 Aug 2016 10:17:30 -0700 (PDT) X-Received: by 10.55.209.5 with SMTP id s5mr37951229qki.103.1470762976585; Tue, 09 Aug 2016 10:16:16 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id m22si24166083qta.60.2016.08.09.10.16.15 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 09 Aug 2016 10:16:16 -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; 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 dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36847 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXAdS-00067w-Ob for patch@linaro.org; Tue, 09 Aug 2016 13:16:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX9NH-0005Az-C5 for qemu-devel@nongnu.org; Tue, 09 Aug 2016 11:55:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bX9NE-0003Pl-CK for qemu-devel@nongnu.org; Tue, 09 Aug 2016 11:55:26 -0400 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:36955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX9NE-0003PJ-5k for qemu-devel@nongnu.org; Tue, 09 Aug 2016 11:55:24 -0400 Received: by mail-wm0-x22d.google.com with SMTP id i5so44685848wmg.0 for ; Tue, 09 Aug 2016 08:55:23 -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=8ClD8oPR6yDEPEmWdq97gEbc3sWmendALxRXs7UXEHA=; b=R+CegM8oaI+74jHnt4asHikIeYwOR9cMvbFSKubSiWoZAnkanIo1vVX7jvH1oxHEUN vDdkoJnKTiog/1lo7tUHFmX3TqVPLJd6m+1M5EwkLahbWPeVN6ZrAQyOedKIxGq1iAhm 5HyNHj3y+1FkztMyM8Xp0LphQfrmNuKpJR2H8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8ClD8oPR6yDEPEmWdq97gEbc3sWmendALxRXs7UXEHA=; b=XGd9WFqr2zK/UDNIjTv25ybgNVfu+3x9ZobcitEn98oLEhzPCK8SGMOqRPuroAvop/ ORM08qOYUjFPGaVlBMGFjSJvXklRku6RsUM27B/xVIpIqDkL1YQiVycid5QV9zpwpAOP xruHS/gTeoFwCffyOiSxgEYlKA2El8PwzTHoNPBHKHIe8R6gkuprFlesrk7cqCJHVdHY tp2+s8RWwpWQ1yrp0ieZEOuXIDeh1DqnMC3qb5CKg6PrKFPVZss/GiC0xKjorQgZHCz4 3bQ+njKampF52RgVHQA7JjDBDz+Q33KKkRpvXXjGvKzWp/Mq5ZiH3ZG0HWfG3MXgcpPm fI9g== X-Gm-Message-State: AEkoouvHicgaSB1WJ9aHxE8yjnLKiFqrlA+try80WVpFRaidl5LPn/cQowY1K5ZffbCR58Wm X-Received: by 10.28.16.3 with SMTP id 3mr23373907wmq.58.1470758123334; Tue, 09 Aug 2016 08:55:23 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id d8sm3973881wmi.0.2016.08.09.08.55.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Aug 2016 08:55:21 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id DCEB63E0606; Tue, 9 Aug 2016 16:55:28 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 9 Aug 2016 16:55:27 +0100 Message-Id: <1470758127-17769-4-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470758127-17769-1-git-send-email-alex.bennee@linaro.org> References: <1470758127-17769-1-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22d Subject: [Qemu-devel] [RFC for 2.8 3/3] cpu-defs.h: add compile check for HOST vs TARGET LONG_BITS 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, Peter Crosthwaite , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , rth@twiddle.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This shouldn't trigger as the configure check ensures we don't build any unsupported combinations. However we make the explicit check in cpu-defs to catch any new ones being introduced. Signed-off-by: Alex Bennée --- include/exec/cpu-defs.h | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.7.4 diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h index 5f4e303..499e1a8 100644 --- a/include/exec/cpu-defs.h +++ b/include/exec/cpu-defs.h @@ -54,6 +54,15 @@ typedef uint64_t target_ulong; #error TARGET_LONG_SIZE undefined #endif +/* Supporting 64 bit vCPUs on 32 bit hosts is getting increasingly + * complicated so we no longer do it. The configure script should have + * prevented such a configuration being built but we double check + * here. + */ +#if HOST_LONG_BITS < TARGET_LONG_BITS +#error wide-on-narrow CPU emulation is no longer supported +#endif + #if !defined(CONFIG_USER_ONLY) /* use a fully associative victim tlb of 8 entries */ #define CPU_VTLB_SIZE 8