mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 13:06:46 +00: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(). Backports commit 44c64e90950adf9efe7f4235a32eb868d1290ebb from qemu
This commit is contained in:
parent
a72a53c2d9
commit
3c6cb445a0
|
@ -2292,6 +2292,7 @@ static TCGv gen_get_sr(DisasContext *s)
|
|||
sr = tcg_temp_new(tcg_ctx);
|
||||
tcg_gen_andi_i32(tcg_ctx, sr, tcg_ctx->QREG_SR, 0xffe0);
|
||||
tcg_gen_or_i32(tcg_ctx, sr, sr, ccr);
|
||||
tcg_temp_free(tcg_ctx, ccr);
|
||||
return sr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue