diff options
author | Jerry Zhao <jerryz123@berkeley.edu> | 2022-12-29 15:26:16 -0800 |
---|---|---|
committer | Jerry Zhao <jerryz123@berkeley.edu> | 2023-01-03 10:09:20 -0800 |
commit | c91fe0b0a628ac1050e2e024650484d8975b9a20 (patch) | |
tree | d618e6d16ee1152286517ae3f75fab544a3a49fb /riscv/simif.h | |
parent | 0d13d07a045e546800f28c16937a85b6dec4178f (diff) | |
download | riscv-isa-sim-c91fe0b0a628ac1050e2e024650484d8975b9a20.zip riscv-isa-sim-c91fe0b0a628ac1050e2e024650484d8975b9a20.tar.gz riscv-isa-sim-c91fe0b0a628ac1050e2e024650484d8975b9a20.tar.bz2 |
Add method to probe which memory regions are reservable
Default reservable regions is the same as before
Diffstat (limited to 'riscv/simif.h')
-rw-r--r-- | riscv/simif.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/riscv/simif.h b/riscv/simif.h index 2c5bb27..c756b9c 100644 --- a/riscv/simif.h +++ b/riscv/simif.h @@ -11,6 +11,7 @@ class simif_t public: // should return NULL for MMIO addresses virtual char* addr_to_mem(reg_t paddr) = 0; + virtual bool reservable(reg_t paddr) { return addr_to_mem(paddr); } // used for MMIO addresses virtual bool mmio_fetch(reg_t paddr, size_t len, uint8_t* bytes) { return mmio_load(paddr, len, bytes); } virtual bool mmio_load(reg_t paddr, size_t len, uint8_t* bytes) = 0; |