From 2c6b974f24cec521bb869ca320cdf564ecb70a5a Mon Sep 17 00:00:00 2001 From: Eladash Date: Fri, 18 Dec 2020 08:32:52 +0200 Subject: [PATCH] Fixup memory viewer SPU headers for RawSPU --- rpcs3/rpcs3qt/memory_viewer_panel.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rpcs3/rpcs3qt/memory_viewer_panel.cpp b/rpcs3/rpcs3qt/memory_viewer_panel.cpp index d4cb73320f..a53cc00981 100644 --- a/rpcs3/rpcs3qt/memory_viewer_panel.cpp +++ b/rpcs3/rpcs3qt/memory_viewer_panel.cpp @@ -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) { spu = idm::get>(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) { spu = idm::get>(spu_thread::id_base | spu_index); + + if (spu && spu->get_type() != spu_type::threaded) + { + spu.reset(); + } } if (spu)