Derive RSX Replay thread from cpu_thread

Its id is set to 0, so fix some id_type() usages.
This commit is contained in:
Nekotekina 2020-10-30 17:09:22 +03:00
parent 150e18539c
commit f972fa26a4
10 changed files with 40 additions and 22 deletions

View file

@ -1419,7 +1419,7 @@ bool handle_access_violation(u32 addr, bool is_writing, x64_context* context) no
{
data2 = (SYS_MEMORY_PAGE_FAULT_TYPE_PPU_THREAD << 32) | cpu->id;
}
else
else if (cpu->id_type() == 2)
{
const auto& spu = static_cast<spu_thread&>(*cpu);