aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Zhao <jerryz123@berkeley.edu>2023-12-07 14:45:20 -0800
committerJerry Zhao <jerryz123@berkeley.edu>2023-12-08 18:05:28 -0800
commit0232396e7e093ef6fa65438ec688d46a104098c0 (patch)
tree7d2f4a9230ed236c8cb0517b29571056e2b80129
parent4b30f35aae0c919d744c65d482f76dca0753215b (diff)
downloadriscv-isa-sim-0232396e7e093ef6fa65438ec688d46a104098c0.zip
riscv-isa-sim-0232396e7e093ef6fa65438ec688d46a104098c0.tar.gz
riscv-isa-sim-0232396e7e093ef6fa65438ec688d46a104098c0.tar.bz2
Rely on default initializer to provide debug_module_config_t defaults
-rw-r--r--ci-tests/testlib.c12
-rw-r--r--spike_main/spike.cc12
2 files changed, 2 insertions, 22 deletions
diff --git a/ci-tests/testlib.c b/ci-tests/testlib.c
index 34d9410..5e39c1b 100644
--- a/ci-tests/testlib.c
+++ b/ci-tests/testlib.c
@@ -17,17 +17,7 @@ int main()
cfg_t cfg;
std::vector<device_factory_t*> plugin_devices;
std::vector<std::string> htif_args {"pk", "hello"};
- debug_module_config_t dm_config = {
- .progbufsize = 2,
- .max_sba_data_width = 0,
- .require_authentication = false,
- .abstract_rti = 0,
- .support_hasel = true,
- .support_abstract_csr_access = true,
- .support_abstract_fpr_access = true,
- .support_haltgroups = true,
- .support_impebreak = true
- };
+ debug_module_config_t dm_config;
std::vector<std::pair<reg_t, abstract_mem_t*>> mems =
make_mems(cfg.mem_layout);
sim_t sim(&cfg, false,
diff --git a/spike_main/spike.cc b/spike_main/spike.cc
index bea4899..b5a1ce4 100644
--- a/spike_main/spike.cc
+++ b/spike_main/spike.cc
@@ -348,17 +348,7 @@ int main(int argc, char** argv)
bool use_rbb = false;
unsigned dmi_rti = 0;
reg_t blocksz = 64;
- debug_module_config_t dm_config = {
- .progbufsize = 2,
- .max_sba_data_width = 0,
- .require_authentication = false,
- .abstract_rti = 0,
- .support_hasel = true,
- .support_abstract_csr_access = true,
- .support_abstract_fpr_access = true,
- .support_haltgroups = true,
- .support_impebreak = true
- };
+ debug_module_config_t dm_config;
cfg_arg_t<size_t> nprocs(1);
cfg_t cfg;