Skip to content

Commit 3119154

Browse files
philmdpm215
authored andcommitted
target/ppc: Fix TCG temporary leaks in gen_slbia()
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/[email protected]/msg05400.html Fixes: 0418bf7 ("Fix ISA v3.0 (POWER9) slbia implementation") Reported-by: Dennis Clarke <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Nicholas Piggin <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]> Message-id: [email protected] Signed-off-by: Peter Maydell <[email protected]>
1 parent 5b4273e commit 3119154

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

target/ppc/translate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5011,6 +5011,7 @@ static void gen_slbia(DisasContext *ctx)
50115011
CHK_SV;
50125012

50135013
gen_helper_slbia(cpu_env, t0);
5014+
tcg_temp_free_i32(t0);
50145015
#endif /* defined(CONFIG_USER_ONLY) */
50155016
}
50165017

0 commit comments

Comments
 (0)