Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KzrVx-00085d-Tk for qemu-devel@nongnu.org; Tue, 11 Nov 2008 06:34:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzrVw-00085E-Tf for qemu-devel@nongnu.org; Tue, 11 Nov 2008 06:34:33 -0500 Received: from [199.232.76.173] (port=52644 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzrVw-00085A-Qg for qemu-devel@nongnu.org; Tue, 11 Nov 2008 06:34:32 -0500 Received: from savannah.gnu.org ([199.232.41.3]:43890 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KzrVw-0004HY-8t for qemu-devel@nongnu.org; Tue, 11 Nov 2008 06:34:32 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KzrVv-0003F4-9W for qemu-devel@nongnu.org; Tue, 11 Nov 2008 11:34:31 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KzrVu-0003F0-Vc for qemu-devel@nongnu.org; Tue, 11 Nov 2008 11:34:31 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Tue, 11 Nov 2008 11:34:30 +0000 Subject: [Qemu-devel] [5673] target-mips: fix temporary variable freeing in op_ldst_##insn() Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5673 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5673 Author: aurel32 Date: 2008-11-11 11:34:30 +0000 (Tue, 11 Nov 2008) Log Message: ----------- target-mips: fix temporary variable freeing in op_ldst_##insn() Move tcg_temp_free() out of the conditional part to make sure the TCG temporary variable is freed in all cases. Signed-off-by: Aurelien Jarno Acked-by: Thiemo Seufer Modified Paths: -------------- trunk/target-mips/translate.c Modified: trunk/target-mips/translate.c =================================================================== --- trunk/target-mips/translate.c 2008-11-11 11:30:48 UTC (rev 5672) +++ trunk/target-mips/translate.c 2008-11-11 11:34:30 UTC (rev 5673) @@ -1045,13 +1045,13 @@ gen_set_label(l1); \ tcg_gen_ld_tl(r_tmp, cpu_env, offsetof(CPUState, CP0_LLAddr)); \ tcg_gen_brcond_tl(TCG_COND_NE, t0, r_tmp, l2); \ - tcg_temp_free(r_tmp); \ tcg_gen_qemu_##fname(t1, t0, ctx->mem_idx); \ tcg_gen_movi_tl(t0, 1); \ tcg_gen_br(l3); \ gen_set_label(l2); \ tcg_gen_movi_tl(t0, 0); \ gen_set_label(l3); \ + tcg_temp_free(r_tmp); \ } OP_ST_ATOMIC(sc,st32,0x3); #if defined(TARGET_MIPS64)