sim: constify arg to sim_do_command
[deliverable/binutils-gdb.git] / sim / erc32 / sis.c
index 75678815e920b1d125e158db471f4cc4ab9391f0..89e6f022ccd30911fcfd56d9159029c8c569ef63 100644 (file)
@@ -6,7 +6,7 @@
  * 
  * This program is free software; you can redistribute it and/or modify it under
  * the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option)
+ * Software Foundation; either version 3 of the License, or (at your option)
  * any later version.
  * 
  * This program is distributed in the hope that it will be useful, but WITHOUT
@@ -15,8 +15,7 @@
  * more details.
  * 
  * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 675
- * Mass Ave, Cambridge, MA 02139, USA.
+ * this program; if not, see <http://www.gnu.org/licenses/>.
  * 
  */
 
 #include <dis-asm.h>
 #include "sim-config.h"
 
-#ifndef fprintf
-extern          fprintf();
-#endif
-
 #define        VAL(x)  strtol(x,(char **)NULL,0)
 
 /* Structures and functions from readline library */
@@ -46,10 +41,10 @@ typedef struct {
   char *data;
 } HIST_ENTRY;
 
-extern char *  readline PARAMS ((char *prompt));
-extern void    using_history PARAMS ((void));
-extern void    add_history PARAMS ((char *string));
-extern HIST_ENTRY *remove_history PARAMS ((int which));
+extern char *  readline (char *prompt);
+extern void    using_history (void);
+extern void    add_history (char *string);
+extern HIST_ENTRY *remove_history (int which);
 
 
 
@@ -86,7 +81,7 @@ extern int era;
 int
 run_sim(sregs, icount, dis)
     struct pstate  *sregs;
-    unsigned int    icount;
+    uint64          icount;
     int             dis;
 {
     int             irq, mexc, deb, asi;
@@ -181,7 +176,7 @@ main(argc, argv)
     cfile = 0;
     for (i = 0; i < 64; i++)
        cmdq[i] = 0;
-    printf("\n SIS - SPARC intruction simulator %s,  copyright Jiri Gaisler 1995\n", sis_version);
+    printf("\n SIS - SPARC instruction simulator %s,  copyright Jiri Gaisler 1995\n", sis_version);
     printf(" Bug-reports to jgais@wd.estec.esa.nl\n\n");
     while (stat < argc) {
        if (argv[stat][0] == '-') {
This page took 0.029375 seconds and 4 git commands to generate.