aboutsummaryrefslogtreecommitdiff
path: root/riscv/sim.cc
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2019-05-14 11:02:15 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2019-05-29 08:35:12 -0700
commit2af9a7a9e403bee126d78861156019eb94f6b2de (patch)
tree163aafe6ce270eaae8ef81c2d0e021975688b01f /riscv/sim.cc
parent1946b11d7400c85f5786d016f4b2ac63e18d7e83 (diff)
downloadspike-2af9a7a9e403bee126d78861156019eb94f6b2de.zip
spike-2af9a7a9e403bee126d78861156019eb94f6b2de.tar.gz
spike-2af9a7a9e403bee126d78861156019eb94f6b2de.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. Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
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 fba4e5d..c206ac5 100644
--- a/riscv/sim.cc
+++ b/riscv/sim.cc
@@ -31,16 +31,12 @@ static void handle_signal(int sig)
sim_t::sim_t(const char* isa, const char* varch, 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);