From fd45bf5fbab66f5e1c3bc6d2aa168957f4a105e4 Mon Sep 17 00:00:00 2001 From: Eladash Date: Thu, 19 Mar 2020 07:11:59 +0200 Subject: [PATCH] debugger: Force aligned memory view Fixes a corner case viewing unaligned memory at the end of spu memory. Also unaligned view isn't suitable for the debugger, for these purposes the memory viewer should be used instead. --- rpcs3/rpcs3qt/debugger_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/rpcs3qt/debugger_list.cpp b/rpcs3/rpcs3qt/debugger_list.cpp index aee3e2b50b..a7ae9d1811 100644 --- a/rpcs3/rpcs3qt/debugger_list.cpp +++ b/rpcs3/rpcs3qt/debugger_list.cpp @@ -80,7 +80,7 @@ void debugger_list::ShowAddress(u32 addr) { 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; + const u32 address_limits = (is_spu ? 0x3fffc : ~3); m_pc &= address_limits; m_disasm->offset = vm::get_super_ptr(cpu_offset); for (uint i = 0, count = 4; i