ssa: infinite loop in skipSingleBranchTarget
Fixes Mat Hoffman's Pro BMX freeze when exiting a session. Issue #878
This commit is contained in:
parent
329e5ed467
commit
4bbf5c562e
|
@ -734,7 +734,7 @@ private:
|
|||
bool success = false;
|
||||
const u32 start_page = block->vaddr >> 12;
|
||||
const u32 end_page = (block->vaddr + (block->guest_opcodes - 1) * 2) >> 12;
|
||||
while (true)
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
if ((addr >> 12) < start_page || ((addr + 2) >> 12) > end_page)
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue