From patchwork Sun Sep 22 03:54:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 174195 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1304135ill; Sat, 21 Sep 2019 20:56:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqweLc9CIbKIN9nvqEtNMfslMDdE+kE0gOdBZvWxhIyQdVZyYyOEw9gIR3o/k4v9TTtkdOS2 X-Received: by 2002:a50:f616:: with SMTP id c22mr29512723edn.235.1569124592392; Sat, 21 Sep 2019 20:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569124592; cv=none; d=google.com; s=arc-20160816; b=dTtQfHgBFYJoSacPx2hfr4/AXPbT+JGmBIp1vlaAVaYtsFhfVectlDNwyHFqZ9FVSQ DgUhksuXKmBl6GMmMrvlOsEawHXXXhErH4IOYsJ5APFt2ishXQJsh+MFAqX/CoE3sxL0 XOnQ9W9SXPCWRiH4nNU/NrpAgVxhDTOlM0mk9BpkAnSKywswt5yalTf00F5jZkVTfDdF qgY68dnP5Opd6PITC6V/nvRN2b5VkjdzsqeflHBfMg6k2mzNTGdf+rT5TIk5BfZAkx6n 5LtnESLd2MxhNTSTSDy41+WPX03Kvz+dITvJ5lsOc2/dsgZg4kq0kFydUf4DEeNWrwL5 vzng== 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=On6urL98+WZbXDi+CGo9wCKTkADz471arOAqlknvUss=; b=yM/Cb2UpdJeO57kTWh9PcZKxTJy1zeKj156GdryncLMQOXZB9D49E5wRxDueG1Oi4s 33ndHjqq2ovxn1vATmZwFS6zUg487x86pjKCwFawwfnk5MHL1jVe3HgmqwEeOeoWUE0X VWibDyQRB705rWpZBVnrf/nt6qBg96TJZ+kPQVvycd7Kiw37Mi6kYtxKmaV+WgXlmbyH nORZUvPMI7cvNu+Ugdbyw0dIH7O0haaj4eyKrMbIVUWQrF9x6Yr8iuAhTv76nyWFkY7g PSOWwOhnbwGa/rtzuQQZS8I42aTBSzziIJBp7nbkwbOWAJZgdnqxj0AM1EIz/Mm+t3E2 c8Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=mzf07D+1; 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=fail (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 t26si4017623edr.36.2019.09.21.20.56.32 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 21 Sep 2019 20:56:32 -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=fail header.i=@linaro.org header.s=google header.b=mzf07D+1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:44796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBsz8-0001SV-JB for patch@linaro.org; Sat, 21 Sep 2019 23:56:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40803) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBsxn-0001MM-Sg for qemu-devel@nongnu.org; Sat, 21 Sep 2019 23:55:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iBsxm-00086B-Rq for qemu-devel@nongnu.org; Sat, 21 Sep 2019 23:55:07 -0400 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:41594) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iBsxm-00085u-M6 for qemu-devel@nongnu.org; Sat, 21 Sep 2019 23:55:06 -0400 Received: by mail-pg1-x543.google.com with SMTP id s1so4882533pgv.8 for ; Sat, 21 Sep 2019 20:55:06 -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=On6urL98+WZbXDi+CGo9wCKTkADz471arOAqlknvUss=; b=mzf07D+1+eSSdk4vlsWKfeYbpKYvnq/e2qA1sVpw82Lw64Axs3G5NNQxpHdGKeTiCs ubieAxUdl7rEn/Pln5AHUqHF0q/ME5UhqIHGGR90dtOY1po833be97r/S88aAT0lrAHV VeffzqjdKWnFwxAJwFhTAUjQbhJ49lzrt8BScNnN0CGD5f6iqHcW/1VV/i9yjVPsYanS pUxA5V18owr0dCw3lRWDP8htaWSiVzIgW2R+/kq+yZ6rOOGFVU9+zEvOhAAEbw2YPtKI /zPza+mUa2cJch6CVS9ald3ncJQlTF91JJsXZJPJTdYRYlzgEKD9L8vOSE2ASnbhv/YJ HH0Q== 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=On6urL98+WZbXDi+CGo9wCKTkADz471arOAqlknvUss=; b=q5L8XL+Vv1B34n1qPw6mar+TACXxIFIIE3XQ8hO+5XJnDaSnKOK0olV13DRNhQ7SBu t43f6khXE3YU7Qi08yWbe4nq8n/M/wtw5MQyAW/oog/aPv87EqCqg/BYiGfwM8P9FHvK PsyCMrRC7I9NiRIQQkFynFAfD2Opi494gTVpqfggGwba3/ds8egPfQ6FFIT1BshBUbX7 VVEZyzwCJbUe/H2Z1FiMllNmxwARDSCdTtCAD5kRDGLow7JsC/vYlp8AvC6mvJatDU8m D1jxIXQClhAcpsaYnpYuLm7YgA7ywRxVks7RL+v+9g/J11gNzQZIs69RZjFchjHxB8FO H2BA== X-Gm-Message-State: APjAAAUjhYQMo3OOKdwD68RN6ksJG6FNishG2/xswa5qCXYrhR/+j8yN LuScxNaSW/tD1RV9J8djq551vJFmrDA= X-Received: by 2002:a63:5549:: with SMTP id f9mr23270702pgm.346.1569124505431; Sat, 21 Sep 2019 20:55:05 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id z4sm6452921pjt.17.2019.09.21.20.55.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Sep 2019 20:55:04 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 04/20] exec: Restrict TARGET_PAGE_BITS_VARY assert to CONFIG_DEBUG_TCG Date: Sat, 21 Sep 2019 20:54:42 -0700 Message-Id: <20190922035458.14879-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190922035458.14879-1-richard.henderson@linaro.org> References: <20190922035458.14879-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::543 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, alex.bennee@linaro.org, stefanha@redhat.com, david@redhat.com 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: 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 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