Debugger: fix f10 step over of instructions with a branch delay slot [smf]

This commit is contained in:
smf- 2018-02-21 16:02:06 +00:00
parent 51a7b81ad3
commit 494e9b4c81

View File

@ -2582,7 +2582,7 @@ void device_debug::prepare_for_step_overout(offs_t pc)
// if we need to skip additional instructions, advance as requested // if we need to skip additional instructions, advance as requested
while (extraskip-- > 0) { while (extraskip-- > 0) {
u32 result = buffer.disassemble_info(pc); u32 result = buffer.disassemble_info(pc);
pc += buffer.next_pc_wrap(pc, result & util::disasm_interface::LENGTHMASK); pc = buffer.next_pc_wrap(pc, result & util::disasm_interface::LENGTHMASK);
} }
m_stepaddr = pc; m_stepaddr = pc;
} }