[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/9] target/mips: Fix more TCG temporary leaks in gen_pool32a5_na
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 2/9] target/mips: Fix more TCG temporary leaks in gen_pool32a5_nanomips_insn |
Date: |
Thu, 17 Jun 2021 19:43:16 +0200 |
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>
---
target/mips/tcg/translate.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/mips/tcg/translate.c b/target/mips/tcg/translate.c
index b92a473f870..4b7229a868a 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)
--
2.31.1
- [PATCH 0/9] target/mips: Various fixes & cleanups, Philippe Mathieu-Daudé, 2021/06/17
- [PATCH 1/9] target/mips: Do not abort on invalid instruction, Philippe Mathieu-Daudé, 2021/06/17
- [PATCH 2/9] target/mips: Fix more TCG temporary leaks in gen_pool32a5_nanomips_insn,
Philippe Mathieu-Daudé <=
- [PATCH 3/9] target/mips: Move TCG trace events to tcg/ sub directory, Philippe Mathieu-Daudé, 2021/06/17
- [PATCH 4/9] target/mips: Move translate.h to tcg/ sub directory, Philippe Mathieu-Daudé, 2021/06/17
- [PATCH 5/9] target/mips: Restrict some system specific declarations to sysemu, Philippe Mathieu-Daudé, 2021/06/17
- [PATCH 6/9] target/mips: Remove SmartMIPS / MDMX unuseful comments, Philippe Mathieu-Daudé, 2021/06/17