diff options
author | Tim Newsome <tim@sifive.com> | 2016-05-01 12:05:48 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2016-05-23 12:12:11 -0700 |
commit | 990c6c48098e83584edf5282d119187abae04a4d (patch) | |
tree | d2ba581b281dce0c329822f98cc7c21faf868323 /riscv/devices.h | |
parent | 57ff1b6595e485b8b002238ddbd10483bbd62fb3 (diff) | |
download | spike-990c6c48098e83584edf5282d119187abae04a4d.zip spike-990c6c48098e83584edf5282d119187abae04a4d.tar.gz spike-990c6c48098e83584edf5282d119187abae04a4d.tar.bz2 |
Have Debug memory kind of working again.
Debug exception -> ROM -> RAM -> ROM, then something goes wrong.
Diffstat (limited to 'riscv/devices.h')
-rw-r--r-- | riscv/devices.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/riscv/devices.h b/riscv/devices.h index 8378188..cb3b6d9 100644 --- a/riscv/devices.h +++ b/riscv/devices.h @@ -11,9 +11,6 @@ class abstract_device_t { public: virtual bool load(reg_t addr, size_t len, uint8_t* bytes) = 0; virtual bool store(reg_t addr, size_t len, const uint8_t* bytes) = 0; - // Return a pointer to the start of the page that addr falls in, or NULL if - // there is no IO device at that address. - virtual char* page(reg_t addr) { return NULL; } virtual ~abstract_device_t() {} }; @@ -21,9 +18,6 @@ class bus_t : public abstract_device_t { public: bool load(reg_t addr, size_t len, uint8_t* bytes); bool store(reg_t addr, size_t len, const uint8_t* bytes); - // Return a pointer to the start of the page that addr falls in, or NULL if - // there is no IO device at that address. - char* page(reg_t paddr); void add_device(reg_t addr, abstract_device_t* dev); private: |