Merge pull request #940 from ssakash/dothack_fix

MicroVU: check for VF write on mvu flag hack .
This commit is contained in:
refractionpcsx2 2015-11-01 09:21:32 +00:00
commit 83549e6f61
1 changed files with 8 additions and 6 deletions

View File

@ -295,15 +295,17 @@ __ri void flagSet(mV, bool setMacFlag) {
for (int i = mVUcount, j = 0; i > 0; i--, j++) {
j += mVUstall;
incPC(-2);
if (sFLAG.doFlag && (j >= 3)) {
if (setMacFlag) { mFLAG.doFlag = 1; }
sFLAG.doNonSticky = 1;
if (calcOPS >= 4 && mVUup.VF_write.reg) break;
if (sFLAG.doFlag && (j >= 3))
{
if (setMacFlag) mFLAG.doFlag = 1;
sFLAG.doNonSticky = 1;
calcOPS++;
}
if (calcOPS >= 4) break;
}
iPC = curPC;
setCode();
}