From c0172e96bc2e83c990a22342ce7e99ba73142c47 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Sun, 29 Apr 2018 00:41:42 -0700 Subject: [PATCH] When no arguments are passed, print spike help, not fesvr help --- spike_main/spike.cc | 6 +++--- 1 file 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((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++) -- 2.30.2