mVU: Fix for a bug that would cause stall cycles to be counted 2 times.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1268 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2 2009-05-26 14:03:29 +00:00
parent 6c58f3039a
commit 12e258ac16
1 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ microVUt(void) mVUincCycles(int x) {
}
if (mVUregs.p) {
calcCycles(mVUregs.p, x);
if (!mVUregs.p) { incP(); }
if (!mVUregs.p || (mVUregs.p && mVUregsTemp.p)) { incP(); }
}
calcCycles(mVUregs.r, x);
calcCycles(mVUregs.xgkick, x);
@ -245,8 +245,8 @@ microVUt(void*) __fastcall mVUcompile(u32 startPC, uptr pState) {
for (int branch = 0; mVUcount < (vuIndex ? (0x3fff/8) : (0xfff/8)); ) {
incPC(1);
mVUinfo = 0;
incCycles(1);
startLoop();
incCycles(1);
mVUopU<vuIndex, 0>();
if (curI & _Ebit_) { branch = 1; }
if (curI & _MDTbit_) { branch = 4; }