summaryrefslogtreecommitdiff
path: root/sim/ppc/psim.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ppc/psim.c')
-rw-r--r--sim/ppc/psim.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c
index 076a50c8d2e..d814486be33 100644
--- a/sim/ppc/psim.c
+++ b/sim/ppc/psim.c
@@ -261,6 +261,7 @@ psim_options(device *root,
while (*p != '\0') {
switch (*p) {
default:
+ printf_filtered ("Invalid Option: %s\n", argv[argp]);
psim_usage(0, 0);
error ("");
break;
@@ -368,7 +369,11 @@ psim_options(device *root,
exit (0);
}
else
- error("Unrecognized option");
+ {
+ printf_filtered ("Invalid option: %s\n", argv[argp]);
+ psim_usage (0, 0);
+ error ("");
+ }
break;
}
p += 1;