From patchwork Fri Mar 11 13:32:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 504 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:43:11 -0000 Delivered-To: patches@linaro.org Received: by 10.224.67.207 with SMTP id s15cs58702qai; Fri, 11 Mar 2011 05:32:37 -0800 (PST) Received: by 10.216.136.91 with SMTP id v69mr7217283wei.16.1299850356888; Fri, 11 Mar 2011 05:32:36 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk [81.2.115.146]) by mx.google.com with ESMTPS id n14si8103038wer.24.2011.03.11.05.32.36 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Mar 2011 05:32:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1Py2SI-0005g2-6I; Fri, 11 Mar 2011 13:32:34 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org Subject: [PATCH] target-arm: Fix TCG temporary leaks for scalar VMULL Date: Fri, 11 Mar 2011 13:32:34 +0000 Message-Id: <1299850354-21799-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.3 Fix a TCG temporary leak when translating 32-bit scalar VMULL. Signed-off-by: Peter Maydell --- This was found by the TCG leak-checking support that was committed a little while back. Score one for debug code :-) target-arm/translate.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 062de5e..e8ec987 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -4157,10 +4157,12 @@ static inline void gen_neon_mull(TCGv_i64 dest, TCGv a, TCGv b, int size, int u) case 4: tmp = gen_muls_i64_i32(a, b); tcg_gen_mov_i64(dest, tmp); + tcg_temp_free_i64(tmp); break; case 5: tmp = gen_mulu_i64_i32(a, b); tcg_gen_mov_i64(dest, tmp); + tcg_temp_free_i64(tmp); break; default: abort(); }