Mask PC in debugger_frame::keyPressEvent for SPU

SPU only has 256kb of memory, need to work with this.
This commit is contained in:
Eladash 2020-12-17 05:58:36 +02:00 committed by Ivan
parent 59ed222205
commit 2b9c407dc3
1 changed files with 2 additions and 1 deletions

View File

@ -231,7 +231,8 @@ void debugger_frame::keyPressEvent(QKeyEvent* event)
return;
}
const u32 pc = i >= 0 ? m_debugger_list->m_pc + i * 4 : cpu->get_pc();
const u32 address_limits = (cpu->id_type() != 1 ? 0x3fffc : ~3);
const u32 pc = (i >= 0 ? m_debugger_list->m_pc + i * 4 : cpu->get_pc()) & address_limits;
const auto modifiers = QApplication::keyboardModifiers();