mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
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.
This commit is contained in:
parent
e3668cc26c
commit
fd45bf5fba
@ -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<spu_thread&>(*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<m_item_count; ++i, m_pc = (m_pc + count) & address_limits)
|
||||
|
Loading…
Reference in New Issue
Block a user