summaryrefslogtreecommitdiffstats
path: root/target/mips
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2021-06-17 18:03:34 +0200
committerPhilippe Mathieu-Daudé2021-06-24 16:45:41 +0200
commit6eb223104c4e5cdfeaf57cff20fb1ad54084393b (patch)
tree505f571dc7c5e15dbdf56b166a36a57f96cccd9a /target/mips
parenttarget/mips: Fix TCG temporary leaks in gen_pool32a5_nanomips_insn() (diff)
downloadqemu-6eb223104c4e5cdfeaf57cff20fb1ad54084393b.tar.gz
qemu-6eb223104c4e5cdfeaf57cff20fb1ad54084393b.tar.xz
qemu-6eb223104c4e5cdfeaf57cff20fb1ad54084393b.zip
target/mips: Fix more TCG temporary leaks in gen_pool32a5_nanomips_insn
Fix multiple TCG temporary leaks in gen_pool32a5_nanomips_insn(). Fixes: 3285a3e4445 ("target/mips: Add emulation of DSP ASE for nanoMIPS - part 1") Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210617174323.2900831-3-f4bug@amsat.org>
Diffstat (limited to 'target/mips')
-rw-r--r--target/mips/tcg/translate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/mips/tcg/translate.c b/target/mips/tcg/translate.c
index 120484a6c0..09b19262c8 100644
--- a/target/mips/tcg/translate.c
+++ b/target/mips/tcg/translate.c
@@ -20298,6 +20298,10 @@ static void gen_pool32a5_nanomips_insn(DisasContext *ctx, int opc,
gen_reserved_instruction(ctx);
break;
}
+
+ tcg_temp_free(v2_t);
+ tcg_temp_free(v1_t);
+ tcg_temp_free(t0);
}
static int decode_nanomips_32_48_opc(CPUMIPSState *env, DisasContext *ctx)