From: Andrew Waterman Date: Sun, 29 Apr 2018 07:41:42 +0000 (-0700) Subject: When no arguments are passed, print spike help, not fesvr help X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0172e96bc2e83c990a22342ce7e99ba73142c47;p=riscv-isa-sim.git When no arguments are passed, print spike help, not fesvr help --- 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++)