From 840f58617b12a536ec56e5775ab42d730d0d6259 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 17 Sep 2011 22:00:28 +0200 Subject: tcg: Don't declare TCG_TARGET_REG_BITS in tcg-target.h It is now declared for all tcg targets in tcg.h, so the tcg target specific declarations are redundant. Signed-off-by: Stefan Weil Signed-off-by: Blue Swirl --- tcg/arm/tcg-target.h | 1 - tcg/hppa/tcg-target.h | 4 +--- tcg/ia64/tcg-target.h | 2 -- tcg/mips/tcg-target.h | 1 - tcg/ppc/tcg-target.h | 1 - tcg/ppc64/tcg-target.h | 1 - tcg/s390/tcg-target.h | 6 ------ tcg/sparc/tcg-target.h | 6 ------ 8 files changed, 1 insertion(+), 21 deletions(-) (limited to 'tcg') diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h index 0e0f69acf1..33afd97895 100644 --- a/tcg/arm/tcg-target.h +++ b/tcg/arm/tcg-target.h @@ -24,7 +24,6 @@ */ #define TCG_TARGET_ARM 1 -#define TCG_TARGET_REG_BITS 32 #undef TCG_TARGET_WORDS_BIGENDIAN #undef TCG_TARGET_STACK_GROWSUP diff --git a/tcg/hppa/tcg-target.h b/tcg/hppa/tcg-target.h index ed90efc146..ec9a7bf253 100644 --- a/tcg/hppa/tcg-target.h +++ b/tcg/hppa/tcg-target.h @@ -24,9 +24,7 @@ #define TCG_TARGET_HPPA 1 -#if defined(_PA_RISC1_1) -#define TCG_TARGET_REG_BITS 32 -#else +#if TCG_TARGET_REG_BITS != 32 #error unsupported #endif diff --git a/tcg/ia64/tcg-target.h b/tcg/ia64/tcg-target.h index ddc93c1353..578cf2954a 100644 --- a/tcg/ia64/tcg-target.h +++ b/tcg/ia64/tcg-target.h @@ -24,8 +24,6 @@ */ #define TCG_TARGET_IA64 1 -#define TCG_TARGET_REG_BITS 64 - /* We only map the first 64 registers */ #define TCG_TARGET_NB_REGS 64 enum { diff --git a/tcg/mips/tcg-target.h b/tcg/mips/tcg-target.h index 43c5501708..e2a2571f9a 100644 --- a/tcg/mips/tcg-target.h +++ b/tcg/mips/tcg-target.h @@ -25,7 +25,6 @@ */ #define TCG_TARGET_MIPS 1 -#define TCG_TARGET_REG_BITS 32 #ifdef __MIPSEB__ # define TCG_TARGET_WORDS_BIGENDIAN #endif diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h index f9a88c4a3a..5c2d61294f 100644 --- a/tcg/ppc/tcg-target.h +++ b/tcg/ppc/tcg-target.h @@ -23,7 +23,6 @@ */ #define TCG_TARGET_PPC 1 -#define TCG_TARGET_REG_BITS 32 #define TCG_TARGET_WORDS_BIGENDIAN #define TCG_TARGET_NB_REGS 32 diff --git a/tcg/ppc64/tcg-target.h b/tcg/ppc64/tcg-target.h index 539513171b..8d1fb738e4 100644 --- a/tcg/ppc64/tcg-target.h +++ b/tcg/ppc64/tcg-target.h @@ -23,7 +23,6 @@ */ #define TCG_TARGET_PPC64 1 -#define TCG_TARGET_REG_BITS 64 #define TCG_TARGET_WORDS_BIGENDIAN #define TCG_TARGET_NB_REGS 32 diff --git a/tcg/s390/tcg-target.h b/tcg/s390/tcg-target.h index 35ebac3a3b..e4cd6418a9 100644 --- a/tcg/s390/tcg-target.h +++ b/tcg/s390/tcg-target.h @@ -23,12 +23,6 @@ */ #define TCG_TARGET_S390 1 -#ifdef __s390x__ -#define TCG_TARGET_REG_BITS 64 -#else -#define TCG_TARGET_REG_BITS 32 -#endif - #define TCG_TARGET_WORDS_BIGENDIAN typedef enum TCGReg { diff --git a/tcg/sparc/tcg-target.h b/tcg/sparc/tcg-target.h index 7b4e7f9ed6..1464ef40c6 100644 --- a/tcg/sparc/tcg-target.h +++ b/tcg/sparc/tcg-target.h @@ -23,12 +23,6 @@ */ #define TCG_TARGET_SPARC 1 -#if defined(__sparc_v9__) && !defined(__sparc_v8plus__) -#define TCG_TARGET_REG_BITS 64 -#else -#define TCG_TARGET_REG_BITS 32 -#endif - #define TCG_TARGET_WORDS_BIGENDIAN #define TCG_TARGET_NB_REGS 32 -- cgit v1.2.1