PPU memory must be exec memory when using debugger's "Next Instruction" feature

This commit is contained in:
Eladash 2020-12-17 05:48:30 +02:00 committed by Ivan
parent 2b9c407dc3
commit 74a09a6338

View File

@ -304,7 +304,7 @@ void debugger_frame::keyPressEvent(QKeyEvent* event)
{
be_t<ppu_opcode_t> op{};
if (vm::try_access(pc, &op, 4, false))
if (vm::check_addr(pc, vm::page_executable) && vm::try_access(pc, &op, 4, false))
res = op_branch_targets(pc, op);
break;