ndmreset now resets all harts (instead of just the current hart), and
hartreset resets the selected hart (instead of being ignored).
debug_rom_flags[dmcontrol.hartsel] |= (1 << DEBUG_ROM_FLAG_RESUME);
resumeack[dmcontrol.hartsel] = false;
}
- if (dmcontrol.ndmreset) {
+ if (dmcontrol.hartreset) {
proc->reset();
}
}
+ if (dmcontrol.ndmreset) {
+ for (size_t i = 0; i < sim->nprocs(); i++) {
+ proc = sim->get_core(i);
+ proc->reset();
+ }
+ }
}
return true;