Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWwok-0007iO-3H for qemu-devel@nongnu.org; Sat, 23 Aug 2008 13:22:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWwoj-0007iC-IF for qemu-devel@nongnu.org; Sat, 23 Aug 2008 13:22:25 -0400 Received: from [199.232.76.173] (port=47497 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWwoj-0007i9-D3 for qemu-devel@nongnu.org; Sat, 23 Aug 2008 13:22:25 -0400 Received: from savannah.gnu.org ([199.232.41.3]:60138 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 1KWwoj-0004p2-I1 for qemu-devel@nongnu.org; Sat, 23 Aug 2008 13:22:25 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KWwoe-0007eS-Nx for qemu-devel@nongnu.org; Sat, 23 Aug 2008 17:22:20 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KWwoe-0007eG-6P for qemu-devel@nongnu.org; Sat, 23 Aug 2008 17:22:20 +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: Sat, 23 Aug 2008 17:22:20 +0000 Subject: [Qemu-devel] [5075] MIPS: don't free TCG temporary variable twice 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: 5075 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5075 Author: aurel32 Date: 2008-08-23 17:22:19 +0000 (Sat, 23 Aug 2008) Log Message: ----------- MIPS: don't free TCG temporary variable twice In gen_dmtc0 function, TCG temporary variable t0 is freed at the end of the function. Variable is freed again in the gen_dmtc0 caller. I removed the free in gen_dmtc0, to do like in gen_dmfc0, gen_mfc0, gen_mtc0. (Herv?\195?\169 Poussineau) Modified Paths: -------------- trunk/target-mips/translate.c Modified: trunk/target-mips/translate.c =================================================================== --- trunk/target-mips/translate.c 2008-08-22 21:30:28 UTC (rev 5074) +++ trunk/target-mips/translate.c 2008-08-23 17:22:19 UTC (rev 5075) @@ -5188,7 +5188,6 @@ rn, reg, sel); } #endif - tcg_temp_free(t0); /* For simplicity assume that all writes can cause interrupts. */ if (use_icount) { gen_io_end(); @@ -5197,7 +5196,6 @@ return; die: - tcg_temp_free(t0); #if defined MIPS_DEBUG_DISAS if (loglevel & CPU_LOG_TB_IN_ASM) { fprintf(logfile, "dmtc0 %s (reg %d sel %d)\n",