Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KucD0-0007ZT-GR for qemu-devel@nongnu.org; Mon, 27 Oct 2008 20:13:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KucCz-0007ZG-QT for qemu-devel@nongnu.org; Mon, 27 Oct 2008 20:13:17 -0400 Received: from [199.232.76.173] (port=55475 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KucCz-0007ZC-Kb for qemu-devel@nongnu.org; Mon, 27 Oct 2008 20:13:17 -0400 Received: from savannah.gnu.org ([199.232.41.3]:49463 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 1KucCz-0002RX-Ag for qemu-devel@nongnu.org; Mon, 27 Oct 2008 20:13:17 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KucCy-0002I0-E5 for qemu-devel@nongnu.org; Tue, 28 Oct 2008 00:13:16 +0000 Received: from edgar_igl by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KucCx-0002Hu-Ux for qemu-devel@nongnu.org; Tue, 28 Oct 2008 00:13:16 +0000 MIME-Version: 1.0 Errors-To: edgar_igl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: "Edgar E. Iglesias" Message-Id: Date: Tue, 28 Oct 2008 00:13:16 +0000 Subject: [Qemu-devel] [5560] CRIS: Plug more temp leaks. 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: 5560 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5560 Author: edgar_igl Date: 2008-10-28 00:13:15 +0000 (Tue, 28 Oct 2008) Log Message: ----------- CRIS: Plug more temp leaks. Signed-off-by: Edgar E. Iglesias Modified Paths: -------------- trunk/target-cris/translate.c Modified: trunk/target-cris/translate.c =================================================================== --- trunk/target-cris/translate.c 2008-10-28 00:11:06 UTC (rev 5559) +++ trunk/target-cris/translate.c 2008-10-28 00:13:15 UTC (rev 5560) @@ -231,10 +231,9 @@ TCGv t0, t_31; t0 = tcg_temp_new(TCG_TYPE_TL); - t_31 = tcg_temp_new(TCG_TYPE_TL); + t_31 = tcg_const_tl(31); tcg_gen_shl_tl(d, a, b); - tcg_gen_movi_tl(t_31, 31); tcg_gen_sub_tl(t0, t_31, b); tcg_gen_sar_tl(t0, t0, t_31); tcg_gen_and_tl(t0, t0, d); @@ -929,16 +928,17 @@ if (op == CC_OP_BOUND || op == CC_OP_BTST) tmp = tcg_temp_local_new(TCG_TYPE_TL); - else - tmp = tcg_temp_new(TCG_TYPE_TL); if (op == CC_OP_CMP) { + tmp = tcg_temp_new(TCG_TYPE_TL); writeback = 0; } else if (size == 4) { tmp = d; writeback = 0; - } + } else + tmp = tcg_temp_new(TCG_TYPE_TL); + cris_pre_alu_update_cc(dc, op, op_a, op_b, size); cris_alu_op_exec(dc, op, tmp, op_a, op_b, size); cris_update_result(dc, tmp);