mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Fixup memory viewer SPU headers for RawSPU
This commit is contained in:
parent
020acc8235
commit
2c6b974f24
@ -305,10 +305,20 @@ std::string memory_viewer_panel::getHeaderAtAddr(u32 addr)
|
|||||||
if (u32 raw_spu_index = (spu_boundary - RAW_SPU_BASE_ADDR) / SPU_LS_SIZE; raw_spu_index < 5)
|
if (u32 raw_spu_index = (spu_boundary - RAW_SPU_BASE_ADDR) / SPU_LS_SIZE; raw_spu_index < 5)
|
||||||
{
|
{
|
||||||
spu = idm::get<named_thread<spu_thread>>(spu_thread::find_raw_spu(raw_spu_index));
|
spu = idm::get<named_thread<spu_thread>>(spu_thread::find_raw_spu(raw_spu_index));
|
||||||
|
|
||||||
|
if (spu && spu->get_type() == spu_type::threaded)
|
||||||
|
{
|
||||||
|
spu.reset();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (u32 spu_index = (spu_boundary - SPU_FAKE_BASE_ADDR) / SPU_LS_SIZE; spu_index < spu_thread::id_count)
|
else if (u32 spu_index = (spu_boundary - SPU_FAKE_BASE_ADDR) / SPU_LS_SIZE; spu_index < spu_thread::id_count)
|
||||||
{
|
{
|
||||||
spu = idm::get<named_thread<spu_thread>>(spu_thread::id_base | spu_index);
|
spu = idm::get<named_thread<spu_thread>>(spu_thread::id_base | spu_index);
|
||||||
|
|
||||||
|
if (spu && spu->get_type() != spu_type::threaded)
|
||||||
|
{
|
||||||
|
spu.reset();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spu)
|
if (spu)
|
||||||
|
Loading…
Reference in New Issue
Block a user