void processor_t::enter_debug_mode(uint8_t cause)
{
+ fprintf(stderr, "Entering debug mode because of cause %d", cause);
state.dcsr.cause = cause;
state.dcsr.prv = state.prv;
set_privilege(PRV_M);
if (t.cause() == CAUSE_BREAKPOINT) {
state.pc = debug_rom_entry();
} else {
- state.pc = DEBUG_ROM_EXCEPTION;
+ state.pc = DEBUG_ROM_TVEC;
}
return;
}