aboutsummaryrefslogtreecommitdiff
path: root/target-cris
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-27 21:10:26 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-27 21:10:26 +0000
commitf4b147f6701f6f5127b70b82f41757a52dfa4aae (patch)
tree5782de9e922ef77762eea7f7e4474a447e681ef5 /target-cris
parentc968ef8df5052100683a4bb375078e46d96203a7 (diff)
downloadqemu-f4b147f6701f6f5127b70b82f41757a52dfa4aae.zip
qemu-f4b147f6701f6f5127b70b82f41757a52dfa4aae.tar.gz
qemu-f4b147f6701f6f5127b70b82f41757a52dfa4aae.tar.bz2
CRIS: Plug a few temp leaks.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5554 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris')
-rw-r--r--target-cris/translate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c
index 7423a6a..6f71e19 100644
--- a/target-cris/translate.c
+++ b/target-cris/translate.c
@@ -1928,6 +1928,7 @@ static unsigned int dec_swap_r(DisasContext *dc)
t_gen_swapr(t0, t0);
cris_alu(dc, CC_OP_MOVE,
cpu_R[dc->op1], cpu_R[dc->op1], t0, 4);
+ tcg_temp_free(t0);
return 2;
}
@@ -1954,6 +1955,7 @@ static unsigned int dec_addi_r(DisasContext *dc)
t0 = tcg_temp_new(TCG_TYPE_TL);
tcg_gen_shl_tl(t0, cpu_R[dc->op2], tcg_const_tl(dc->zzsize));
tcg_gen_add_tl(cpu_R[dc->op1], cpu_R[dc->op1], t0);
+ tcg_temp_free(t0);
return 2;
}
@@ -1966,7 +1968,7 @@ static unsigned int dec_addi_acr(DisasContext *dc)
t0 = tcg_temp_new(TCG_TYPE_TL);
tcg_gen_shl_tl(t0, cpu_R[dc->op2], tcg_const_tl(dc->zzsize));
tcg_gen_add_tl(cpu_R[R_ACR], cpu_R[dc->op1], t0);
-
+ tcg_temp_free(t0);
return 2;
}