aboutsummaryrefslogtreecommitdiff
path: root/riscv/sim.cc
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2019-05-14 11:02:15 -0700
committerGitHub <noreply@github.com>2019-05-14 11:02:15 -0700
commit8ac902f6ff877e976af434bfe8fa8445930174a1 (patch)
treec140d3661f447fc2e61f15ebeaa1956b1a358774 /riscv/sim.cc
parent8925aec9dc03d590e7cf8c45314a37e50ebfba02 (diff)
downloadspike-8ac902f6ff877e976af434bfe8fa8445930174a1.zip
spike-8ac902f6ff877e976af434bfe8fa8445930174a1.tar.gz
spike-8ac902f6ff877e976af434bfe8fa8445930174a1.tar.bz2
Clean up debug module options. (#299)
* Clean up debug module options. 1. Instead of passing each one a few levels deep, create debug_module_config_t which contains them all. 2. Rename all those command line options so they start with --dm for debug module. 3. Add --dm-no-halt-groups to disable halt group support. * Update changelog.
Diffstat (limited to 'riscv/sim.cc')
-rw-r--r--riscv/sim.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/riscv/sim.cc b/riscv/sim.cc
index 3cd29af..0bfdc8b 100644
--- a/riscv/sim.cc
+++ b/riscv/sim.cc
@@ -27,16 +27,12 @@ static void handle_signal(int sig)
sim_t::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,
- std::vector<int> const hartids, unsigned progsize,
- unsigned max_bus_master_bits, bool require_authentication,
- suseconds_t abstract_delay_usec, bool support_hasel,
- bool support_abstract_csr_access)
+ std::vector<int> const hartids,
+ const debug_module_config_t &dm_config)
: htif_t(args), mems(mems), procs(std::max(nprocs, size_t(1))),
start_pc(start_pc), current_step(0), current_proc(0), debug(false),
histogram_enabled(false), dtb_enabled(true), remote_bitbang(NULL),
- debug_module(this, progsize, max_bus_master_bits, require_authentication,
- abstract_delay_usec, support_hasel,
- support_abstract_csr_access)
+ debug_module(this, dm_config)
{
signal(SIGINT, &handle_signal);