From 3119154db04890fdf57022a43cf2ee594fd4da5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Fri, 17 Apr 2020 11:07:49 +0200 Subject: [PATCH] target/ppc: Fix TCG temporary leaks in gen_slbia() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes: $ qemu-system-ppc64 \ -machine pseries-4.1 -cpu power9 \ -smp 4 -m 12G -accel tcg ... ... Quiescing Open Firmware ... Booting Linux via __start() @ 0x0000000002000000 ... Opcode 1f 12 0f 00 (7ce003e4) leaked temporaries Opcode 1f 12 0f 00 (7ce003e4) leaked temporaries Opcode 1f 12 0f 00 (7ce003e4) leaked temporaries [*] https://www.mail-archive.com/qemu-discuss@nongnu.org/msg05400.html Fixes: 0418bf78fe8 ("Fix ISA v3.0 (POWER9) slbia implementation") Reported-by: Dennis Clarke Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Nicholas Piggin Reviewed-by: Cédric Le Goater Message-id: 20200417090749.14310-1-f4bug@amsat.org Signed-off-by: Peter Maydell --- target/ppc/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 9959259dba..807d14faaa 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -5011,6 +5011,7 @@ static void gen_slbia(DisasContext *ctx) CHK_SV; gen_helper_slbia(cpu_env, t0); + tcg_temp_free_i32(t0); #endif /* defined(CONFIG_USER_ONLY) */ }