diff options
author | Rupert Swarbrick <rswarbrick@lowrisc.org> | 2022-04-11 23:18:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-11 15:18:27 -0700 |
commit | ae7d2c3062c1a911d97444e5c6df5089a7bb52f6 (patch) | |
tree | 7a9bb189b01d119cecdbebe823f8f16a302790ad /riscv/sim.cc | |
parent | 168b4ea6a568741e88156ed8f96b5df2765d9df7 (diff) | |
download | riscv-isa-sim-ae7d2c3062c1a911d97444e5c6df5089a7bb52f6.zip riscv-isa-sim-ae7d2c3062c1a911d97444e5c6df5089a7bb52f6.tar.gz riscv-isa-sim-ae7d2c3062c1a911d97444e5c6df5089a7bb52f6.tar.bz2 |
Change processor_t to hold a pointer to an isa_parser_t (#973)
Before, it had another copy, which is a little unnecessary.
Diffstat (limited to 'riscv/sim.cc')
-rw-r--r-- | riscv/sim.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/sim.cc b/riscv/sim.cc index 0831582..be60864 100644 --- a/riscv/sim.cc +++ b/riscv/sim.cc @@ -88,7 +88,7 @@ sim_t::sim_t(const cfg_t *cfg, const char* varch, bool halted, bool real_time_cl for (size_t i = 0; i < nprocs(); i++) { int hart_id = hartids.empty() ? i : hartids[i]; - procs[i] = new processor_t(isa, varch, this, hart_id, halted, + procs[i] = new processor_t(&isa, varch, this, hart_id, halted, log_file.get(), sout_); } |