From nobody Mon Feb 9 10:48:38 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1500439906296943.5389832331723; Tue, 18 Jul 2017 21:51:46 -0700 (PDT) Received: from localhost ([::1]:59875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXgxc-0001ZK-7J for importer@patchew.org; Wed, 19 Jul 2017 00:51:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXgrv-0004kV-CL for qemu-devel@nongnu.org; Wed, 19 Jul 2017 00:45:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXgru-0006eT-KS for qemu-devel@nongnu.org; Wed, 19 Jul 2017 00:45:51 -0400 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:35858) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXgru-0006eF-ES for qemu-devel@nongnu.org; Wed, 19 Jul 2017 00:45:50 -0400 Received: by mail-pf0-x243.google.com with SMTP id a11so5068098pfj.3 for ; Tue, 18 Jul 2017 21:45:50 -0700 (PDT) Received: from bigtime.twiddle.net (14-203-207-215.tpgi.com.au. [14.203.207.215]) by smtp.gmail.com with ESMTPSA id y5sm8570526pge.38.2017.07.18.21.45.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 21:45:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=TVeWA3pot3m34g1jzYAH16EB0LxgbDDNbsQoYDAak78=; b=iFw7FVpV17geF2UNwHQCKjuB38XTCZ0WPV+Ic4H+9cXf/9oe91Ft2cMF7RZn3s9N2L VRIyBwghT3ghn8Ir/DMygZNcY8rNSI6nWz0tdXjApH5uKyMh9wof8Gy0TgUsBnjd+fsn S+g2LkleLwUvWvIv8gLoJK8TtW0oyJPiP7HL1jbTsRJS1DrJA8uY+q4VU2uSP5z7Qmir ZVKZqR70qhKnEiacDv4YOeSIVMQ7jyB0Q48CG+GSixq3u/o4YdYC5wRuz7tAzqyoJBti ILynUsgeUbOKzXXNPKhri3ArDkmXFAvngJgNZ1PdlkOVrmljgI+TDb7np6N/ldiV/L1X kV9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=TVeWA3pot3m34g1jzYAH16EB0LxgbDDNbsQoYDAak78=; b=Vm4yMr20rAr83Wb3F6pjLhbtEl2JVVEqPeuiXBJZQARsGhAn3vzkAPfRSc6x+bfFHu IzdxLVz4We1raxFV8V75XhKOQ+JrtD4l6biewqxFYVahFYOMLhUv17m1r2CjWSRbTTTw 3eJq2BGvPq3SPhgU+KSixdMto2WRovnyszUHOI+eAMecc2GOWDKNLhiNz27eARbA2OqZ sUQRAdC6bNh/2EE2yJv+q1wNRZGWxVOt6avyWkHPsLJxEFjHWjEt9geUlYJPeNTkVLEI B8lGeP8vN7TtOGlT/jQ+yxKRk73R4y6MgpqPov1x9VXztaHYApSzpMRX9898J9I9h+P/ I0uA== X-Gm-Message-State: AIVw110JT6Xf4GWtA7ZGucrRGvNRH5+BU5vlLLSWCJiYLD33GEoXdOIR ZIuv9sVEBH6ng58WqCc= X-Received: by 10.101.85.14 with SMTP id f14mr1130764pgr.45.1500439549364; Tue, 18 Jul 2017 21:45:49 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 18 Jul 2017 18:45:22 -1000 Message-Id: <20170719044522.21114-9-rth@twiddle.net> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170719044522.21114-1-rth@twiddle.net> References: <20170719044522.21114-1-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::243 Subject: [Qemu-devel] [PULL 8/8] target/alpha: Log temp leaks 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 Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Tested-by: Emilio G. Cota Signed-off-by: Richard Henderson --- target/alpha/translate.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index aaaf28f..90e6d52 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -3013,6 +3013,8 @@ void gen_intermediate_code(CPUAlphaState *env, struct= TranslationBlock *tb) } =20 gen_tb_start(tb); + tcg_clear_temp_count(); + do { tcg_gen_insn_start(ctx.pc); num_insns++; @@ -3035,6 +3037,10 @@ void gen_intermediate_code(CPUAlphaState *env, struc= t TranslationBlock *tb) ret =3D translate_one(ctxp, insn); free_context_temps(ctxp); =20 + if (tcg_check_temp_count()) { + qemu_log("TCG temporary leak before "TARGET_FMT_lx"\n", ctx.pc= ); + } + /* If we reach a page boundary, are single stepping, or exhaust instruction count, stop generation. */ if (ret =3D=3D NO_EXIT --=20 2.9.4