]> Git Repo - qemu.git/commitdiff
target/mips: Fix TCG temporary leaks in gen_pool32a5_nanomips_insn()
authorPhilippe Mathieu-Daudé <[email protected]>
Sun, 30 May 2021 09:36:29 +0000 (11:36 +0200)
committerPhilippe Mathieu-Daudé <[email protected]>
Thu, 24 Jun 2021 14:44:14 +0000 (16:44 +0200)
Fix a pair of TCG temporary leak when translating nanoMIPS SHILO opcode.

Fixes: 3285a3e4445 ("target/mips: Add emulation of DSP ASE for nanoMIPS")
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <20210530094538.1275329[email protected]>

target/mips/tcg/translate.c

index 797eba44347062cee06a46f7c2e48c8046030096..120484a6c0671f84ff5c4981fdb4c05e8c3995d9 100644 (file)
@@ -20182,6 +20182,8 @@ static void gen_pool32a5_nanomips_insn(DisasContext *ctx, int opc,
             tcg_gen_movi_tl(tv0, rd >> 3);
             tcg_gen_movi_tl(tv1, imm);
             gen_helper_shilo(tv0, tv1, cpu_env);
+            tcg_temp_free(tv1);
+            tcg_temp_free(tv0);
         }
         break;
     case NM_MULEQ_S_W_PHL:
This page took 0.0549 seconds and 4 git commands to generate.