* [Qemu-devel] [5560] CRIS: Plug more temp leaks.
@ 2008-10-28 0:13 Edgar E. Iglesias
0 siblings, 0 replies; only message in thread
From: Edgar E. Iglesias @ 2008-10-28 0:13 UTC (permalink / raw)
To: qemu-devel
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 <edgar.iglesias@gmail.com>
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-28 0:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-28 0:13 [Qemu-devel] [5560] CRIS: Plug more temp leaks Edgar E. Iglesias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).