if (state.dcsr.cause == DCSR_CAUSE_NONE) {
if (halt_request) {
enter_debug_mode(DCSR_CAUSE_DEBUGINT);
- } else if (state.dcsr.halt) {
+ } // !!!The halt bit in DCSR is deprecated.
+ else if (state.dcsr.halt) {
enter_debug_mode(DCSR_CAUSE_HALT);
}
}
break;
}
- if (unlikely(state.pc >= DEBUG_ROM_ENTRY &&
- state.pc < DEBUG_ROM_ENTRY + DEBUG_ROM_ENTRY_SIZE)) {
- // We're spinning waiting for the debugger to tell us something.
- // Let's go talk to the debugger.
+ if (unlikely(state.pc >= DEBUG_START &&
+ state.pc < DEBUG_END)) {
+ // We're waiting for the debugger to tell us something.
return;
}
+
+
+
}
}
else while (instret < n)