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 /ci-tests | |
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 '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 243104b..d06277f 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.get_base(), new mem_t(cfg.size))); + mems.push_back(std::make_pair(cfg.get_base(), new mem_t(cfg.get_size()))); } return mems; } |