This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / sim / arm / armsupp.c
index 5ffdae9ad7b6fc9cda05bbd10bc56e4dee5d523a..154d520d216e1d25ee0fe030b22d07f00d84ec19 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "armdefs.h"
 #include "armemu.h"
+#include "ansidecl.h"
 
 /***************************************************************************\
 *                    Definitions for the support routines                   *
@@ -33,10 +34,8 @@ void ARMul_SetR15 (ARMul_State * state, ARMword value);
 
 ARMword ARMul_GetCPSR (ARMul_State * state);
 void ARMul_SetCPSR (ARMul_State * state, ARMword value);
-void ARMul_FixCPSR (ARMul_State * state, ARMword instr, ARMword rhs);
 ARMword ARMul_GetSPSR (ARMul_State * state, ARMword mode);
 void ARMul_SetSPSR (ARMul_State * state, ARMword mode, ARMword value);
-void ARMul_FixSPSR (ARMul_State * state, ARMword instr, ARMword rhs);
 
 void ARMul_CPSRAltered (ARMul_State * state);
 void ARMul_R15Altered (ARMul_State * state);
@@ -62,7 +61,6 @@ void ARMul_STC (ARMul_State * state, ARMword instr, ARMword address);
 void ARMul_MCR (ARMul_State * state, ARMword instr, ARMword source);
 ARMword ARMul_MRC (ARMul_State * state, ARMword instr);
 void ARMul_CDP (ARMul_State * state, ARMword instr);
-void ARMul_UndefInstr (ARMul_State * state, ARMword instr);
 unsigned IntPending (ARMul_State * state);
 
 ARMword ARMul_Align (ARMul_State * state, ARMword address, ARMword data);
@@ -417,7 +415,7 @@ ARMul_SwitchMode (ARMul_State * state, ARMword oldmode, ARMword newmode)
 \***************************************************************************/
 
 static ARMword
-ModeToBank (ARMul_State * state, ARMword mode)
+ModeToBank (ARMul_State * state ATTRIBUTE_UNUSED, ARMword mode)
 {
   static ARMword bankofmode[] = { USERBANK, FIQBANK, IRQBANK, SVCBANK,
     DUMMYBANK, DUMMYBANK, DUMMYBANK, DUMMYBANK,
@@ -740,7 +738,7 @@ ARMul_CDP (ARMul_State * state, ARMword instr)
 \***************************************************************************/
 
 void
-ARMul_UndefInstr (ARMul_State * state, ARMword instr)
+ARMul_UndefInstr (ARMul_State * state, ARMword instr ATTRIBUTE_UNUSED)
 {
   ARMul_Abort (state, ARMul_UndefinedInstrV);
 }
@@ -778,9 +776,13 @@ IntPending (ARMul_State * state)
 \***************************************************************************/
 
 ARMword
-ARMul_Align (ARMul_State * state, ARMword address, ARMword data)
-{                              /* this code assumes the address is really unaligned,
-                                  as a shift by 32 is undefined in C */
+ARMul_Align (state, address, data)
+     ARMul_State * state ATTRIBUTE_UNUSED;
+     ARMword address;
+     ARMword data;
+{
+  /* This code assumes the address is really unaligned,
+     as a shift by 32 is undefined in C.  */
 
   address = (address & 3) << 3;        /* get the word address */
   return ((data >> address) | (data << (32 - address)));       /* rot right */
This page took 0.02333 seconds and 4 git commands to generate.