From patchwork Tue Oct 10 00:55:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 115329 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3178784qgn; Mon, 9 Oct 2017 18:13:49 -0700 (PDT) X-Received: by 10.55.97.202 with SMTP id v193mr11301800qkb.165.1507598029192; Mon, 09 Oct 2017 18:13:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507598029; cv=none; d=google.com; s=arc-20160816; b=uj5C0SXW0wP58gmLxkromwYxiR6pUsr44qbmOnAZNHoOmQDPSJTPOoRYvCcPddWCr7 /BS8p8K3EcAGp2KiGhILZZ8LvSomMmZsFQZwFgafMY8JimF1qa3bZMF//kxLhbLfiZiq ZVobbtLAv6kl8zhfIiikZ7NLr+JdRPkd3E9iA1Qu8ojzB3JRCSkuxf3VHq7XiYByeWy3 I/cILQFG2fhyhYrK+KAquDL1/7w1hnB/U35OSfxdyYntaELtFhZkuxDJ3jGUCFDI/UU9 P2edNCSiQE8uRsQE1ZG6JTnhjzIronJKJIkLGc525jb4dgzAdTjuY6mm2joDgjzB0En/ FPGA== 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=Xxy9567/LyD/NAl1R9dzWOF5rk63KT8JXQlJtDyUSpQ=; b=bct6fR0EhmEzU5b2UT41ONAl5urJurZ58+OR5ESgZcCQ8zl+rwhkLcQEPudoqiaVaq 6ToJbYr7Hr1l2XVUOp0p+ryjBZoDOCg0QlC/HNn9/+x8A6syByT3kGT2zFZeIIZF1JWN NLbSb/Q58npNxxugjnhNw8JHha07DPk8RXYmjG1Bgkr6DJ73zGQJgYyJ6e9Sc0ekNu+M 5dKYlNqdquRC5izEXuNbZjCsfa361Bq/2bp0m9plelhVZ+aGY3YfSlSDH5cyT30D59f9 YS36RfjjcgbomfWua0Tnac8zQKsnAtQamn2CrDPFOAV83YGFqivqm2fUYlgkuO8t2KFQ R1Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GWAzig0w; 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 p125si2039295qkd.162.2017.10.09.18.13.48 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 09 Oct 2017 18:13:49 -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=GWAzig0w; 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]:60557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1j7D-0006nv-4c for patch@linaro.org; Mon, 09 Oct 2017 21:13:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1iqY-0002XL-JC for qemu-devel@nongnu.org; Mon, 09 Oct 2017 20:56:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1iqW-0004c4-T5 for qemu-devel@nongnu.org; Mon, 09 Oct 2017 20:56:34 -0400 Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]:57221) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1iqW-0004bg-Nn for qemu-devel@nongnu.org; Mon, 09 Oct 2017 20:56:32 -0400 Received: by mail-pf0-x235.google.com with SMTP id b85so4313257pfj.13 for ; Mon, 09 Oct 2017 17:56:32 -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=Xxy9567/LyD/NAl1R9dzWOF5rk63KT8JXQlJtDyUSpQ=; b=GWAzig0wunxWWL/bVg9au31gXkJ9Xyt93mjFaiG1PIyMcaUktVhd1DjXl/zPrU087H PkVsO+/buch2Hg+7OnBlwUTPfRl65Z1YWQJrwJRe6z2anMoMfMtB3LUtfuvt34qVUs3u gikzcB1nj1g5kYjr+tmLo8Romlxpt1tPedp18= 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=Xxy9567/LyD/NAl1R9dzWOF5rk63KT8JXQlJtDyUSpQ=; b=WVLzAFewG4MQhqYVNngkGI+eH0RInLsYU0etMwv8Y588MpB4CTxB2X1PwxzWgKFBzO Y6gF36y5ROk38sGEgKzcOxL6poS7/7Lj3+vqbAdM686QFcC/0lWsKL5VP4a4PrXYRGGv gtf+XOJ6DNWJBJHCA2wxPdVwX9eP+wlDt06XQ4CK2itzt9U+cBL34C/Zlc0e4O+EzY2l Z+ZoxeAav5TlnGkb7Af/qwfRgGWgGwoT+puoaajy3Kya2bUvZOBLN+wHv4QZ5Z4N9lbf DYBRmuRO167Hjtnh2MSI5s0fT7c3TW8Nk9qzcBsAFc0vmwjC4xtHDGX9NxYLAiQ9Yoii Q+AA== X-Gm-Message-State: AMCzsaUZltHCdFrrq+4OiJLBrWVuxngHGFoqPfaPSQZeVfNmuXOGoYRB RBizrlT9T/qzjiGO39wTnV4yprgT6UQ= X-Google-Smtp-Source: AOwi7QD5BenNjICTwB9otSPAMdmWrpr9xozDtNZenm7kwbgvCBxFDd6EMkXs8drEVW51xlHj7ZS2WQ== X-Received: by 10.84.246.197 with SMTP id j5mr10841575plt.164.1507596991470; Mon, 09 Oct 2017 17:56:31 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-104-76.tukw.qwest.net. [97.126.104.76]) by smtp.gmail.com with ESMTPSA id n19sm17121368pfj.52.2017.10.09.17.56.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Oct 2017 17:56:30 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 9 Oct 2017 17:55:59 -0700 Message-Id: <20171010005600.28735-23-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171010005600.28735-1-richard.henderson@linaro.org> References: <20171010005600.28735-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:400e:c00::235 Subject: [Qemu-devel] [PULL 22/23] tcg: define TCG_HIGHWATER 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, "Emilio G. Cota" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Emilio G. Cota" Will come in handy very soon. Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Signed-off-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.13.6 diff --git a/tcg/tcg.c b/tcg/tcg.c index ee60798438..4492e1eb3f 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -116,6 +116,8 @@ static int tcg_target_const_match(tcg_target_long val, TCGType type, static bool tcg_out_ldst_finalize(TCGContext *s); #endif +#define TCG_HIGHWATER 1024 + static TCGRegSet tcg_target_available_regs[2]; static TCGRegSet tcg_target_call_clobber_regs; @@ -430,7 +432,7 @@ void tcg_prologue_init(TCGContext *s) /* Compute a high-water mark, at which we voluntarily flush the buffer and start over. The size here is arbitrary, significantly larger than we expect the code generation for any one opcode to require. */ - s->code_gen_highwater = s->code_gen_buffer + (total_size - 1024); + s->code_gen_highwater = s->code_gen_buffer + (total_size - TCG_HIGHWATER); tcg_register_jit(s->code_gen_buffer, total_size);