forked from Imagelibrary/binutils-gdb
Update PC when simulate break instruction.
PR target/ 19401 * avr/interp.c (step_once): Pass break instruction address to sim_engine_halt function which writes that to PC. Remove code that follows that function call as it is unreachable.
This commit is contained in:
@@ -911,8 +911,7 @@ step_once (SIM_CPU *cpu)
|
||||
|
||||
case OP_break:
|
||||
/* Stop on this address. */
|
||||
sim_engine_halt (CPU_STATE (cpu), cpu, NULL, cpu->pc, sim_stopped, SIM_SIGTRAP);
|
||||
cpu->pc = ipc;
|
||||
sim_engine_halt (CPU_STATE (cpu), cpu, NULL, ipc, sim_stopped, SIM_SIGTRAP);
|
||||
break;
|
||||
|
||||
case OP_bld:
|
||||
|
||||
Reference in New Issue
Block a user