diff options
-rw-r--r-- | riscv/debug_module.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/riscv/debug_module.cc b/riscv/debug_module.cc index 533b959..5f66ebe 100644 --- a/riscv/debug_module.cc +++ b/riscv/debug_module.cc @@ -437,6 +437,9 @@ bool debug_module_t::dmi_write(unsigned address, uint32_t value) debug_rom_flags[dmcontrol.hartsel] |= (1 << DEBUG_ROM_FLAG_RESUME); resumeack[dmcontrol.hartsel] = false; } + if (dmcontrol.ndmreset) { + proc->reset(); + } } } return true; |