From patchwork Tue Oct 10 19:30:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 9997145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 257D9603FF for ; Tue, 10 Oct 2017 19:43:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1650928751 for ; Tue, 10 Oct 2017 19:43:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B2F828753; Tue, 10 Oct 2017 19:43:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B240F28752 for ; Tue, 10 Oct 2017 19:43:06 +0000 (UTC) Received: from localhost ([::1]:36847 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e20Qj-0001FU-T2 for patchwork-qemu-devel@patchwork.kernel.org; Tue, 10 Oct 2017 15:43:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e20Ec-0000ps-5G for qemu-devel@nongnu.org; Tue, 10 Oct 2017 15:30:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e20Eb-00058X-2F for qemu-devel@nongnu.org; Tue, 10 Oct 2017 15:30:34 -0400 Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]:47480) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e20Ea-00058G-T0 for qemu-devel@nongnu.org; Tue, 10 Oct 2017 15:30:32 -0400 Received: by mail-pf0-x231.google.com with SMTP id z11so8330548pfk.4 for ; Tue, 10 Oct 2017 12:30: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=CvnQNCw6OVJDXNuXROE0FyeR5W223VwJtXHq1eOFdtzMQmeXIr3Mg4B9IWvOQLbaDe F2BDlyu8vRe8c6vrW24TUUKChAv3rJLE4Ttspn04xq/5z3dgw8Ia0vCJ4b0E402TJBGh UAar8xDPvu99R6HFxFl8mC6HgMhRHfwX4hBFg= 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=CRYydxMD2tDus6L6ZJvSy11CtTMMqm2D8Gjz6lgIac3ezvgY4hYRKQjnAqZLMCv9Mx s/TeDcrem5N0qcMdEgu5cQguw3Rds+YIqzsS6MvockMIcchQTq63TGu5TXlKS3PqgRuS dumguowYP4HtoXvm+3qBj/x3cD6hqVlUC0r+mN0HuRdZnYp0qJTX4elqGxOUQbySDCib 2eWx/TnOhnyq7T/8mLy03ZAbpGjwy4Rbbmahn1/zfjzUlKO5SbqYb7GVhmaP6ioBJXbR RRoaSg97PR/uTr3FkT6NyycHfwECQEuhd2qM34HfESbt3P4lAxTT/2gH4NffyIGqKtA0 pgFw== X-Gm-Message-State: AMCzsaURNe8zDuuHnVh5cL6+SEdBVqGWY5MebkaMsgg6OIJqWzsP58B1 q8VqTi7Hzt/Pg0bcyHI46pQ0mGfO/Io= X-Google-Smtp-Source: AOwi7QClrZlvihdJgRC+g3YU4sZOBnQXgwyO4bY0g2CSu7ytJGPIE6o0Qsos7dGBg4Zn35BbvrgOvw== X-Received: by 10.98.65.27 with SMTP id o27mr14601392pfa.327.1507663831704; Tue, 10 Oct 2017 12:30: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 r22sm19859788pfl.15.2017.10.10.12.30.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Oct 2017 12:30:30 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 10 Oct 2017 12:30:02 -0700 Message-Id: <20171010193003.28857-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171010193003.28857-1-richard.henderson@linaro.org> References: <20171010193003.28857-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::231 Subject: [Qemu-devel] [PULL v2 19/20] 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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);