From: notaz Date: Sat, 10 Dec 2011 17:20:33 +0000 (+0200) Subject: drc: fix bad gte unneeded reg assumption X-Git-Tag: r12~23 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbbd8dd7705d5cb7c748a7ffaf2ccc74893b3910;p=pcsx_rearmed.git drc: fix bad gte unneeded reg assumption --- diff --git a/libpcsxcore/new_dynarec/assem_arm.c b/libpcsxcore/new_dynarec/assem_arm.c index 984b0cef..ebf733b0 100644 --- a/libpcsxcore/new_dynarec/assem_arm.c +++ b/libpcsxcore/new_dynarec/assem_arm.c @@ -4492,8 +4492,8 @@ static void c2op_assemble(int i,struct regstat *i_regs) if (gte_handlers[c2op]!=NULL) { need_flags=!(gte_unneeded[i+1]>>63); // +1 because of how liveness detection works need_ir=(gte_unneeded[i+1]&0xe00)!=0xe00; - assem_debug("gte unneeded %016llx, need_flags %d, need_ir %d\n", - gte_unneeded[i+1],need_flags,need_ir); + assem_debug("gte op %08x, unneeded %016llx, need_flags %d, need_ir %d\n", + source[i],gte_unneeded[i+1],need_flags,need_ir); if(new_dynarec_hacks&NDHACK_GTE_NO_FLAGS) need_flags=0; int shift = (source[i] >> 19) & 1; diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index 8cf8dfbc..37706bc3 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -7025,7 +7025,7 @@ void unneeded_registers(int istart,int iend,int r) uu&=~(1LL<