mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
armjit: Verify free space while compiling.
This commit is contained in:
parent
ca7b2b554b
commit
8ceaafc159
1 changed files with 8 additions and 0 deletions
|
@ -279,6 +279,14 @@ const u8 *Jit::DoJit(u32 em_address, JitBlock *b)
|
|||
SetJumpTarget(skip);
|
||||
partialFlushOffset = GetCodePtr() - b->checkedEntry;
|
||||
}
|
||||
|
||||
// Safety check, in case we get a bunch of really large jit ops without a lot of branching.
|
||||
if (GetSpaceLeft() < 0x800)
|
||||
{
|
||||
FlushAll();
|
||||
WriteExit(js.compilerPC, js.nextExit++);
|
||||
js.compiling = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (jo.useForwardJump) {
|
||||
|
|
Loading…
Add table
Reference in a new issue