mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
6c58f3039a
commit
12e258ac16
|
@ -122,7 +122,7 @@ microVUt(void) mVUincCycles(int x) {
|
||||||
}
|
}
|
||||||
if (mVUregs.p) {
|
if (mVUregs.p) {
|
||||||
calcCycles(mVUregs.p, x);
|
calcCycles(mVUregs.p, x);
|
||||||
if (!mVUregs.p) { incP(); }
|
if (!mVUregs.p || (mVUregs.p && mVUregsTemp.p)) { incP(); }
|
||||||
}
|
}
|
||||||
calcCycles(mVUregs.r, x);
|
calcCycles(mVUregs.r, x);
|
||||||
calcCycles(mVUregs.xgkick, 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)); ) {
|
for (int branch = 0; mVUcount < (vuIndex ? (0x3fff/8) : (0xfff/8)); ) {
|
||||||
incPC(1);
|
incPC(1);
|
||||||
mVUinfo = 0;
|
mVUinfo = 0;
|
||||||
incCycles(1);
|
|
||||||
startLoop();
|
startLoop();
|
||||||
|
incCycles(1);
|
||||||
mVUopU<vuIndex, 0>();
|
mVUopU<vuIndex, 0>();
|
||||||
if (curI & _Ebit_) { branch = 1; }
|
if (curI & _Ebit_) { branch = 1; }
|
||||||
if (curI & _MDTbit_) { branch = 4; }
|
if (curI & _MDTbit_) { branch = 4; }
|
||||||
|
|
Loading…
Reference in New Issue