OpenOCD does a dmi read and gets dummy value back.
[riscv-isa-sim.git] / riscv / debug_module.h
index 53b32db9a8e6eebadaa88f3c1d2e7ead2c6b0949..0f9fff47e100e8bd4ec9f040e46432b67035c0ff 100644 (file)
@@ -35,6 +35,11 @@ class debug_module_t : public abstract_device_t
       return halt_notification.find(hartid) != halt_notification.end();
     }
 
+    // Debug Module Interface that the debugger (in our case through JTAG DTM)
+    // uses to access the DM.
+    uint32_t dmi_read(unsigned address);
+    void dmi_write(unsigned address, uint32_t value);
+
   private:
     // Track which interrupts from module to debugger are set.
     std::set<uint32_t> interrupt;