Break up very long recompiled blocks.

Perform a branch test before jumping to the next block.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1058 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
sudonim1 2009-04-25 00:39:07 +00:00
parent 4f08dc6bad
commit 7f096c63ad
1 changed files with 4 additions and 1 deletions

View File

@ -1219,6 +1219,9 @@ void recompileNextInstruction(int delayslot)
// _freeMMXregs(); // _freeMMXregs();
// _flushCachedRegs(); // _flushCachedRegs();
// g_cpuHasConstReg = 1; // g_cpuHasConstReg = 1;
if (!delayslot && x86Ptr - recPtr > 0x1000)
s_nEndBlock = pc;
} }
extern u32 psxdump; extern u32 psxdump;
@ -1724,7 +1727,7 @@ StartRecomp:
if( willbranch3 || !branch) { if( willbranch3 || !branch) {
iFlushCall(FLUSH_EVERYTHING); iFlushCall(FLUSH_EVERYTHING);
iBranch(pc, 0); iBranchTest(pc);
} }
} }