Commit 6635f6fa94cb5e938fba42cf68778093e6fc07cc

Authored by blueswir1
1 parent 513f789f

Prune unused AREGs

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6778 c046a42c-6fe2-441c-8c8c-71466251a162
dyngen-exec.h
... ... @@ -97,57 +97,31 @@ extern int printf(const char *, ...);
97 97 #define AREG0 "ebp"
98 98 #define AREG1 "ebx"
99 99 #define AREG2 "esi"
100   -#define AREG3 "edi"
101 100 #elif defined(__x86_64__)
102 101 #define AREG0 "r14"
103 102 #define AREG1 "r15"
104 103 #define AREG2 "r12"
105   -#define AREG3 "r13"
106   -//#define AREG4 "rbp"
107   -//#define AREG5 "rbx"
108 104 #elif defined(_ARCH_PPC)
109 105 #define AREG0 "r27"
110 106 #define AREG1 "r24"
111 107 #define AREG2 "r25"
112   -#define AREG3 "r26"
113   -/* XXX: suppress this hack */
114   -#if defined(CONFIG_USER_ONLY)
115   -#define AREG4 "r16"
116   -#define AREG5 "r17"
117   -#define AREG6 "r18"
118   -#define AREG7 "r19"
119   -#define AREG8 "r20"
120   -#define AREG9 "r21"
121   -#define AREG10 "r22"
122   -#define AREG11 "r23"
123   -#endif
124 108 #elif defined(__arm__)
125 109 #define AREG0 "r7"
126 110 #define AREG1 "r4"
127 111 #define AREG2 "r5"
128   -#define AREG3 "r6"
129 112 #elif defined(__hppa__)
130 113 #define AREG0 "r17"
131 114 #define AREG1 "r14"
132 115 #define AREG2 "r15"
133   -#define AREG3 "r16"
134 116 #elif defined(__mips__)
135 117 #define AREG0 "fp"
136 118 #define AREG1 "s0"
137 119 #define AREG2 "s1"
138   -#define AREG3 "s2"
139   -#define AREG4 "s3"
140   -#define AREG5 "s4"
141   -#define AREG6 "s5"
142   -#define AREG7 "s6"
143   -#define AREG8 "s7"
144 120 #elif defined(__sparc__)
145 121 #ifdef HOST_SOLARIS
146 122 #define AREG0 "g2"
147 123 #define AREG1 "g3"
148 124 #define AREG2 "g4"
149   -#define AREG3 "g5"
150   -#define AREG4 "g6"
151 125 #else
152 126 #ifdef __sparc_v9__
153 127 #define AREG0 "g5"
... ... @@ -157,43 +131,26 @@ extern int printf(const char *, ...);
157 131 #define AREG0 "g6"
158 132 #define AREG1 "g1"
159 133 #define AREG2 "g2"
160   -#define AREG3 "g3"
161   -#define AREG4 "l0"
162   -#define AREG5 "l1"
163   -#define AREG6 "l2"
164   -#define AREG7 "l3"
165   -#define AREG8 "l4"
166   -#define AREG9 "l5"
167   -#define AREG10 "l6"
168   -#define AREG11 "l7"
169 134 #endif
170 135 #endif
171 136 #elif defined(__s390__)
172 137 #define AREG0 "r10"
173 138 #define AREG1 "r7"
174 139 #define AREG2 "r8"
175   -#define AREG3 "r9"
176 140 #elif defined(__alpha__)
177 141 /* Note $15 is the frame pointer, so anything in op-i386.c that would
178 142 require a frame pointer, like alloca, would probably loose. */
179 143 #define AREG0 "$15"
180 144 #define AREG1 "$9"
181 145 #define AREG2 "$10"
182   -#define AREG3 "$11"
183   -#define AREG4 "$12"
184   -#define AREG5 "$13"
185   -#define AREG6 "$14"
186 146 #elif defined(__mc68000)
187 147 #define AREG0 "%a5"
188 148 #define AREG1 "%a4"
189 149 #define AREG2 "%d7"
190   -#define AREG3 "%d6"
191   -#define AREG4 "%d5"
192 150 #elif defined(__ia64__)
193 151 #define AREG0 "r7"
194 152 #define AREG1 "r4"
195 153 #define AREG2 "r5"
196   -#define AREG3 "r6"
197 154 #else
198 155 #error unsupported CPU
199 156 #endif
... ...
hostregs_helper.h
... ... @@ -57,42 +57,6 @@ DO_REG(1)
57 57 DO_REG(2)
58 58 #endif
59 59  
60   -#ifdef AREG3
61   -DO_REG(3)
62   -#endif
63   -
64   -#ifdef AREG4
65   -DO_REG(4)
66   -#endif
67   -
68   -#ifdef AREG5
69   -DO_REG(5)
70   -#endif
71   -
72   -#ifdef AREG6
73   -DO_REG(6)
74   -#endif
75   -
76   -#ifdef AREG7
77   -DO_REG(7)
78   -#endif
79   -
80   -#ifdef AREG8
81   -DO_REG(8)
82   -#endif
83   -
84   -#ifdef AREG9
85   -DO_REG(9)
86   -#endif
87   -
88   -#ifdef AREG10
89   -DO_REG(10)
90   -#endif
91   -
92   -#ifdef AREG11
93   -DO_REG(11)
94   -#endif
95   -
96 60 #undef SAVE_HOST_REGS
97 61 #undef DECLARE_HOST_REGS
98 62 #undef DO_REG
... ...