diff options
author | Rupert Swarbrick <rswarbrick@gmail.com> | 2022-04-11 10:59:20 +0100 |
---|---|---|
committer | Rupert Swarbrick <rswarbrick@lowrisc.org> | 2022-04-12 11:10:45 +0100 |
commit | 61b4f61a857de65d1a341f55597bfceeb7b7690d (patch) | |
tree | e4537514b7522fba146bf3aeb1bb27b7fd34c3c9 /riscv/sim.h | |
parent | e4aaed1b7b08998a6b6aefa34f7c575e292dde62 (diff) | |
download | spike-61b4f61a857de65d1a341f55597bfceeb7b7690d.zip spike-61b4f61a857de65d1a341f55597bfceeb7b7690d.tar.gz spike-61b4f61a857de65d1a341f55597bfceeb7b7690d.tar.bz2 |
Move hartids into cfg_t
The only slightly difficult thing here is that hartids will always
be considered "overridden" by the time we get to sim_t::sim_t (either
overridden by a command line argument, or overridden when we set
default hartids just before the constructor). To allow downstream code
to distinguish between "I picked IDs 0, 1, 2, 3 because the user asked
for 4 processors" and "The user explicitly asked for IDs 0, 1, 2, 3",
we have an extra explicit_hartids field.
Diffstat (limited to 'riscv/sim.h')
-rw-r--r-- | riscv/sim.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/sim.h b/riscv/sim.h index 6acc440..de82ccd 100644 --- a/riscv/sim.h +++ b/riscv/sim.h @@ -35,7 +35,7 @@ public: sim_t(const cfg_t *cfg, const char* varch, bool halted, bool real_time_clint, std::vector<std::pair<reg_t, mem_t*>> mems, std::vector<std::pair<reg_t, abstract_device_t*>> plugin_devices, - const std::vector<std::string>& args, const std::vector<int> hartids, + const std::vector<std::string>& args, const debug_module_config_t &dm_config, const char *log_path, bool dtb_enabled, const char *dtb_file, #ifdef HAVE_BOOST_ASIO |