From 28816f45f574ca788dd4e05b8ee7a140e01f3d84 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Sun, 12 Nov 1995 14:20:39 +0000 Subject: Add support for setting model name and other things --- sim/ppc/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sim/ppc/main.c') 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 @@ -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); -- cgit v1.1