Commit 6635f6fa94cb5e938fba42cf68778093e6fc07cc
1 parent
513f789f
Prune unused AREGs
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6778 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
0 additions
and
79 deletions
dyngen-exec.h
@@ -97,57 +97,31 @@ extern int printf(const char *, ...); | @@ -97,57 +97,31 @@ extern int printf(const char *, ...); | ||
97 | #define AREG0 "ebp" | 97 | #define AREG0 "ebp" |
98 | #define AREG1 "ebx" | 98 | #define AREG1 "ebx" |
99 | #define AREG2 "esi" | 99 | #define AREG2 "esi" |
100 | -#define AREG3 "edi" | ||
101 | #elif defined(__x86_64__) | 100 | #elif defined(__x86_64__) |
102 | #define AREG0 "r14" | 101 | #define AREG0 "r14" |
103 | #define AREG1 "r15" | 102 | #define AREG1 "r15" |
104 | #define AREG2 "r12" | 103 | #define AREG2 "r12" |
105 | -#define AREG3 "r13" | ||
106 | -//#define AREG4 "rbp" | ||
107 | -//#define AREG5 "rbx" | ||
108 | #elif defined(_ARCH_PPC) | 104 | #elif defined(_ARCH_PPC) |
109 | #define AREG0 "r27" | 105 | #define AREG0 "r27" |
110 | #define AREG1 "r24" | 106 | #define AREG1 "r24" |
111 | #define AREG2 "r25" | 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 | #elif defined(__arm__) | 108 | #elif defined(__arm__) |
125 | #define AREG0 "r7" | 109 | #define AREG0 "r7" |
126 | #define AREG1 "r4" | 110 | #define AREG1 "r4" |
127 | #define AREG2 "r5" | 111 | #define AREG2 "r5" |
128 | -#define AREG3 "r6" | ||
129 | #elif defined(__hppa__) | 112 | #elif defined(__hppa__) |
130 | #define AREG0 "r17" | 113 | #define AREG0 "r17" |
131 | #define AREG1 "r14" | 114 | #define AREG1 "r14" |
132 | #define AREG2 "r15" | 115 | #define AREG2 "r15" |
133 | -#define AREG3 "r16" | ||
134 | #elif defined(__mips__) | 116 | #elif defined(__mips__) |
135 | #define AREG0 "fp" | 117 | #define AREG0 "fp" |
136 | #define AREG1 "s0" | 118 | #define AREG1 "s0" |
137 | #define AREG2 "s1" | 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 | #elif defined(__sparc__) | 120 | #elif defined(__sparc__) |
145 | #ifdef HOST_SOLARIS | 121 | #ifdef HOST_SOLARIS |
146 | #define AREG0 "g2" | 122 | #define AREG0 "g2" |
147 | #define AREG1 "g3" | 123 | #define AREG1 "g3" |
148 | #define AREG2 "g4" | 124 | #define AREG2 "g4" |
149 | -#define AREG3 "g5" | ||
150 | -#define AREG4 "g6" | ||
151 | #else | 125 | #else |
152 | #ifdef __sparc_v9__ | 126 | #ifdef __sparc_v9__ |
153 | #define AREG0 "g5" | 127 | #define AREG0 "g5" |
@@ -157,43 +131,26 @@ extern int printf(const char *, ...); | @@ -157,43 +131,26 @@ extern int printf(const char *, ...); | ||
157 | #define AREG0 "g6" | 131 | #define AREG0 "g6" |
158 | #define AREG1 "g1" | 132 | #define AREG1 "g1" |
159 | #define AREG2 "g2" | 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 | #endif | 134 | #endif |
170 | #endif | 135 | #endif |
171 | #elif defined(__s390__) | 136 | #elif defined(__s390__) |
172 | #define AREG0 "r10" | 137 | #define AREG0 "r10" |
173 | #define AREG1 "r7" | 138 | #define AREG1 "r7" |
174 | #define AREG2 "r8" | 139 | #define AREG2 "r8" |
175 | -#define AREG3 "r9" | ||
176 | #elif defined(__alpha__) | 140 | #elif defined(__alpha__) |
177 | /* Note $15 is the frame pointer, so anything in op-i386.c that would | 141 | /* Note $15 is the frame pointer, so anything in op-i386.c that would |
178 | require a frame pointer, like alloca, would probably loose. */ | 142 | require a frame pointer, like alloca, would probably loose. */ |
179 | #define AREG0 "$15" | 143 | #define AREG0 "$15" |
180 | #define AREG1 "$9" | 144 | #define AREG1 "$9" |
181 | #define AREG2 "$10" | 145 | #define AREG2 "$10" |
182 | -#define AREG3 "$11" | ||
183 | -#define AREG4 "$12" | ||
184 | -#define AREG5 "$13" | ||
185 | -#define AREG6 "$14" | ||
186 | #elif defined(__mc68000) | 146 | #elif defined(__mc68000) |
187 | #define AREG0 "%a5" | 147 | #define AREG0 "%a5" |
188 | #define AREG1 "%a4" | 148 | #define AREG1 "%a4" |
189 | #define AREG2 "%d7" | 149 | #define AREG2 "%d7" |
190 | -#define AREG3 "%d6" | ||
191 | -#define AREG4 "%d5" | ||
192 | #elif defined(__ia64__) | 150 | #elif defined(__ia64__) |
193 | #define AREG0 "r7" | 151 | #define AREG0 "r7" |
194 | #define AREG1 "r4" | 152 | #define AREG1 "r4" |
195 | #define AREG2 "r5" | 153 | #define AREG2 "r5" |
196 | -#define AREG3 "r6" | ||
197 | #else | 154 | #else |
198 | #error unsupported CPU | 155 | #error unsupported CPU |
199 | #endif | 156 | #endif |
hostregs_helper.h
@@ -57,42 +57,6 @@ DO_REG(1) | @@ -57,42 +57,6 @@ DO_REG(1) | ||
57 | DO_REG(2) | 57 | DO_REG(2) |
58 | #endif | 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 | #undef SAVE_HOST_REGS | 60 | #undef SAVE_HOST_REGS |
97 | #undef DECLARE_HOST_REGS | 61 | #undef DECLARE_HOST_REGS |
98 | #undef DO_REG | 62 | #undef DO_REG |