diff options
author | Tim Newsome <tim@sifive.com> | 2017-10-10 15:53:23 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2017-12-11 13:21:47 -0800 |
commit | 46a67860915391458d7cc8cb93248059df20b8f2 (patch) | |
tree | 8dad89d9c6bb72e55fd3a09676bd63fba86e94e3 /riscv/sim.h | |
parent | 12714e371e9b8ce2efcf0e77347ed1b33c8de27b (diff) | |
download | riscv-isa-sim-46a67860915391458d7cc8cb93248059df20b8f2.zip riscv-isa-sim-46a67860915391458d7cc8cb93248059df20b8f2.tar.gz riscv-isa-sim-46a67860915391458d7cc8cb93248059df20b8f2.tar.bz2 |
Make progbuf a run-time option.
Also add an implicit ebreak after the program buffer. This is not part
of the spec, but hopefully it will be.
Diffstat (limited to 'riscv/sim.h')
-rw-r--r-- | riscv/sim.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/riscv/sim.h b/riscv/sim.h index b102a6b..ce5fe19 100644 --- a/riscv/sim.h +++ b/riscv/sim.h @@ -21,7 +21,8 @@ class sim_t : public htif_t public: sim_t(const char* isa, size_t _nprocs, bool halted, reg_t start_pc, std::vector<std::pair<reg_t, mem_t*>> mems, - const std::vector<std::string>& args, const std::vector<int> hartids); + const std::vector<std::string>& args, const std::vector<int> hartids, + unsigned progsize); ~sim_t(); // run the simulation to completion |