aboutsummaryrefslogtreecommitdiff
path: root/riscv/devices.h
diff options
context:
space:
mode:
authorJerry Zhao <jerryz123@berkeley.edu>2022-10-14 11:41:58 -0700
committerAndrew Waterman <aswaterman@gmail.com>2022-10-14 15:38:59 -0700
commit5cf439b24e945db47edf6e259044c923384ccdfd (patch)
tree8c5f42b3583840b9fc9fd7ae966b2df851fcbe7f /riscv/devices.h
parent7e8d1e6f29a0e6b9f8b1b65a88b5dc87c25a4f9a (diff)
downloadspike-5cf439b24e945db47edf6e259044c923384ccdfd.zip
spike-5cf439b24e945db47edf6e259044c923384ccdfd.tar.gz
spike-5cf439b24e945db47edf6e259044c923384ccdfd.tar.bz2
Add dump memory command to interactive mode
Diffstat (limited to 'riscv/devices.h')
-rw-r--r--riscv/devices.h1
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);