Decouple inferior_ptid/inferior_thread(); dup ptids in thread list (PR 25412)
[deliverable/binutils-gdb.git] / sim / erc32 / sis.h
index 74466aef8fec132ecf2a354b4cc4793bafa9cafa..65e9351461315073427f55af7b074e84da19d12c 100644 (file)
@@ -1,23 +1,17 @@
-/*
- * This file is part of SIS.
- * 
- * ERC32SIM, SPARC instruction simulator. Copyright (C) 1995 Jiri Gaisler,
- * European Space Agency
- * 
- * 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 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
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
- * 
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, see <http://www.gnu.org/licenses/>.
- * 
- */
+/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
+
+   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 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 ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "config.h"
 #include "ansidecl.h"
 #include <sim-config.h>
 #include <stdint.h>
 
-#if WITH_HOST_BYTE_ORDER == BIG_ENDIAN
+#if HOST_BYTE_ORDER == BIG_ENDIAN
 #define HOST_BIG_ENDIAN
+#define EBT 0
 #else
 #define HOST_LITTLE_ENDIAN
+#define EBT 3
 #endif
 
 #define I_ACC_EXC 1
@@ -169,6 +165,7 @@ extern void sim_halt (void);
 extern void    exit_sim (void);
 extern void    init_stdio (void);
 extern void    restore_stdio (void);
+extern int     memory_iread (uint32 addr, uint32 *data, int32 *ws);
 extern int     memory_read (int32 asi, uint32 addr, uint32 *data,
                             int32 sz, int32 *ws);
 extern int     memory_write (int32 asi, uint32 addr, uint32 *data,
@@ -179,10 +176,11 @@ extern int        sis_memory_read (uint32 addr, char *data,
                                 uint32 length);
 
 /* func.c */
+extern struct pstate  sregs;
 extern void    set_regi (struct pstate *sregs, int32 reg,
                          uint32 rval);
 extern void    get_regi (struct pstate *sregs, int32 reg, char *buf);
-extern int     exec_cmd (struct pstate *sregs, char *cmd);
+extern int     exec_cmd (struct pstate *sregs, const char *cmd);
 extern void    reset_stat (struct pstate  *sregs);
 extern void    show_stat (struct pstate  *sregs);
 extern void    init_bpt (struct pstate  *sregs);
@@ -200,7 +198,7 @@ extern int  check_bpt (struct pstate *sregs);
 extern void    reset_all (void);
 extern void    sys_reset (void);
 extern void    sys_halt (void);
-extern int     bfd_load (char *fname);
+extern int     bfd_load (const char *fname);
 extern double  get_time (void);
 
 /* exec.c */
This page took 0.025112 seconds and 4 git commands to generate.