projects
/
riscv-isa-sim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OpenOCD does a dmi read and gets dummy value back.
[riscv-isa-sim.git]
/
riscv
/
debug_module.h
diff --git
a/riscv/debug_module.h
b/riscv/debug_module.h
index 53b32db9a8e6eebadaa88f3c1d2e7ead2c6b0949..0f9fff47e100e8bd4ec9f040e46432b67035c0ff 100644
(file)
--- a/
riscv/debug_module.h
+++ b/
riscv/debug_module.h
@@
-35,6
+35,11
@@
class debug_module_t : public abstract_device_t
return halt_notification.find(hartid) != halt_notification.end();
}
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;
private:
// Track which interrupts from module to debugger are set.
std::set<uint32_t> interrupt;