X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=sim%2Fmips%2Fcp1.c;h=03ed0c0558ff633e64b88b9ea2740ffe021e215a;hb=e5c9e53c9b8d5c8519b251f91de7bc453d1086be;hp=024cd06aa9ee9dee2f745d2a482e27ee608dbaa1;hpb=c5a570810022466eaa5e077cd1b8aa00d74706f1;p=binutils-gdb.git
diff --git a/sim/mips/cp1.c b/sim/mips/cp1.c
index 024cd06aa9e..03ed0c0558f 100644
--- a/sim/mips/cp1.c
+++ b/sim/mips/cp1.c
@@ -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 . */
(Originally, this code was in interp.c)
*/
+/* This must come before any other includes. */
+#include "defs.h"
+
#include "sim-main.h"
+#include
+
/* 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)