diff options
author | Parshintsev Anatoly <anatoly.parshintsev@syntacore.com> | 2022-12-29 11:49:03 +0300 |
---|---|---|
committer | Parshintsev Anatoly <anatoly.parshintsev@syntacore.com> | 2023-01-09 19:16:44 +0300 |
commit | a606da640b9e5c57bdcc76ef5ec491e7cd54e8a5 (patch) | |
tree | 413304b225171095949bf46e24e508988600a288 /ci-tests | |
parent | 32742924154a41e457f5b64e745485a3ebcd0daf (diff) | |
download | riscv-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.c | 2 |
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; } |