microVU: minor changes...

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1431 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
cottonvibes 2009-06-25 05:41:40 +00:00
parent 8158636490
commit 95db132180
2 changed files with 2 additions and 1 deletions

View File

@ -1056,6 +1056,7 @@ mVUop(mVU_XITOP) {
pass1 { if (!_It_) { mVUlow.isNOP = 1; } analyzeVIreg2(_It_, mVUlow.VI_write, 1); } pass1 { if (!_It_) { mVUlow.isNOP = 1; } analyzeVIreg2(_It_, mVUlow.VI_write, 1); }
pass2 { pass2 {
MOVZX32M16toR(gprT1, (uptr)&mVU->regs->vifRegs->itop); MOVZX32M16toR(gprT1, (uptr)&mVU->regs->vifRegs->itop);
AND32ItoR(gprT1, isVU1 ? 0x3ff : 0xff);
mVUallocVIb(mVU, gprT1, _It_); mVUallocVIb(mVU, gprT1, _It_);
} }
pass3 { mVUlog("XITOP vi%02d", _Ft_); } pass3 { mVUlog("XITOP vi%02d", _Ft_); }

View File

@ -109,7 +109,7 @@ declareAllVariables
#define divI 0x1040000 #define divI 0x1040000
#define divD 0x2080000 #define divD 0x2080000
#define isVU1 (mVU == &microVU1) #define isVU1 (mVU->index != 0)
#define getIndex (isVU1 ? 1 : 0) #define getIndex (isVU1 ? 1 : 0)
#define getVUmem(x) (((isVU1) ? (x & 0x3ff) : ((x >= 0x400) ? (x & 0x43f) : (x & 0xff))) * 16) #define getVUmem(x) (((isVU1) ? (x & 0x3ff) : ((x >= 0x400) ? (x & 0x43f) : (x & 0xff))) * 16)
#define offsetSS ((_X) ? (0) : ((_Y) ? (4) : ((_Z) ? 8: 12))) #define offsetSS ((_X) ? (0) : ((_Y) ? (4) : ((_Z) ? 8: 12)))