aboutsummaryrefslogtreecommitdiff
path: root/riscv/cfg.h
diff options
context:
space:
mode:
authorParshintsev Anatoly <anatoly.parshintsev@syntacore.com>2022-12-29 11:49:03 +0300
committerParshintsev Anatoly <anatoly.parshintsev@syntacore.com>2023-01-09 19:16:44 +0300
commita606da640b9e5c57bdcc76ef5ec491e7cd54e8a5 (patch)
tree413304b225171095949bf46e24e508988600a288 /riscv/cfg.h
parent32742924154a41e457f5b64e745485a3ebcd0daf (diff)
downloadriscv-isa-sim-a606da640b9e5c57bdcc76ef5ec491e7cd54e8a5.zip
riscv-isa-sim-a606da640b9e5c57bdcc76ef5ec491e7cd54e8a5.tar.gz
riscv-isa-sim-a606da640b9e5c57bdcc76ef5ec491e7cd54e8a5.tar.bz2
implement get_base() getter for mem_cfg_t object
NFC. The intention is for `base` and `size` fields of mem_cfg_t to be private members. This is the fist part of this commit.
Diffstat (limited to 'riscv/cfg.h')
-rw-r--r--riscv/cfg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/riscv/cfg.h b/riscv/cfg.h
index e9eeeda..1cdeb37 100644
--- a/riscv/cfg.h
+++ b/riscv/cfg.h
@@ -41,6 +41,10 @@ public:
mem_cfg_t(reg_t base, reg_t size);
+ reg_t get_base() const {
+ return base;
+ }
+
reg_t base;
reg_t size;
};