aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2018-01-19 12:44:44 +0100
committerLaurent Vivier <laurent@vivier.eu>2018-01-25 16:02:24 +0100
commit39e3e113bdb27b4144d697fbd6678a9c24740103 (patch)
tree36775e87fb5af22a4611b0a5af3cfa1c5b7754aa /target
parent0f79bfe38a2cf0f43c7ea4959da7f8ebd7858f3d (diff)
downloadqemu-39e3e113bdb27b4144d697fbd6678a9c24740103.zip
qemu-39e3e113bdb27b4144d697fbd6678a9c24740103.tar.gz
qemu-39e3e113bdb27b4144d697fbd6678a9c24740103.tar.bz2
target/m68k: fix TCG variable double free
t64 is also unconditionally freed after the switch () { ... } Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Thomas Huth <huth@tuxfamily.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20180119114444.7590-1-laurent@vivier.eu>
Diffstat (limited to 'target')
-rw-r--r--target/m68k/translate.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/target/m68k/translate.c b/target/m68k/translate.c
index f0e86a7..ea18df9 100644
--- a/target/m68k/translate.c
+++ b/target/m68k/translate.c
@@ -969,7 +969,6 @@ static void gen_load_fp(DisasContext *s, int opsize, TCGv addr, TCGv_ptr fp)
case OS_DOUBLE:
tcg_gen_qemu_ld64(t64, addr, index);
gen_helper_extf64(cpu_env, fp, t64);
- tcg_temp_free_i64(t64);
break;
case OS_EXTENDED:
if (m68k_feature(s->env, M68K_FEATURE_CF_FPU)) {