diff options
author | Andrew Waterman <andrew@sifive.com> | 2018-04-29 00:41:42 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2018-04-29 00:41:42 -0700 |
commit | c0172e96bc2e83c990a22342ce7e99ba73142c47 (patch) | |
tree | 793cb58866fdff5647c706fcc6d11f7aa72a395b /spike_main/spike.cc | |
parent | 2dbcb01ca1c026b867cf673203646d213f6e6b5c (diff) | |
download | spike-c0172e96bc2e83c990a22342ce7e99ba73142c47.zip spike-c0172e96bc2e83c990a22342ce7e99ba73142c47.tar.gz spike-c0172e96bc2e83c990a22342ce7e99ba73142c47.tar.bz2 |
When no arguments are passed, print spike help, not fesvr help
Diffstat (limited to 'spike_main/spike.cc')
-rw-r--r-- | spike_main/spike.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spike_main/spike.cc b/spike_main/spike.cc index eb57baf..e5aecab 100644 --- a/spike_main/spike.cc +++ b/spike_main/spike.cc @@ -145,6 +145,9 @@ int main(int argc, char** argv) if (mems.empty()) mems = make_mems("2048"); + if (!*argv1) + help(); + sim_t s(isa, nprocs, halted, start_pc, mems, htif_args, std::move(hartids), progsize, max_bus_master_bits, require_authentication); std::unique_ptr<remote_bitbang_t> remote_bitbang((remote_bitbang_t *) NULL); @@ -159,9 +162,6 @@ int main(int argc, char** argv) return 0; } - if (!*argv1) - help(); - if (ic && l2) ic->set_miss_handler(&*l2); if (dc && l2) dc->set_miss_handler(&*l2); for (size_t i = 0; i < nprocs; i++) |