Commit b854065e0795e21d30a6219fb9f1c311060ded56
1 parent
72ffa017
Get rid of AREG1 and AREG2.
Signed-off-by: Filip Navara <filip.navara@gmail.com>
Showing
10 changed files
with
0 additions
and
56 deletions
dyngen-exec.h
| ... | ... | @@ -52,62 +52,36 @@ extern int printf(const char *, ...); |
| 52 | 52 | |
| 53 | 53 | #if defined(__i386__) |
| 54 | 54 | #define AREG0 "ebp" |
| 55 | -#define AREG1 "ebx" | |
| 56 | -#define AREG2 "esi" | |
| 57 | 55 | #elif defined(__x86_64__) |
| 58 | 56 | #define AREG0 "r14" |
| 59 | -#define AREG1 "r15" | |
| 60 | -#define AREG2 "r12" | |
| 61 | 57 | #elif defined(_ARCH_PPC) |
| 62 | 58 | #define AREG0 "r27" |
| 63 | -#define AREG1 "r24" | |
| 64 | -#define AREG2 "r25" | |
| 65 | 59 | #elif defined(__arm__) |
| 66 | 60 | #define AREG0 "r7" |
| 67 | -#define AREG1 "r4" | |
| 68 | -#define AREG2 "r5" | |
| 69 | 61 | #elif defined(__hppa__) |
| 70 | 62 | #define AREG0 "r17" |
| 71 | -#define AREG1 "r14" | |
| 72 | -#define AREG2 "r15" | |
| 73 | 63 | #elif defined(__mips__) |
| 74 | 64 | #define AREG0 "fp" |
| 75 | -#define AREG1 "s0" | |
| 76 | -#define AREG2 "s1" | |
| 77 | 65 | #elif defined(__sparc__) |
| 78 | 66 | #ifdef CONFIG_SOLARIS |
| 79 | 67 | #define AREG0 "g2" |
| 80 | -#define AREG1 "g3" | |
| 81 | -#define AREG2 "g4" | |
| 82 | 68 | #else |
| 83 | 69 | #ifdef __sparc_v9__ |
| 84 | 70 | #define AREG0 "g5" |
| 85 | -#define AREG1 "g6" | |
| 86 | -#define AREG2 "g7" | |
| 87 | 71 | #else |
| 88 | 72 | #define AREG0 "g6" |
| 89 | -#define AREG1 "g1" | |
| 90 | -#define AREG2 "g2" | |
| 91 | 73 | #endif |
| 92 | 74 | #endif |
| 93 | 75 | #elif defined(__s390__) |
| 94 | 76 | #define AREG0 "r10" |
| 95 | -#define AREG1 "r7" | |
| 96 | -#define AREG2 "r8" | |
| 97 | 77 | #elif defined(__alpha__) |
| 98 | 78 | /* Note $15 is the frame pointer, so anything in op-i386.c that would |
| 99 | 79 | require a frame pointer, like alloca, would probably loose. */ |
| 100 | 80 | #define AREG0 "$15" |
| 101 | -#define AREG1 "$9" | |
| 102 | -#define AREG2 "$10" | |
| 103 | 81 | #elif defined(__mc68000) |
| 104 | 82 | #define AREG0 "%a5" |
| 105 | -#define AREG1 "%a4" | |
| 106 | -#define AREG2 "%d7" | |
| 107 | 83 | #elif defined(__ia64__) |
| 108 | 84 | #define AREG0 "r7" |
| 109 | -#define AREG1 "r4" | |
| 110 | -#define AREG2 "r5" | |
| 111 | 85 | #else |
| 112 | 86 | #error unsupported CPU |
| 113 | 87 | #endif | ... | ... |
hostregs_helper.h
target-m68k/exec.h
| ... | ... | @@ -20,10 +20,6 @@ |
| 20 | 20 | #include "dyngen-exec.h" |
| 21 | 21 | |
| 22 | 22 | register struct CPUM68KState *env asm(AREG0); |
| 23 | -/* This is only used for tb lookup. */ | |
| 24 | -register uint32_t T0 asm(AREG1); | |
| 25 | -/* ??? We don't use T1, but common code expects it to exist */ | |
| 26 | -#define T1 env->t1 | |
| 27 | 23 | |
| 28 | 24 | #include "cpu.h" |
| 29 | 25 | #include "exec-all.h" | ... | ... |
tcg/arm/tcg-target.h
tcg/hppa/tcg-target.h
| ... | ... | @@ -82,8 +82,6 @@ enum { |
| 82 | 82 | |
| 83 | 83 | /* Note: must be synced with dyngen-exec.h */ |
| 84 | 84 | #define TCG_AREG0 TCG_REG_R17 |
| 85 | -#define TCG_AREG1 TCG_REG_R14 | |
| 86 | -#define TCG_AREG2 TCG_REG_R15 | |
| 87 | 85 | |
| 88 | 86 | static inline void flush_icache_range(unsigned long start, unsigned long stop) |
| 89 | 87 | { | ... | ... |
tcg/i386/tcg-target.h
| ... | ... | @@ -57,8 +57,6 @@ enum { |
| 57 | 57 | |
| 58 | 58 | /* Note: must be synced with dyngen-exec.h */ |
| 59 | 59 | #define TCG_AREG0 TCG_REG_EBP |
| 60 | -#define TCG_AREG1 TCG_REG_EBX | |
| 61 | -#define TCG_AREG2 TCG_REG_ESI | |
| 62 | 60 | |
| 63 | 61 | static inline void flush_icache_range(unsigned long start, unsigned long stop) |
| 64 | 62 | { | ... | ... |
tcg/ppc/tcg-target.h
tcg/ppc64/tcg-target.h
tcg/sparc/tcg-target.h
| ... | ... | @@ -97,16 +97,10 @@ enum { |
| 97 | 97 | /* Note: must be synced with dyngen-exec.h and Makefile.target */ |
| 98 | 98 | #ifdef CONFIG_SOLARIS |
| 99 | 99 | #define TCG_AREG0 TCG_REG_G2 |
| 100 | -#define TCG_AREG1 TCG_REG_G3 | |
| 101 | -#define TCG_AREG2 TCG_REG_G4 | |
| 102 | 100 | #elif defined(__sparc_v9__) |
| 103 | 101 | #define TCG_AREG0 TCG_REG_G5 |
| 104 | -#define TCG_AREG1 TCG_REG_G6 | |
| 105 | -#define TCG_AREG2 TCG_REG_G7 | |
| 106 | 102 | #else |
| 107 | 103 | #define TCG_AREG0 TCG_REG_G6 |
| 108 | -#define TCG_AREG1 TCG_REG_G1 | |
| 109 | -#define TCG_AREG2 TCG_REG_G2 | |
| 110 | 104 | #endif |
| 111 | 105 | |
| 112 | 106 | static inline void flush_icache_range(unsigned long start, unsigned long stop) | ... | ... |
tcg/x86_64/tcg-target.h
| ... | ... | @@ -77,8 +77,6 @@ enum { |
| 77 | 77 | |
| 78 | 78 | /* Note: must be synced with dyngen-exec.h */ |
| 79 | 79 | #define TCG_AREG0 TCG_REG_R14 |
| 80 | -#define TCG_AREG1 TCG_REG_R15 | |
| 81 | -#define TCG_AREG2 TCG_REG_R12 | |
| 82 | 80 | |
| 83 | 81 | static inline void flush_icache_range(unsigned long start, unsigned long stop) |
| 84 | 82 | { | ... | ... |