From 587a5b1caa1ceb8ea085d4dec0d2b4fbf69226c1 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 1 Nov 2011 22:02:08 +0200 Subject: [PATCH] drc/gte: decode MVMVA data deps --- libpcsxcore/new_dynarec/new_dynarec.c | 6 ++++++ 1 file changed, 6 insertions(+) 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: -- 2.39.5