aboutsummaryrefslogtreecommitdiff
path: root/disas
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-09-22 18:13:09 +0100
committerPeter Maydell <peter.maydell@linaro.org>2016-09-22 18:13:09 +0100
commitd486ccaa9ecdc37015ca0ecb330e3127ea948f8a (patch)
tree02d16c3bda3dd6e522f068ba1c7532dfaf4b74c7 /disas
parent2ccfd336dcdbc6f4f479380ed80003fac17a946e (diff)
downloadqemu-d486ccaa9ecdc37015ca0ecb330e3127ea948f8a.zip
qemu-d486ccaa9ecdc37015ca0ecb330e3127ea948f8a.tar.gz
qemu-d486ccaa9ecdc37015ca0ecb330e3127ea948f8a.tar.bz2
disas/arm.c: Remove unused macro definitions
The macros ISSPACE, strneq, NUM_ELEMS and NUM_ARM_REGNAMES are defined in disas/arm.c but never used. Remove the unnecessary definitions. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'disas')
-rw-r--r--disas/arm.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/disas/arm.c b/disas/arm.c
index 426270f..93c6503 100644
--- a/disas/arm.c
+++ b/disas/arm.c
@@ -24,7 +24,6 @@
#include "qemu/osdep.h"
#include "disas/bfd.h"
-#define ISSPACE(x) ((x) == ' ' || (x) == '\t' || (x) == '\n')
#define ARM_EXT_V1 0
#define ARM_EXT_V2 0
@@ -73,15 +72,6 @@ static void floatformat_to_double (unsigned char *data, double *dest)
/* End of qemu specific additions. */
-/* FIXME: Belongs in global header. */
-#ifndef strneq
-#define strneq(a,b,n) (strncmp ((a), (b), (n)) == 0)
-#endif
-
-#ifndef NUM_ELEM
-#define NUM_ELEM(a) (sizeof (a) / sizeof (a)[0])
-#endif
-
struct opcode32
{
unsigned long arch; /* Architecture defining this insn. */
@@ -1528,7 +1518,6 @@ static const char *const iwmmxt_cregnames[] =
/* Default to GCC register name set. */
static unsigned int regname_selected = 1;
-#define NUM_ARM_REGNAMES NUM_ELEM (regnames)
#define arm_regnames regnames[regname_selected].reg_names
static bfd_boolean force_thumb = false;