Skip to contentSkip to conversation

target/m68k: fix TCG variable double free

PATCH In review Laurent Vivier 3 participants 3 messages Jan 19, 2018 – Jan 22, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/m68k: fix TCG variable double free

t64 is also unconditionally freed after the switch () { ... }

---
 target/m68k/translate.c | 1 -
 1 file changed, 1 deletion(-)
target/m68k/translate.c +0 -1
index f0e86a73d4..ea18df940a 100644
@@ -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)) {
Signature · 1 line
2.14.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Laurent Vivier

t64 is also unconditionally freed after the switch () { ... }

---
 target/m68k/translate.c | 1 -
 1 file changed, 1 deletion(-)
target/m68k/translate.c +0 -0
index f0e86a73d4..ea18df940a 100644

target/m68k/translate.c static void gen_load_fp(DisasContext *s, int opsize, TCGv addr, TCGv_ptr fp) · line 974

Quoted 7 lines
target/m68k/translate.c +0 -1
@@ -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)) {