aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target/ppc/translate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/ppc/translate.c b/target/ppc/translate.c
index 98b37ce..aaafa3a 100644
--- a/target/ppc/translate.c
+++ b/target/ppc/translate.c
@@ -3749,6 +3749,8 @@ static void gen_bcond(DisasContext *ctx, int type)
TCGv temp = tcg_temp_new();
if (unlikely(type == BCOND_CTR)) {
gen_inval_exception(ctx, POWERPC_EXCP_INVAL_INVAL);
+ tcg_temp_free(temp);
+ tcg_temp_free(target);
return;
}
tcg_gen_subi_tl(cpu_ctr, cpu_ctr, 1);