From 0232396e7e093ef6fa65438ec688d46a104098c0 Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Thu, 7 Dec 2023 14:45:20 -0800 Subject: Rely on default initializer to provide debug_module_config_t defaults --- ci-tests/testlib.c | 12 +----------- spike_main/spike.cc | 12 +----------- 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 plugin_devices; std::vector 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> 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 nprocs(1); cfg_t cfg; -- cgit v1.1