SPU: Include BRSL following code in is_exec_code()

This commit is contained in:
Eladash 2024-03-07 17:28:22 +02:00 committed by Elad.Ash
parent e625bab7eb
commit ea0545779a

View file

@ -4241,6 +4241,13 @@ bool spu_thread::is_exec_code(u32 addr, std::span<const u8> ls_ptr, u32 base_add
return false;
}
if (type == spu_itype::BRSL)
{
// Insert a virtual return-to-next, because it is usually a call
results[1] = addr + 4;
std::swap(results[1], results[0]);
}
break;
}
default: