diff options
Diffstat (limited to 'riscv/devices.h')
-rw-r--r-- | riscv/devices.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/riscv/devices.h b/riscv/devices.h index 9200f29..8907b87 100644 --- a/riscv/devices.h +++ b/riscv/devices.h @@ -43,6 +43,7 @@ class mem_t : public abstract_device_t { bool store(reg_t addr, size_t len, const uint8_t* bytes) { return load_store(addr, len, const_cast<uint8_t*>(bytes), true); } char* contents(reg_t addr); reg_t size() { return sz; } + void dump(std::ostream& o); private: bool load_store(reg_t addr, size_t len, uint8_t* bytes, bool store); |