aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/armsupp.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-02-08 20:54:27 +0000
committerNick Clifton <nickc@redhat.com>2000-02-08 20:54:27 +0000
commit6d358e869b1efe22fa6697a8aa4191ddacbacef0 (patch)
tree8e46af77cc6bd1e1f07b560c31b7cdf0fbbffab9 /sim/arm/armsupp.c
parentab266a97fb888efa38e7cdc1d53b6c97337b589f (diff)
downloadgdb-6d358e869b1efe22fa6697a8aa4191ddacbacef0.zip
gdb-6d358e869b1efe22fa6697a8aa4191ddacbacef0.tar.gz
gdb-6d358e869b1efe22fa6697a8aa4191ddacbacef0.tar.bz2
Fix compile time warning messages.
Diffstat (limited to 'sim/arm/armsupp.c')
-rw-r--r--sim/arm/armsupp.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/sim/arm/armsupp.c b/sim/arm/armsupp.c
index 5ffdae9..154d520 100644
--- a/sim/arm/armsupp.c
+++ b/sim/arm/armsupp.c
@@ -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 */