From 95db132180789bfb321ff100364d5b93b90844d2 Mon Sep 17 00:00:00 2001 From: cottonvibes Date: Thu, 25 Jun 2009 05:41:40 +0000 Subject: [PATCH] microVU: minor changes... git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1431 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/x86/microVU_Lower.inl | 1 + pcsx2/x86/microVU_Misc.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pcsx2/x86/microVU_Lower.inl b/pcsx2/x86/microVU_Lower.inl index a91266f159..8c82889596 100644 --- a/pcsx2/x86/microVU_Lower.inl +++ b/pcsx2/x86/microVU_Lower.inl @@ -1056,6 +1056,7 @@ mVUop(mVU_XITOP) { pass1 { if (!_It_) { mVUlow.isNOP = 1; } analyzeVIreg2(_It_, mVUlow.VI_write, 1); } pass2 { MOVZX32M16toR(gprT1, (uptr)&mVU->regs->vifRegs->itop); + AND32ItoR(gprT1, isVU1 ? 0x3ff : 0xff); mVUallocVIb(mVU, gprT1, _It_); } pass3 { mVUlog("XITOP vi%02d", _Ft_); } diff --git a/pcsx2/x86/microVU_Misc.h b/pcsx2/x86/microVU_Misc.h index c895c7eee2..8fbf0ecbd0 100644 --- a/pcsx2/x86/microVU_Misc.h +++ b/pcsx2/x86/microVU_Misc.h @@ -109,7 +109,7 @@ declareAllVariables #define divI 0x1040000 #define divD 0x2080000 -#define isVU1 (mVU == µVU1) +#define isVU1 (mVU->index != 0) #define getIndex (isVU1 ? 1 : 0) #define getVUmem(x) (((isVU1) ? (x & 0x3ff) : ((x >= 0x400) ? (x & 0x43f) : (x & 0xff))) * 16) #define offsetSS ((_X) ? (0) : ((_Y) ? (4) : ((_Z) ? 8: 12)))