diff options
Diffstat (limited to 'riscv/debug_module.h')
-rw-r--r-- | riscv/debug_module.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/riscv/debug_module.h b/riscv/debug_module.h index 518f119..73bb7fa 100644 --- a/riscv/debug_module.h +++ b/riscv/debug_module.h @@ -185,6 +185,12 @@ class debug_module_t : public abstract_device_t size_t selected_hart_id() const; hart_debug_state_t& selected_hart_state(); + + /* Whether the first 2 harts are available is controllable through DMCUSTOM, + * where bit 0 corresponds to hart 0, etc. When a bit is one the hart + * available. Otherwise it is unavailable. */ + bool hart_available_state[2]; + bool hart_available(unsigned hart_id) const; }; #endif |