mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-10-19 09:28:18 +02: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 New Issue
Block a user