mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
target/m68k: Fix a tcg_temp leak
The function gen_get_ccr() returns a tcg_temp created with tcg_temp_new(). Free it with tcg_temp_free(). Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20190310003428.11723-4-f4bug@amsat.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
89fa312be0
commit
44c64e9095
1 changed files with 1 additions and 0 deletions
|
@ -2227,6 +2227,7 @@ static TCGv gen_get_sr(DisasContext *s)
|
|||
sr = tcg_temp_new();
|
||||
tcg_gen_andi_i32(sr, QREG_SR, 0xffe0);
|
||||
tcg_gen_or_i32(sr, sr, ccr);
|
||||
tcg_temp_free(ccr);
|
||||
return sr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue