From: notaz Date: Thu, 27 Jan 2022 22:02:09 +0000 (+0200) Subject: drc: clear dirty flag when deallocating a reg X-Git-Tag: r23~33 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=commitdiff_plain;h=a550c61c2bad6706ecd46003cdb7b43760d02b03;hp=6cc8d23c0c5284522c62ce333a7c2286198e9db8 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<