aboutsummaryrefslogtreecommitdiff
path: root/ci-tests
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 /ci-tests
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 'ci-tests')
-rw-r--r--ci-tests/testlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci-tests/testlib.c b/ci-tests/testlib.c
index 9aa6797..243104b 100644
--- a/ci-tests/testlib.c
+++ b/ci-tests/testlib.c
@@ -7,7 +7,7 @@ static std::vector<std::pair<reg_t, mem_t*>> make_mems(const std::vector<mem_cfg
std::vector<std::pair<reg_t, mem_t*>> mems;
mems.reserve(layout.size());
for (const auto &cfg : layout) {
- mems.push_back(std::make_pair(cfg.base, new mem_t(cfg.size)));
+ mems.push_back(std::make_pair(cfg.get_base(), new mem_t(cfg.size)));
}
return mems;
}