mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Make sure there's enough space while compiling.
This commit is contained in:
parent
6c97b66806
commit
3156b95d3f
1 changed files with 8 additions and 0 deletions
|
@ -328,6 +328,14 @@ const u8 *Jit::DoJit(u32 em_address, JitBlock *b)
|
|||
|
||||
js.compilerPC += 4;
|
||||
js.numInstructions++;
|
||||
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
b->codeSize = (u32)(GetCodePtr() - b->normalEntry);
|
||||
|
|
Loading…
Add table
Reference in a new issue