diff options
author | Jerry Zhao <jerryz123@berkeley.edu> | 2023-12-07 14:43:32 -0800 |
---|---|---|
committer | Jerry Zhao <jerryz123@berkeley.edu> | 2023-12-08 18:05:28 -0800 |
commit | 4b30f35aae0c919d744c65d482f76dca0753215b (patch) | |
tree | 03308057d91dcaa7e7c66c32b1c782baf0a6427b | |
parent | ab10e576e112ffaef78f8a4d4b86c53a40438eb6 (diff) | |
download | spike-4b30f35aae0c919d744c65d482f76dca0753215b.zip spike-4b30f35aae0c919d744c65d482f76dca0753215b.tar.gz spike-4b30f35aae0c919d744c65d482f76dca0753215b.tar.bz2 |
Use brace initializers for debug_module_config_t defaults
-rw-r--r-- | riscv/debug_module.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/riscv/debug_module.h b/riscv/debug_module.h index 75109f6..bca29b2 100644 --- a/riscv/debug_module.h +++ b/riscv/debug_module.h @@ -14,15 +14,15 @@ class processor_t; typedef struct { // Size of program_buffer in 32-bit words, as exposed to the rest of the // world. - unsigned progbufsize; - unsigned max_sba_data_width; - bool require_authentication; - unsigned abstract_rti; - bool support_hasel; - bool support_abstract_csr_access; - bool support_abstract_fpr_access; - bool support_haltgroups; - bool support_impebreak; + unsigned progbufsize = 2; + unsigned max_sba_data_width = 0; + bool require_authentication = false; + unsigned abstract_rti = 0; + bool support_hasel = true; + bool support_abstract_csr_access = true; + bool support_abstract_fpr_access = true; + bool support_haltgroups = true; + bool support_impebreak = true; } debug_module_config_t; typedef struct { |