From: notaz Date: Thu, 27 Jan 2022 22:02:09 +0000 (+0200) Subject: drc: clear dirty flag when deallocating a reg X-Git-Tag: r24l~525 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=214f6f3588348de0913886aea46caa11b2b82e53;p=pcsx_rearmed.git drc: clear dirty flag when deallocating a reg In later stages it may place special regs like AGEN there, and things like AGEN being marked dirty seemed wrong, although probably harmless as there is no code to writeback AGEN. --- diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index de444483..1b2479b8 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -8508,6 +8508,8 @@ int new_recompile_block(u_int addr) { regs[i].regmap[hr]=-1; regs[i].isconst&=~(1<