mirror of
https://github.com/RPCS3/rpcs3
synced 2024-11-05 16:05:48 +00:00
SPU: Include BRSL following code in is_exec_code()
This commit is contained in:
parent
e625bab7eb
commit
ea0545779a
1 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue