mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 05:21:25 +12: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;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue