diff options
Diffstat (limited to 'sim/ppc/main.c')
-rw-r--r-- | sim/ppc/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sim/ppc/main.c b/sim/ppc/main.c index 80b993f..0b3ad07 100644 --- a/sim/ppc/main.c +++ b/sim/ppc/main.c @@ -24,6 +24,7 @@ #include "psim.h" #include "function_unit.h" +#include "options.h" #ifdef HAVE_STDLIB_H #include <stdlib.h> @@ -109,7 +110,7 @@ main(int argc, char **argv) trace_option(optarg); break; case 'm': - function_unit_model(optarg); + model_set(optarg); break; case 'i': print_info = 1; @@ -125,6 +126,9 @@ main(int argc, char **argv) usage(); name_of_file = argv[optind]; + if (ppc_trace[trace_opts]) + print_options (); + /* create the simulator */ system = psim_create(name_of_file); |