sim: mips: fix missing prototype in multi-run generation
[binutils-gdb.git] / sim / mips / cp1.c
index d81b07a20c9aa9342b48e60e41f24cebd6d0ce3b..03ed0c0558ff633e64b88b9ea2740ffe021e215a 100644 (file)
@@ -1,6 +1,6 @@
 /*> cp1.c <*/
 /* MIPS Simulator FPU (CoProcessor 1) support.
-   Copyright (C) 2002-2020 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,6 +40,9 @@ 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>
@@ -421,7 +424,7 @@ store_fcr(sim_cpu *cpu,
     }
 }
 
-void
+static void
 update_fcsr (sim_cpu *cpu,
             address_word cia,
             sim_fpu_status status)