From fe678ee09925b90058ff80c037341b873e6da429 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Wed, 19 Apr 2017 16:59:10 -0700 Subject: [PATCH] Have ndmreset reset the processor --- riscv/debug_module.cc | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2