aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/main.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-11-12 14:20:39 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-11-12 14:20:39 +0000
commit28816f45f574ca788dd4e05b8ee7a140e01f3d84 (patch)
treeae6525ea117a94aa6fa239a43eb8633513158742 /sim/ppc/main.c
parentc05c182dd679dd98f39e59fd567f767c679fa13f (diff)
downloadgdb-28816f45f574ca788dd4e05b8ee7a140e01f3d84.zip
gdb-28816f45f574ca788dd4e05b8ee7a140e01f3d84.tar.gz
gdb-28816f45f574ca788dd4e05b8ee7a140e01f3d84.tar.bz2
Add support for setting model name and other things
Diffstat (limited to 'sim/ppc/main.c')
-rw-r--r--sim/ppc/main.c6
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);