diff options
author | Jerry Zhao <jerryz123@berkeley.edu> | 2023-12-07 14:20:00 -0800 |
---|---|---|
committer | Jerry Zhao <jerryz123@berkeley.edu> | 2023-12-08 18:05:28 -0800 |
commit | ae889cb8493a1e31fcbbcb303cf6a7df05fad537 (patch) | |
tree | 251b04f6c84f0f36632759695818b60f24aa15ef /spike_main | |
parent | e04f5f321c1ddf2c734d4d52019be3f0ed210d98 (diff) | |
download | riscv-isa-sim-ae889cb8493a1e31fcbbcb303cf6a7df05fad537.zip riscv-isa-sim-ae889cb8493a1e31fcbbcb303cf6a7df05fad537.tar.gz riscv-isa-sim-ae889cb8493a1e31fcbbcb303cf6a7df05fad537.tar.bz2 |
Remove cfg_arg_t from cfg_t
Argument parsing should be scoped to the code which constucts cfg_t
Diffstat (limited to 'spike_main')
-rw-r--r-- | spike_main/spike.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spike_main/spike.cc b/spike_main/spike.cc index 5376ab9..3bb1c10 100644 --- a/spike_main/spike.cc +++ b/spike_main/spike.cc @@ -493,10 +493,10 @@ int main(int argc, char** argv) help(); std::vector<std::pair<reg_t, abstract_mem_t*>> mems = - make_mems(cfg.mem_layout()); + make_mems(cfg.mem_layout); if (kernel && check_file_exists(kernel)) { - const char *isa = cfg.isa(); + const char *isa = cfg.isa; kernel_size = get_file_size(kernel); if (isa[2] == '6' && isa[3] == '4') kernel_offset = 0x200000; |