From: notaz Date: Sun, 28 Nov 2021 15:23:34 +0000 (+0200) Subject: drc: don't cull ccreg X-Git-Tag: r23~53 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b1c7cd1dd8da0be729bae21df9243a9fa33157b;p=pcsx_rearmed.git drc: don't cull ccreg It didn't even seem to be written back. What was the point doing so anyway, other regs were (maybe?) culled to prevent saving/restoring them in memhandlers, but ccreg is in callee-saved reg anyway? We also need ccreg more often now for stalls. --- diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index 71fabb8b..77fc3579 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -8472,7 +8472,8 @@ int new_recompile_block(u_int addr) if((regs[i].regmap[hr]&63)!=dops[i].rt1 && (regs[i].regmap[hr]&63)!=dops[i].rt2 && regs[i].regmap[hr]!=dops[i].rs1 && regs[i].regmap[hr]!=dops[i].rs2 && (regs[i].regmap[hr]&63)!=temp && regs[i].regmap[hr]!=map1 && regs[i].regmap[hr]!=map2 && - (dops[i].itype!=SPAN||regs[i].regmap[hr]!=CCREG)) + //(dops[i].itype!=SPAN||regs[i].regmap[hr]!=CCREG) + regs[i].regmap[hr] != CCREG) { if(i