Merge pull request #1299 from comex/blr-opt-infinite-loop

If the stack overflow trap region has already been tripped, don't continue to ignore faults there.
This commit is contained in:
skidau 2014-10-19 15:22:42 +11:00
commit 033a349444
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ bool Jit64::HandleFault(uintptr_t access_address, SContext* ctx)
{
uintptr_t stack = (uintptr_t)m_stack, diff = access_address - stack;
// In the trap region?
if (stack && diff >= GUARD_OFFSET && diff < GUARD_OFFSET + GUARD_SIZE)
if (m_enable_blr_optimization && diff >= GUARD_OFFSET && diff < GUARD_OFFSET + GUARD_SIZE)
{
WARN_LOG(POWERPC, "BLR cache disabled due to excessive BL in the emulated program.");
m_enable_blr_optimization = false;