aboutsummaryrefslogtreecommitdiff
path: root/target-cris
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar@axis.com>2011-01-07 12:50:38 +0100
committerEdgar E. Iglesias <edgar@axis.com>2011-01-07 12:50:38 +0100
commit2a704b137f1acfbd972aa6e9f031c5015c7e28cb (patch)
tree287365fb88a993a7ce98c0348f710e1c54d66d23 /target-cris
parent78935c4a4bfec8ef2f4f924cfc35ac09a963e81e (diff)
downloadqemu-2a704b137f1acfbd972aa6e9f031c5015c7e28cb.zip
qemu-2a704b137f1acfbd972aa6e9f031c5015c7e28cb.tar.gz
qemu-2a704b137f1acfbd972aa6e9f031c5015c7e28cb.tar.bz2
cris: Avoid useless tmp in t_gen_cc_jmp()
Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
Diffstat (limited to 'target-cris')
-rw-r--r--target-cris/translate.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c
index 4e4606c..57d8532 100644
--- a/target-cris/translate.c
+++ b/target-cris/translate.c
@@ -577,20 +577,15 @@ static inline void t_gen_swapr(TCGv d, TCGv s)
static void t_gen_cc_jmp(TCGv pc_true, TCGv pc_false)
{
- TCGv btaken;
int l1;
l1 = gen_new_label();
- btaken = tcg_temp_new();
/* Conditional jmp. */
- tcg_gen_mov_tl(btaken, env_btaken);
tcg_gen_mov_tl(env_pc, pc_false);
- tcg_gen_brcondi_tl(TCG_COND_EQ, btaken, 0, l1);
+ tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, l1);
tcg_gen_mov_tl(env_pc, pc_true);
gen_set_label(l1);
-
- tcg_temp_free(btaken);
}
static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest)