diff options
author | Parshintsev Anatoly <anatoly.parshintsev@syntacore.com> | 2022-12-29 13:46:56 +0300 |
---|---|---|
committer | Parshintsev Anatoly <anatoly.parshintsev@syntacore.com> | 2023-01-09 19:16:44 +0300 |
commit | e402a8353d2c4f358198c3bb3de38d40f60c730b (patch) | |
tree | b962179b2be75a485e26b42f0bc966b930ea5d63 /riscv | |
parent | a606da640b9e5c57bdcc76ef5ec491e7cd54e8a5 (diff) | |
download | spike-e402a8353d2c4f358198c3bb3de38d40f60c730b.zip spike-e402a8353d2c4f358198c3bb3de38d40f60c730b.tar.gz spike-e402a8353d2c4f358198c3bb3de38d40f60c730b.tar.bz2 |
implement get_size() getter for mem_cfg_t object
NFT. We also mark `base` and `size` fields as private.
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/cfg.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/riscv/cfg.h b/riscv/cfg.h index 1cdeb37..dba0b37 100644 --- a/riscv/cfg.h +++ b/riscv/cfg.h @@ -45,6 +45,11 @@ public: return base; } + reg_t get_size() const { + return size; + } + +private: reg_t base; reg_t size; }; |