diff --git a/rpcs3/rpcs3qt/debugger_frame.cpp b/rpcs3/rpcs3qt/debugger_frame.cpp index bcfcb130d4..37fec58ac8 100644 --- a/rpcs3/rpcs3qt/debugger_frame.cpp +++ b/rpcs3/rpcs3qt/debugger_frame.cpp @@ -553,9 +553,12 @@ void debugger_list::ShowAddr(u32 addr) } else { - const u32 cpu_offset = cpu->id_type() != 1 ? static_cast(*cpu).offset : 0; + const bool is_spu = cpu->id_type() != 1; + const u32 cpu_offset = is_spu ? static_cast(*cpu).offset : 0; + const u32 address_limits = is_spu ? 0x3ffff : ~0; + m_pc &= address_limits; m_debugFrame->m_disasm->offset = (u8*)vm::base(cpu_offset); - for (uint i = 0, count = 4; i