]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/common/run.c
* h8300s now new target, not alias of h8300h
[thirdparty/binutils-gdb.git] / sim / common / run.c
index 2c98df87caae4264dbf0ab3c20833ba2a591e636..6a21586bf69c4def33c229e23bdbf2efaca89f02 100644 (file)
@@ -47,8 +47,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "remote-sim.h"
 #include "ansidecl.h"
 
-#include "../libiberty/alloca-conf.h"
-
 static void usage PARAMS ((void));
 extern int optind;
 extern char *optarg;
@@ -117,7 +115,7 @@ main (ac, av)
      do all argv processing.  */
 
 #ifdef SIM_H8300 /* FIXME: quick hack */
-  while ((i = getopt (ac, av, "a:c:m:op:s:htv")) != EOF) 
+  while ((i = getopt (ac, av, "a:c:m:op:s:hStv")) != EOF) 
 #else
   while ((i = getopt (ac, av, "a:c:m:op:s:tv")) != EOF) 
 #endif
@@ -175,8 +173,11 @@ main (ac, av)
        /* FIXME: Quick hack, to be replaced by more general facility.  */
 #ifdef SIM_H8300
       case 'h':
-       set_h8300h (1);
+       set_h8300h (1,0);
        break;
+      case 'S':
+       set_h8300h (1,1);
+        break;
 #endif
       default:
        usage ();
@@ -320,7 +321,8 @@ usage ()
   fprintf (stderr, "-c size         Set simulator cache size to `size'.\n");
 #endif
 #ifdef SIM_H8300
-  fprintf (stderr, "-h              Executable is for h8/300h or h8/300s.\n");
+  fprintf (stderr, "-h              Executable is for h8/300h.\n");
+  fprintf (stderr, "-S              Executable is for h8/300s.\n");
 #endif
   fprintf (stderr, "-m size         Set memory size of simulator, in bytes.\n");
 #ifdef SIM_HAVE_ENVIRONMENT