diff options
author | Andrew Waterman <andrew@sifive.com> | 2023-02-06 13:26:48 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2023-02-27 14:54:16 -0800 |
commit | b8e562a58cc5e51a358167cfda3754f1998f8577 (patch) | |
tree | e9a3eb92fe21c2261bbbf4ad7a03cd78b9cbbeea /ci-tests/testlib.c | |
parent | b4895800ba91afe9d4add7ad6b60a12446e77e8b (diff) | |
download | riscv-isa-sim-b8e562a58cc5e51a358167cfda3754f1998f8577.zip riscv-isa-sim-b8e562a58cc5e51a358167cfda3754f1998f8577.tar.gz riscv-isa-sim-b8e562a58cc5e51a358167cfda3754f1998f8577.tar.bz2 |
Use size_t, rather than int, for hartids
They aren't signed quantities.
Diffstat (limited to 'ci-tests/testlib.c')
-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 9343b61..3d5438b 100644 --- a/ci-tests/testlib.c +++ b/ci-tests/testlib.c @@ -15,7 +15,7 @@ static std::vector<std::pair<reg_t, mem_t*>> make_mems(const std::vector<mem_cfg int main() { std::vector<mem_cfg_t> mem_cfg { mem_cfg_t(0x80000000, 0x10000000) }; - std::vector<int> hartids = {0}; + std::vector<size_t> hartids = {0}; cfg_t cfg(std::make_pair(0, 0), nullptr, "rv64gcv", |