[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/2] target/sh4: add missing tcg_temp_free() in gen_
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-devel] [PATCH 1/2] target/sh4: add missing tcg_temp_free() in gen_conditional_jump() |
Date: |
Tue, 5 Dec 2017 14:00:12 -0300 |
missed in c55497ecb8c.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
target/sh4/translate.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/target/sh4/translate.c b/target/sh4/translate.c
index 703020fe87..5aeaabdd8d 100644
--- a/target/sh4/translate.c
+++ b/target/sh4/translate.c
@@ -322,13 +322,16 @@ static void gen_delayed_conditional_jump(DisasContext *
ctx)
gen_jump(ctx);
gen_set_label(l1);
- return;
+ goto done;
}
tcg_gen_brcondi_i32(TCG_COND_NE, ds, 0, l1);
gen_goto_tb(ctx, 1, ctx->pc + 2);
gen_set_label(l1);
gen_jump(ctx);
+
+done:
+ tcg_temp_free(ds);
}
static inline void gen_load_fpr64(DisasContext *ctx, TCGv_i64 t, int reg)
--
2.15.1