From patchwork Fri Oct 25 14:21:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 177748 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3791910ill; Fri, 25 Oct 2019 07:34:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6pAvTWa3tPBgp5pP3kzuueuSzdk/P8cSWZuH72PuNJVGws12OaHbL29ZFOs4ODQCimzzz X-Received: by 2002:aed:35e7:: with SMTP id d36mr3269912qte.59.1572014043814; Fri, 25 Oct 2019 07:34:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572014043; cv=none; d=google.com; s=arc-20160816; b=TMgFzxnuKYGqnGcjVVLZ9vSzlaix1qaf/r6pxaaLZ7cUQs6aRatEA0Iw9vSWUEKldp ZVIB9RQTFnyosanQjlZ06PUugPrI9oSo+W7GlwqBwxoRGn80XFKBV7iuCIW/aXxXbWTz AZXt4vRPHLgftB5rixUhUiTmBIxaABdwKDzbnjQPFCsHb2PnX1c/wfhM1wcdgSGihUXy tF9Tc9KZketws0oPwBwOn6m51oeLpHY5odDqJjCpWyPB7TcB4QwfU2+uyISgbr1cDUUB TuwbMb/yvMqqOn4ScVn5GRwi3uU4h1F/6eMgm3WKQYV9hLudxt5BCHPgz96dDNqT9JLz 3Gew== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=zTGJ/47FixBiMzQIk/MTjp8v2EMW7WdPBbVxHhyIgm0=; b=jy3XLv0eIFOg/k/uTWyl5b7Kuaqzp24EW4W9kVgrqeo8AgJbAqlaGS6WoRvZ4rgN3/ +mfVrL5XFKqHDeEkCdVxB8fpU2lSErWNO/yPwT/nmaYA1E4ZewpubImmTSC3Ji3/Xnue xaD0SIuVsARlwdYt6LoAs3AS9R5rc0dm3CVl7col6twQCeGmnCHk7GhT4kL0HbwEk6lS HjuwThQO20P7E8ENt3M/v+o+zM1etrDxak4rlA5+gVvmknEkoP+RALO49y2WqN92+Mj9 uqaA+B/kC8cLfRoWeAUeCX3CvfQ1LQYQJ2tfpqqNK3e1VezBOcAFeHJy9DtEvEMZbykL pvAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b70XKS5B; 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 66si1566901qkj.353.2019.10.25.07.34.03 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Oct 2019 07:34:03 -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=b70XKS5B; 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]:32924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO0fC-0005Hm-Au for patch@linaro.org; Fri, 25 Oct 2019 10:34:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44352) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO0Tk-00057E-Eg for qemu-devel@nongnu.org; Fri, 25 Oct 2019 10:22:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iO0Tj-0001eY-2r for qemu-devel@nongnu.org; Fri, 25 Oct 2019 10:22:12 -0400 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:36643) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iO0Ti-0001eJ-Ur for qemu-devel@nongnu.org; Fri, 25 Oct 2019 10:22:11 -0400 Received: by mail-qt1-x829.google.com with SMTP id d17so3500045qto.3 for ; Fri, 25 Oct 2019 07:22:10 -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=zTGJ/47FixBiMzQIk/MTjp8v2EMW7WdPBbVxHhyIgm0=; b=b70XKS5B7blG/ipqe8mx8ask2rtuYY3805T7kOBgKQmAsj7sHmTDmup0ViTMzpV+/I F9pppUcv/+jgdZnEljpMZIyfkrSr+VCtGZdm3xcv4Ep+h0xrV/SOp7uEeFf5XADUe+nk IkBPFPWc8a9+F9jSo6a2nb1RfioIz40lLzAeN1AkOZCJVRQy7jqK8feYjtNf/a3ToxtD EUN/iDvQiG4iWHNVcffuckwwNcrlQfGC53dy5qgr9bZZKQErR965WVVuWTaibjVZIjMA siBa4bTDqcmCM6KKny0qBuBYiee0JVWYYcejKueUwfm+tAkZFyrfmivX9568h88/lW/H Phvg== 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=zTGJ/47FixBiMzQIk/MTjp8v2EMW7WdPBbVxHhyIgm0=; b=k6TM5LGxhGF6KgwtdtQ1gJtptTGQVbVq/hYjyQ/71KmiWUKXB6MEpkROMI4QXD6IA+ gBwvCrn7HWiAIvpAo5sEDZzrI9A7wM8Vgh5K7pYEahwUPe5Lh5LxKh4s2wifVTbKj3/u PsPIJcAVe2WiqKcTU8msfMzjpb1jYj4xo1zlPe2n36BS2GuR79l4xOMzhlu8GOL64gtK 5r7+BqjpXl2hppux6bt9EE1YK3UXJhD3enXa2BAvvhAEu/BAM9+5+/j8+xPtejl1Y/Ck eO7+7uO8seygMZC7yCmqXbo5j2Rzx3ATzTHVBVIh72PkcGnTK38c8pUpk4xYAsLeuo9h YFLQ== X-Gm-Message-State: APjAAAVkuufX7Hhq1tqJ7D4fFovdh8Xg+qaWrJpYZEfTd6sdfipN06bU QE/gmqPqyUnvwPqsQ8DbznJyctPP9tw= X-Received: by 2002:ac8:75c6:: with SMTP id z6mr3353923qtq.165.1572013330033; Fri, 25 Oct 2019 07:22:10 -0700 (PDT) Received: from localhost.localdomain (rrcs-172-254-253-50.nyc.biz.rr.com. [172.254.253.50]) by smtp.gmail.com with ESMTPSA id q17sm1137050qtq.58.2019.10.25.07.22.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 07:22:09 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 07/12] exec: Restrict TARGET_PAGE_BITS_VARY assert to CONFIG_DEBUG_TCG Date: Fri, 25 Oct 2019 10:21:54 -0400 Message-Id: <20191025142159.12459-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191025142159.12459-1-richard.henderson@linaro.org> References: <20191025142159.12459-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:4864:20::829 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: 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. Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Paolo Bonzini Signed-off-by: Richard Henderson --- include/exec/cpu-all.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index 76515dc8d9..d3e4660d50 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -219,7 +219,11 @@ extern const TargetPageBits target_page; #else extern TargetPageBits target_page; # endif -#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