sim: mips: fix missing prototype in multi-run generation
[binutils-gdb.git] / sim / mips / cp1.c
index 024cd06aa9ee9dee2f745d2a482e27ee608dbaa1..03ed0c0558ff633e64b88b9ea2740ffe021e215a 100644 (file)
@@ -1,6 +1,6 @@
 /*> cp1.c <*/
 /* MIPS Simulator FPU (CoProcessor 1) support.
-   Copyright (C) 2002, 2007-2012 Free Software Foundation, Inc.
+   Copyright (C) 2002-2021 Free Software Foundation, Inc.
    Originally created by Cygnus Solutions.  Extensive modifications,
    including paired-single operation support and MIPS-3D support
    contributed by Ed Satterthwaite and Chris Demetriou, of Broadcom
@@ -40,8 +40,13 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
    (Originally, this code was in interp.c)
 */
 
+/* This must come before any other includes.  */
+#include "defs.h"
+
 #include "sim-main.h"
 
+#include <stdlib.h>
+
 /* Within cp1.c we refer to sim_cpu directly.  */
 #define CPU cpu
 #define SD CPU_STATE(cpu)
@@ -419,7 +424,7 @@ store_fcr(sim_cpu *cpu,
     }
 }
 
-void
+static void
 update_fcsr (sim_cpu *cpu,
             address_word cia,
             sim_fpu_status status)