mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
debugger: Fix SPU memory viewing (#10007)
* debugger: Fix SPU memory viewing * Fix terminal recovery from page faults (hack allocation)
This commit is contained in:
parent
dedf09017a
commit
a67b347966
@ -1409,9 +1409,9 @@ bool handle_access_violation(u32 addr, bool is_writing, x64_context* context) no
|
||||
return false;
|
||||
}
|
||||
|
||||
if (area->flags & 0x100 || (is_writing && vm::check_addr(addr)))
|
||||
if (vm::reader_lock rlock; vm::check_addr(addr, 0))
|
||||
{
|
||||
// For 4kb pages or read only memory
|
||||
// For allocated memory with protection lower than required (such as protection::no or read-only while writing to it)
|
||||
utils::memory_protect(vm::base(addr & -0x1000), 0x1000, utils::protection::rw);
|
||||
return true;
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ void debugger_list::ShowAddress(u32 addr, bool force)
|
||||
item(i)->setBackground(default_background);
|
||||
}
|
||||
|
||||
if (m_cpu->id_type() == 1 && !vm::check_addr(pc))
|
||||
if (m_cpu->id_type() == 1 && !vm::check_addr(pc, 0))
|
||||
{
|
||||
item(i)->setText((IsBreakpoint(pc) ? ">> " : " ") + qstr(fmt::format("[%08x] ?? ?? ?? ??:", pc)));
|
||||
count = 4;
|
||||
|
Loading…
Reference in New Issue
Block a user