From patchwork Thu Sep 19 23:29:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 174115 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1675914ill; Thu, 19 Sep 2019 16:37:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGmeqyVHa0SFafSAmfp7fgRmp4Gupn0d/ValYhOcXRF7wFIB6QctGXTHa/30a6VX7eDjx+ X-Received: by 2002:a05:6214:12ad:: with SMTP id w13mr10180215qvu.124.1568936253993; Thu, 19 Sep 2019 16:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568936253; cv=none; d=google.com; s=arc-20160816; b=bMWRGgByN3tkqEJKIWICR1E/tzUrqJfL+aRNdZDTN09zfcNLOZOK7GMO/yz1mB9awL 62I6qu2sSBw62Hym45CBpKSa72PrkF76VnpzEDmfTWrGP2xT8/zqYUvRSdjojRRcoKAk hQ7hJotepakqZsxOYPt6AONFy4ZHDjSdzlyRUNQNtWF4e6Rg0bslx19LDJ86Lg2d+n0P 3YqxYo7ONDSQaNss8WLrvXSDfQ3ccC5lu2zJh7e/QQEVGzr6eIngi/CUuEf6sl7k6fxK V5eIHIuafB6XkomVcKLRy9RiDHMYz8cUNEmYWhJg4oHwLQTtJ7FA6mXjv6fEr50nl14P v4mQ== 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:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=rPvPWOfw9gxBJUIgR2g0hYWJxDjG7PfgkcfZjjTlu/I=; b=Yubd9Zq64I0N6VfktJ6DiqrZFHguDI8VoCsJIVaMrMEvoCeBrfWlljAGjjtQuaLvof wecGUD4avtk7k5+/+hLZW/oIs+jU8okPKczsvoTTWTHEgOgUern4XxVwP9GISF/750OY LYmMzCoawvOvm8LgkizkpnSDkSpgxPQKptpjsCvX6u0YrpBmC48vrCaVP8lhKN2zg3+H p15CjYyDVtEU9MJdXRffVJYVIKfroN+jzkCuqhOKfQoajZ64ie9ZnYKy4qD/MWOrAz3F FA6of4TwttrsQSypL29LsQLWImD/XHn3fIY2p2ZkLB8BX5la3M2JTr9keKOhn/B5yKyA oF3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dNgytJWu; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u31si226461qvh.96.2019.09.19.16.37.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Sep 2019 16:37:33 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dNgytJWu; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iB5zR-0006Eu-HE for patch@linaro.org; Thu, 19 Sep 2019 19:37:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39283) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iB5s9-0006Jv-Vl for qemu-devel@nongnu.org; Thu, 19 Sep 2019 19:30:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iB5s8-0000l9-QQ for qemu-devel@nongnu.org; Thu, 19 Sep 2019 19:30:01 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:39637) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iB5s8-0000kg-Kg for qemu-devel@nongnu.org; Thu, 19 Sep 2019 19:30:00 -0400 Received: by mail-pg1-x544.google.com with SMTP id u17so2734856pgi.6 for ; Thu, 19 Sep 2019 16:30:00 -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; bh=rPvPWOfw9gxBJUIgR2g0hYWJxDjG7PfgkcfZjjTlu/I=; b=dNgytJWu3DysilndtjVQ/G7mr/w5sHBC6L9k/4mLvM9lNAp0Q87LNCJbKLDdu9YMlZ ECO8Ed6likncOc70MbwGpKuPiO4ZovS09XzfiWiKLanRkpmeGqijIVBZn9/7eLPbdTjI iDR6TdNJlS+1DEUfkYsU4ZEVYvWZYi95RI0lGs0Trrl8mDYwaoxt30NJIy/ukVmkTKi1 m1Vqh4y1cNPVH8m3+v4K4BqiKYbAG4UfqNEhndHqCppX6vvRTpAr4yhnKAcOHL7U8/al 6b+4y/8a39dHndeTfago1M+PKL/XzK1qkQ3oNsLDF+aQzdquXs+VV/RgXBCyejLDfxmh /tIA== 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=rPvPWOfw9gxBJUIgR2g0hYWJxDjG7PfgkcfZjjTlu/I=; b=SFgDi/CwvRl9i24uGviXEmTPC6AlAyG3fgR84fmfdJ0wSb/iQURoz02XqHuA4Zlnsr nmbG85POPzEzNEZk4ydkgLubLiFcmu3fvt2Jnc1m0NJnEf3feDBEGjpl3nKkgpFMLVHI dWtJVknzF/wvGZmZC/mujMHOT4ZbiN3dNVDw9z8i5REGqWxvGrVbf2OY5sLkrpU4fCcY Cg+ocgrGezuyluDnWcx4lRzKdH1PlT/jNyeIjCfQfXn8FutHYphNFsRWUV9+uCeQopad qFJfaW/d45jpv9AiCYv5SO0k30rK0R356uTjB7x40sdwSHmOq2gigoMF63wM8qnf5CFi 9hdA== X-Gm-Message-State: APjAAAWaOCXZyppp+QpZ6bjOlLqdBFbGJ6dzaItq0q/vQN5hKKLWvCmm e2SBDOIsHPPc/2RZLpAMAQzz6+ih8ok= X-Received: by 2002:a63:1918:: with SMTP id z24mr11162633pgl.94.1568935799385; Thu, 19 Sep 2019 16:29:59 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id h8sm103340pfo.64.2019.09.19.16.29.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2019 16:29:58 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 4/7] exec: Restrict TARGET_PAGE_BITS_VARY assert to CONFIG_DEBUG_TCG Date: Thu, 19 Sep 2019 16:29:49 -0700 Message-Id: <20190919232952.6382-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190919232952.6382-1-richard.henderson@linaro.org> References: <20190919232952.6382-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::544 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pbonzini@redhat.com, peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This reduces the size of a release build by about 10k. Noticably, within the tlb miss helpers. Signed-off-by: Richard Henderson --- include/exec/cpu-all.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index a53b761b48..b11ee1f711 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -215,7 +215,11 @@ typedef struct { int bits; } TargetPageBits; extern const TargetPageBits target_page; -#define TARGET_PAGE_BITS (assert(target_page.decided), target_page.bits) +# ifdef CONFIG_DEBUG_TCG +# define TARGET_PAGE_BITS (assert(target_page.decided), target_page.bits) +# else +# define TARGET_PAGE_BITS target_page.bits +# endif #else #define TARGET_PAGE_BITS_MIN TARGET_PAGE_BITS #endif