aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/armcopro.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/armcopro.c
parentab266a97fb888efa38e7cdc1d53b6c97337b589f (diff)
downloadgdb-6d358e869b1efe22fa6697a8aa4191ddacbacef0.zip
gdb-6d358e869b1efe22fa6697a8aa4191ddacbacef0.tar.gz
gdb-6d358e869b1efe22fa6697a8aa4191ddacbacef0.tar.bz2
Fix compile time warning messages.
Diffstat (limited to 'sim/arm/armcopro.c')
-rw-r--r--sim/arm/armcopro.c33
1 files changed, 22 insertions, 11 deletions
diff --git a/sim/arm/armcopro.c b/sim/arm/armcopro.c
index 6874ee1..579446c 100644
--- a/sim/arm/armcopro.c
+++ b/sim/arm/armcopro.c
@@ -1,5 +1,5 @@
/* armcopro.c -- co-processor interface: ARM6 Instruction Emulator.
- Copyright (C) 1994 Advanced RISC Machines Ltd.
+ Copyright (C) 1994, 2000 Advanced RISC Machines Ltd.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -16,6 +16,7 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "armdefs.h"
+#include "ansidecl.h"
extern unsigned ARMul_CoProInit (ARMul_State * state);
extern void ARMul_CoProExit (ARMul_State * state);
@@ -61,7 +62,7 @@ MMUInit (ARMul_State * state)
}
static unsigned
-MMUMRC (ARMul_State * state, unsigned type, ARMword instr, ARMword * value)
+MMUMRC (ARMul_State * state ATTRIBUTE_UNUSED, unsigned type ATTRIBUTE_UNUSED, ARMword instr, ARMword * value)
{
int reg = BITS (16, 19) & 7;
@@ -73,7 +74,7 @@ MMUMRC (ARMul_State * state, unsigned type, ARMword instr, ARMword * value)
}
static unsigned
-MMUMCR (ARMul_State * state, unsigned type, ARMword instr, ARMword value)
+MMUMCR (ARMul_State * state, unsigned type ATTRIBUTE_UNUSED, ARMword instr, ARMword value)
{
int reg = BITS (16, 19) & 7;
@@ -91,7 +92,7 @@ MMUMCR (ARMul_State * state, unsigned type, ARMword instr, ARMword value)
static unsigned
-MMURead (ARMul_State * state, unsigned reg, ARMword * value)
+MMURead (ARMul_State * state ATTRIBUTE_UNUSED, unsigned reg, ARMword * value)
{
if (reg == 0)
*value = 0x41440110;
@@ -131,7 +132,7 @@ I, C and F cyles) */
static ARMword ValReg[16];
static unsigned
-ValLDC (ARMul_State * state, unsigned type, ARMword instr, ARMword data)
+ValLDC (ARMul_State * state ATTRIBUTE_UNUSED, unsigned type, ARMword instr, ARMword data)
{
static unsigned words;
@@ -156,7 +157,7 @@ ValLDC (ARMul_State * state, unsigned type, ARMword instr, ARMword data)
}
static unsigned
-ValSTC (ARMul_State * state, unsigned type, ARMword instr, ARMword * data)
+ValSTC (ARMul_State * state ATTRIBUTE_UNUSED, unsigned type, ARMword instr, ARMword * data)
{
static unsigned words;
@@ -181,14 +182,14 @@ ValSTC (ARMul_State * state, unsigned type, ARMword instr, ARMword * data)
}
static unsigned
-ValMRC (ARMul_State * state, unsigned type, ARMword instr, ARMword * value)
+ValMRC (ARMul_State * state ATTRIBUTE_UNUSED, unsigned type ATTRIBUTE_UNUSED, ARMword instr, ARMword * value)
{
*value = ValReg[BITS (16, 19)];
return (ARMul_DONE);
}
static unsigned
-ValMCR (ARMul_State * state, unsigned type, ARMword instr, ARMword value)
+ValMCR (ARMul_State * state ATTRIBUTE_UNUSED, unsigned type ATTRIBUTE_UNUSED, ARMword instr, ARMword value)
{
ValReg[BITS (16, 19)] = value;
return (ARMul_DONE);
@@ -392,19 +393,29 @@ ARMul_CoProDetach (ARMul_State * state, unsigned number)
\***************************************************************************/
static unsigned
-NoCoPro3R (ARMul_State * state, unsigned a, ARMword b)
+NoCoPro3R (ARMul_State * state ATTRIBUTE_UNUSED,
+ unsigned a ATTRIBUTE_UNUSED,
+ ARMword b ATTRIBUTE_UNUSED)
{
return (ARMul_CANT);
}
static unsigned
-NoCoPro4R (ARMul_State * state, unsigned a, ARMword b, ARMword c)
+NoCoPro4R (
+ ARMul_State * state ATTRIBUTE_UNUSED,
+ unsigned a ATTRIBUTE_UNUSED,
+ ARMword b ATTRIBUTE_UNUSED,
+ ARMword c ATTRIBUTE_UNUSED)
{
return (ARMul_CANT);
}
static unsigned
-NoCoPro4W (ARMul_State * state, unsigned a, ARMword b, ARMword * c)
+NoCoPro4W (
+ ARMul_State * state ATTRIBUTE_UNUSED,
+ unsigned a ATTRIBUTE_UNUSED,
+ ARMword b ATTRIBUTE_UNUSED,
+ ARMword * c ATTRIBUTE_UNUSED)
{
return (ARMul_CANT);
}