From: notaz Date: Tue, 1 Nov 2011 20:02:08 +0000 (+0200) Subject: drc/gte: decode MVMVA data deps X-Git-Tag: r12~47 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=587a5b1caa1ceb8ea085d4dec0d2b4fbf69226c1;p=pcsx_rearmed.git drc/gte: decode MVMVA data deps --- diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index fb39cf09..533ec79d 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -8699,6 +8699,12 @@ int new_recompile_block(int addr) gte_rs[i]=gte_reg_reads[source[i]&0x3f]; gte_rt[i]=gte_reg_writes[source[i]&0x3f]; gte_rt[i]|=1ll<<63; // every op changes flags + if((source[i]&0x3f)==GTE_MVMVA) { + int v = (source[i] >> 15) & 3; + gte_rs[i]&=~0xe3fll; + if(v==3) gte_rs[i]|=0xe00ll; + else gte_rs[i]|=3ll<<(v*2); + } break; case FLOAT: case FCONV: