ssa: infinite loop in skipSingleBranchTarget

Fixes Mat Hoffman's Pro BMX freeze when exiting a session.
Issue #878
This commit is contained in:
Flyinghead 2023-01-15 20:04:05 +01:00
parent 329e5ed467
commit 4bbf5c562e
1 changed files with 1 additions and 1 deletions

View File

@ -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;