root / target-ppc / translate_init.c @ 77b73de6
History | View | Annotate | Download (403.4 kB)
1 | 3fc6c082 | bellard | /*
|
---|---|---|---|
2 | 3fc6c082 | bellard | * PowerPC CPU initialization for qemu.
|
3 | 5fafdf24 | ths | *
|
4 | 76a66253 | j_mayer | * Copyright (c) 2003-2007 Jocelyn Mayer
|
5 | 3fc6c082 | bellard | *
|
6 | 3fc6c082 | bellard | * This library is free software; you can redistribute it and/or
|
7 | 3fc6c082 | bellard | * modify it under the terms of the GNU Lesser General Public
|
8 | 3fc6c082 | bellard | * License as published by the Free Software Foundation; either
|
9 | 3fc6c082 | bellard | * version 2 of the License, or (at your option) any later version.
|
10 | 3fc6c082 | bellard | *
|
11 | 3fc6c082 | bellard | * This library is distributed in the hope that it will be useful,
|
12 | 3fc6c082 | bellard | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 | 3fc6c082 | bellard | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 | 3fc6c082 | bellard | * Lesser General Public License for more details.
|
15 | 3fc6c082 | bellard | *
|
16 | 3fc6c082 | bellard | * You should have received a copy of the GNU Lesser General Public
|
17 | 3fc6c082 | bellard | * License along with this library; if not, write to the Free Software
|
18 | 3fc6c082 | bellard | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19 | 3fc6c082 | bellard | */
|
20 | 3fc6c082 | bellard | |
21 | 3fc6c082 | bellard | /* A lot of PowerPC definition have been included here.
|
22 | 3fc6c082 | bellard | * Most of them are not usable for now but have been kept
|
23 | 3fc6c082 | bellard | * inside "#if defined(TODO) ... #endif" statements to make tests easier.
|
24 | 3fc6c082 | bellard | */
|
25 | 3fc6c082 | bellard | |
26 | 237c0af0 | j_mayer | #include "dis-asm.h" |
27 | ee4e83ed | j_mayer | #include "host-utils.h" |
28 | 237c0af0 | j_mayer | |
29 | 3fc6c082 | bellard | //#define PPC_DUMP_CPU
|
30 | 3fc6c082 | bellard | //#define PPC_DEBUG_SPR
|
31 | 80d11f44 | j_mayer | //#define PPC_DUMP_SPR_ACCESSES
|
32 | 80d11f44 | j_mayer | #if defined(CONFIG_USER_ONLY)
|
33 | 80d11f44 | j_mayer | #define TODO_USER_ONLY 1 |
34 | 80d11f44 | j_mayer | #endif
|
35 | 3fc6c082 | bellard | |
36 | 3fc6c082 | bellard | struct ppc_def_t {
|
37 | 3fc6c082 | bellard | const unsigned char *name; |
38 | 3fc6c082 | bellard | uint32_t pvr; |
39 | 80d11f44 | j_mayer | uint32_t svr; |
40 | 0487d6a8 | j_mayer | uint64_t insns_flags; |
41 | 3fc6c082 | bellard | uint64_t msr_mask; |
42 | 7820dbf3 | j_mayer | powerpc_mmu_t mmu_model; |
43 | 7820dbf3 | j_mayer | powerpc_excp_t excp_model; |
44 | 7820dbf3 | j_mayer | powerpc_input_t bus_model; |
45 | d26bfc9a | j_mayer | uint32_t flags; |
46 | 237c0af0 | j_mayer | int bfd_mach;
|
47 | a750fc0b | j_mayer | void (*init_proc)(CPUPPCState *env);
|
48 | 4c1b1bfe | j_mayer | int (*check_pow)(CPUPPCState *env);
|
49 | 3fc6c082 | bellard | }; |
50 | 3fc6c082 | bellard | |
51 | e9df014c | j_mayer | /* For user-mode emulation, we don't emulate any IRQ controller */
|
52 | e9df014c | j_mayer | #if defined(CONFIG_USER_ONLY)
|
53 | a750fc0b | j_mayer | #define PPC_IRQ_INIT_FN(name) \
|
54 | a750fc0b | j_mayer | static inline void glue(glue(ppc, name),_irq_init) (CPUPPCState *env) \ |
55 | a750fc0b | j_mayer | { \ |
56 | e9df014c | j_mayer | } |
57 | e9df014c | j_mayer | #else
|
58 | a750fc0b | j_mayer | #define PPC_IRQ_INIT_FN(name) \
|
59 | e9df014c | j_mayer | void glue(glue(ppc, name),_irq_init) (CPUPPCState *env);
|
60 | e9df014c | j_mayer | #endif
|
61 | a750fc0b | j_mayer | |
62 | 4e290a0b | j_mayer | PPC_IRQ_INIT_FN(40x);
|
63 | e9df014c | j_mayer | PPC_IRQ_INIT_FN(6xx);
|
64 | d0dfae6e | j_mayer | PPC_IRQ_INIT_FN(970);
|
65 | e9df014c | j_mayer | |
66 | 3fc6c082 | bellard | /* Generic callbacks:
|
67 | 3fc6c082 | bellard | * do nothing but store/retrieve spr value
|
68 | 3fc6c082 | bellard | */
|
69 | 04f20795 | j_mayer | #ifdef PPC_DUMP_SPR_ACCESSES
|
70 | 3fc6c082 | bellard | static void spr_read_generic (void *opaque, int sprn) |
71 | 3fc6c082 | bellard | { |
72 | 04f20795 | j_mayer | gen_op_load_dump_spr(sprn); |
73 | 3fc6c082 | bellard | } |
74 | 3fc6c082 | bellard | |
75 | 3fc6c082 | bellard | static void spr_write_generic (void *opaque, int sprn) |
76 | 3fc6c082 | bellard | { |
77 | 04f20795 | j_mayer | gen_op_store_dump_spr(sprn); |
78 | 3fc6c082 | bellard | } |
79 | 04f20795 | j_mayer | #else
|
80 | 04f20795 | j_mayer | static void spr_read_generic (void *opaque, int sprn) |
81 | a496775f | j_mayer | { |
82 | 04f20795 | j_mayer | gen_op_load_spr(sprn); |
83 | a496775f | j_mayer | } |
84 | a496775f | j_mayer | |
85 | 04f20795 | j_mayer | static void spr_write_generic (void *opaque, int sprn) |
86 | a496775f | j_mayer | { |
87 | 04f20795 | j_mayer | gen_op_store_spr(sprn); |
88 | a496775f | j_mayer | } |
89 | 04f20795 | j_mayer | #endif
|
90 | a496775f | j_mayer | |
91 | a496775f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
92 | a496775f | j_mayer | static void spr_write_clear (void *opaque, int sprn) |
93 | a496775f | j_mayer | { |
94 | a496775f | j_mayer | gen_op_mask_spr(sprn); |
95 | a496775f | j_mayer | } |
96 | a496775f | j_mayer | #endif
|
97 | a496775f | j_mayer | |
98 | 76a66253 | j_mayer | /* SPR common to all PowerPC */
|
99 | 3fc6c082 | bellard | /* XER */
|
100 | 3fc6c082 | bellard | static void spr_read_xer (void *opaque, int sprn) |
101 | 3fc6c082 | bellard | { |
102 | 3fc6c082 | bellard | gen_op_load_xer(); |
103 | 3fc6c082 | bellard | } |
104 | 3fc6c082 | bellard | |
105 | 3fc6c082 | bellard | static void spr_write_xer (void *opaque, int sprn) |
106 | 3fc6c082 | bellard | { |
107 | 3fc6c082 | bellard | gen_op_store_xer(); |
108 | 3fc6c082 | bellard | } |
109 | 3fc6c082 | bellard | |
110 | 3fc6c082 | bellard | /* LR */
|
111 | 3fc6c082 | bellard | static void spr_read_lr (void *opaque, int sprn) |
112 | 3fc6c082 | bellard | { |
113 | 3fc6c082 | bellard | gen_op_load_lr(); |
114 | 3fc6c082 | bellard | } |
115 | 3fc6c082 | bellard | |
116 | 3fc6c082 | bellard | static void spr_write_lr (void *opaque, int sprn) |
117 | 3fc6c082 | bellard | { |
118 | 3fc6c082 | bellard | gen_op_store_lr(); |
119 | 3fc6c082 | bellard | } |
120 | 3fc6c082 | bellard | |
121 | 3fc6c082 | bellard | /* CTR */
|
122 | 3fc6c082 | bellard | static void spr_read_ctr (void *opaque, int sprn) |
123 | 3fc6c082 | bellard | { |
124 | 3fc6c082 | bellard | gen_op_load_ctr(); |
125 | 3fc6c082 | bellard | } |
126 | 3fc6c082 | bellard | |
127 | 3fc6c082 | bellard | static void spr_write_ctr (void *opaque, int sprn) |
128 | 3fc6c082 | bellard | { |
129 | 3fc6c082 | bellard | gen_op_store_ctr(); |
130 | 3fc6c082 | bellard | } |
131 | 3fc6c082 | bellard | |
132 | 3fc6c082 | bellard | /* User read access to SPR */
|
133 | 3fc6c082 | bellard | /* USPRx */
|
134 | 3fc6c082 | bellard | /* UMMCRx */
|
135 | 3fc6c082 | bellard | /* UPMCx */
|
136 | 3fc6c082 | bellard | /* USIA */
|
137 | 3fc6c082 | bellard | /* UDECR */
|
138 | 3fc6c082 | bellard | static void spr_read_ureg (void *opaque, int sprn) |
139 | 3fc6c082 | bellard | { |
140 | 3fc6c082 | bellard | gen_op_load_spr(sprn + 0x10);
|
141 | 3fc6c082 | bellard | } |
142 | 3fc6c082 | bellard | |
143 | 76a66253 | j_mayer | /* SPR common to all non-embedded PowerPC */
|
144 | 3fc6c082 | bellard | /* DECR */
|
145 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
146 | 3fc6c082 | bellard | static void spr_read_decr (void *opaque, int sprn) |
147 | 3fc6c082 | bellard | { |
148 | 3fc6c082 | bellard | gen_op_load_decr(); |
149 | 3fc6c082 | bellard | } |
150 | 3fc6c082 | bellard | |
151 | 3fc6c082 | bellard | static void spr_write_decr (void *opaque, int sprn) |
152 | 3fc6c082 | bellard | { |
153 | 3fc6c082 | bellard | gen_op_store_decr(); |
154 | 3fc6c082 | bellard | } |
155 | 76a66253 | j_mayer | #endif
|
156 | 3fc6c082 | bellard | |
157 | 76a66253 | j_mayer | /* SPR common to all non-embedded PowerPC, except 601 */
|
158 | 3fc6c082 | bellard | /* Time base */
|
159 | 3fc6c082 | bellard | static void spr_read_tbl (void *opaque, int sprn) |
160 | 3fc6c082 | bellard | { |
161 | 3fc6c082 | bellard | gen_op_load_tbl(); |
162 | 3fc6c082 | bellard | } |
163 | 3fc6c082 | bellard | |
164 | 76a66253 | j_mayer | static void spr_read_tbu (void *opaque, int sprn) |
165 | 3fc6c082 | bellard | { |
166 | 76a66253 | j_mayer | gen_op_load_tbu(); |
167 | 3fc6c082 | bellard | } |
168 | 3fc6c082 | bellard | |
169 | a062e36c | j_mayer | __attribute__ (( unused )) |
170 | a062e36c | j_mayer | static void spr_read_atbl (void *opaque, int sprn) |
171 | a062e36c | j_mayer | { |
172 | a062e36c | j_mayer | gen_op_load_atbl(); |
173 | a062e36c | j_mayer | } |
174 | a062e36c | j_mayer | |
175 | a062e36c | j_mayer | __attribute__ (( unused )) |
176 | a062e36c | j_mayer | static void spr_read_atbu (void *opaque, int sprn) |
177 | a062e36c | j_mayer | { |
178 | a062e36c | j_mayer | gen_op_load_atbu(); |
179 | a062e36c | j_mayer | } |
180 | a062e36c | j_mayer | |
181 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
182 | 76a66253 | j_mayer | static void spr_write_tbl (void *opaque, int sprn) |
183 | 3fc6c082 | bellard | { |
184 | 76a66253 | j_mayer | gen_op_store_tbl(); |
185 | 3fc6c082 | bellard | } |
186 | 3fc6c082 | bellard | |
187 | 3fc6c082 | bellard | static void spr_write_tbu (void *opaque, int sprn) |
188 | 3fc6c082 | bellard | { |
189 | 3fc6c082 | bellard | gen_op_store_tbu(); |
190 | 3fc6c082 | bellard | } |
191 | a062e36c | j_mayer | |
192 | a062e36c | j_mayer | __attribute__ (( unused )) |
193 | a062e36c | j_mayer | static void spr_write_atbl (void *opaque, int sprn) |
194 | a062e36c | j_mayer | { |
195 | a062e36c | j_mayer | gen_op_store_atbl(); |
196 | a062e36c | j_mayer | } |
197 | a062e36c | j_mayer | |
198 | a062e36c | j_mayer | __attribute__ (( unused )) |
199 | a062e36c | j_mayer | static void spr_write_atbu (void *opaque, int sprn) |
200 | a062e36c | j_mayer | { |
201 | a062e36c | j_mayer | gen_op_store_atbu(); |
202 | a062e36c | j_mayer | } |
203 | 76a66253 | j_mayer | #endif
|
204 | 3fc6c082 | bellard | |
205 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
206 | 3fc6c082 | bellard | /* IBAT0U...IBAT0U */
|
207 | 3fc6c082 | bellard | /* IBAT0L...IBAT7L */
|
208 | 3fc6c082 | bellard | static void spr_read_ibat (void *opaque, int sprn) |
209 | 3fc6c082 | bellard | { |
210 | 3fc6c082 | bellard | gen_op_load_ibat(sprn & 1, (sprn - SPR_IBAT0U) / 2); |
211 | 3fc6c082 | bellard | } |
212 | 3fc6c082 | bellard | |
213 | 3fc6c082 | bellard | static void spr_read_ibat_h (void *opaque, int sprn) |
214 | 3fc6c082 | bellard | { |
215 | 3fc6c082 | bellard | gen_op_load_ibat(sprn & 1, (sprn - SPR_IBAT4U) / 2); |
216 | 3fc6c082 | bellard | } |
217 | 3fc6c082 | bellard | |
218 | 3fc6c082 | bellard | static void spr_write_ibatu (void *opaque, int sprn) |
219 | 3fc6c082 | bellard | { |
220 | 3fc6c082 | bellard | gen_op_store_ibatu((sprn - SPR_IBAT0U) / 2);
|
221 | 3fc6c082 | bellard | } |
222 | 3fc6c082 | bellard | |
223 | 3fc6c082 | bellard | static void spr_write_ibatu_h (void *opaque, int sprn) |
224 | 3fc6c082 | bellard | { |
225 | 3fc6c082 | bellard | gen_op_store_ibatu((sprn - SPR_IBAT4U) / 2);
|
226 | 3fc6c082 | bellard | } |
227 | 3fc6c082 | bellard | |
228 | 3fc6c082 | bellard | static void spr_write_ibatl (void *opaque, int sprn) |
229 | 3fc6c082 | bellard | { |
230 | 3fc6c082 | bellard | gen_op_store_ibatl((sprn - SPR_IBAT0L) / 2);
|
231 | 3fc6c082 | bellard | } |
232 | 3fc6c082 | bellard | |
233 | 3fc6c082 | bellard | static void spr_write_ibatl_h (void *opaque, int sprn) |
234 | 3fc6c082 | bellard | { |
235 | 3fc6c082 | bellard | gen_op_store_ibatl((sprn - SPR_IBAT4L) / 2);
|
236 | 3fc6c082 | bellard | } |
237 | 3fc6c082 | bellard | |
238 | 3fc6c082 | bellard | /* DBAT0U...DBAT7U */
|
239 | 3fc6c082 | bellard | /* DBAT0L...DBAT7L */
|
240 | 3fc6c082 | bellard | static void spr_read_dbat (void *opaque, int sprn) |
241 | 3fc6c082 | bellard | { |
242 | 3fc6c082 | bellard | gen_op_load_dbat(sprn & 1, (sprn - SPR_DBAT0U) / 2); |
243 | 3fc6c082 | bellard | } |
244 | 3fc6c082 | bellard | |
245 | 3fc6c082 | bellard | static void spr_read_dbat_h (void *opaque, int sprn) |
246 | 3fc6c082 | bellard | { |
247 | 2e13d23a | j_mayer | gen_op_load_dbat(sprn & 1, ((sprn - SPR_DBAT4U) / 2) + 4); |
248 | 3fc6c082 | bellard | } |
249 | 3fc6c082 | bellard | |
250 | 3fc6c082 | bellard | static void spr_write_dbatu (void *opaque, int sprn) |
251 | 3fc6c082 | bellard | { |
252 | 3fc6c082 | bellard | gen_op_store_dbatu((sprn - SPR_DBAT0U) / 2);
|
253 | 3fc6c082 | bellard | } |
254 | 3fc6c082 | bellard | |
255 | 3fc6c082 | bellard | static void spr_write_dbatu_h (void *opaque, int sprn) |
256 | 3fc6c082 | bellard | { |
257 | 2e13d23a | j_mayer | gen_op_store_dbatu(((sprn - SPR_DBAT4U) / 2) + 4); |
258 | 3fc6c082 | bellard | } |
259 | 3fc6c082 | bellard | |
260 | 3fc6c082 | bellard | static void spr_write_dbatl (void *opaque, int sprn) |
261 | 3fc6c082 | bellard | { |
262 | 3fc6c082 | bellard | gen_op_store_dbatl((sprn - SPR_DBAT0L) / 2);
|
263 | 3fc6c082 | bellard | } |
264 | 3fc6c082 | bellard | |
265 | 3fc6c082 | bellard | static void spr_write_dbatl_h (void *opaque, int sprn) |
266 | 3fc6c082 | bellard | { |
267 | 2e13d23a | j_mayer | gen_op_store_dbatl(((sprn - SPR_DBAT4L) / 2) + 4); |
268 | 3fc6c082 | bellard | } |
269 | 3fc6c082 | bellard | |
270 | 3fc6c082 | bellard | /* SDR1 */
|
271 | 3fc6c082 | bellard | static void spr_read_sdr1 (void *opaque, int sprn) |
272 | 3fc6c082 | bellard | { |
273 | 3fc6c082 | bellard | gen_op_load_sdr1(); |
274 | 3fc6c082 | bellard | } |
275 | 3fc6c082 | bellard | |
276 | 3fc6c082 | bellard | static void spr_write_sdr1 (void *opaque, int sprn) |
277 | 3fc6c082 | bellard | { |
278 | 3fc6c082 | bellard | gen_op_store_sdr1(); |
279 | 3fc6c082 | bellard | } |
280 | 3fc6c082 | bellard | |
281 | 76a66253 | j_mayer | /* 64 bits PowerPC specific SPRs */
|
282 | 76a66253 | j_mayer | /* ASR */
|
283 | 578bb252 | j_mayer | #if defined(TARGET_PPC64)
|
284 | 76a66253 | j_mayer | static void spr_read_asr (void *opaque, int sprn) |
285 | 76a66253 | j_mayer | { |
286 | 76a66253 | j_mayer | gen_op_load_asr(); |
287 | 76a66253 | j_mayer | } |
288 | 76a66253 | j_mayer | |
289 | 76a66253 | j_mayer | static void spr_write_asr (void *opaque, int sprn) |
290 | 76a66253 | j_mayer | { |
291 | 76a66253 | j_mayer | gen_op_store_asr(); |
292 | 76a66253 | j_mayer | } |
293 | 76a66253 | j_mayer | #endif
|
294 | a750fc0b | j_mayer | #endif
|
295 | 76a66253 | j_mayer | |
296 | 76a66253 | j_mayer | /* PowerPC 601 specific registers */
|
297 | 76a66253 | j_mayer | /* RTC */
|
298 | 76a66253 | j_mayer | static void spr_read_601_rtcl (void *opaque, int sprn) |
299 | 76a66253 | j_mayer | { |
300 | 76a66253 | j_mayer | gen_op_load_601_rtcl(); |
301 | 76a66253 | j_mayer | } |
302 | 76a66253 | j_mayer | |
303 | 76a66253 | j_mayer | static void spr_read_601_rtcu (void *opaque, int sprn) |
304 | 76a66253 | j_mayer | { |
305 | 76a66253 | j_mayer | gen_op_load_601_rtcu(); |
306 | 76a66253 | j_mayer | } |
307 | 76a66253 | j_mayer | |
308 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
309 | 76a66253 | j_mayer | static void spr_write_601_rtcu (void *opaque, int sprn) |
310 | 76a66253 | j_mayer | { |
311 | 76a66253 | j_mayer | gen_op_store_601_rtcu(); |
312 | 76a66253 | j_mayer | } |
313 | 76a66253 | j_mayer | |
314 | 76a66253 | j_mayer | static void spr_write_601_rtcl (void *opaque, int sprn) |
315 | 76a66253 | j_mayer | { |
316 | 76a66253 | j_mayer | gen_op_store_601_rtcl(); |
317 | 76a66253 | j_mayer | } |
318 | 056401ea | j_mayer | |
319 | 056401ea | j_mayer | static void spr_write_hid0_601 (void *opaque, int sprn) |
320 | 056401ea | j_mayer | { |
321 | 056401ea | j_mayer | DisasContext *ctx = opaque; |
322 | 056401ea | j_mayer | |
323 | 056401ea | j_mayer | gen_op_store_hid0_601(); |
324 | 056401ea | j_mayer | /* Must stop the translation as endianness may have changed */
|
325 | 056401ea | j_mayer | GEN_STOP(ctx); |
326 | 056401ea | j_mayer | } |
327 | 76a66253 | j_mayer | #endif
|
328 | 76a66253 | j_mayer | |
329 | 76a66253 | j_mayer | /* Unified bats */
|
330 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
331 | 76a66253 | j_mayer | static void spr_read_601_ubat (void *opaque, int sprn) |
332 | 76a66253 | j_mayer | { |
333 | 76a66253 | j_mayer | gen_op_load_601_bat(sprn & 1, (sprn - SPR_IBAT0U) / 2); |
334 | 76a66253 | j_mayer | } |
335 | 76a66253 | j_mayer | |
336 | 76a66253 | j_mayer | static void spr_write_601_ubatu (void *opaque, int sprn) |
337 | 76a66253 | j_mayer | { |
338 | 76a66253 | j_mayer | gen_op_store_601_batu((sprn - SPR_IBAT0U) / 2);
|
339 | 76a66253 | j_mayer | } |
340 | 76a66253 | j_mayer | |
341 | 76a66253 | j_mayer | static void spr_write_601_ubatl (void *opaque, int sprn) |
342 | 76a66253 | j_mayer | { |
343 | 76a66253 | j_mayer | gen_op_store_601_batl((sprn - SPR_IBAT0L) / 2);
|
344 | 76a66253 | j_mayer | } |
345 | 76a66253 | j_mayer | #endif
|
346 | 76a66253 | j_mayer | |
347 | 76a66253 | j_mayer | /* PowerPC 40x specific registers */
|
348 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
349 | 76a66253 | j_mayer | static void spr_read_40x_pit (void *opaque, int sprn) |
350 | 76a66253 | j_mayer | { |
351 | 76a66253 | j_mayer | gen_op_load_40x_pit(); |
352 | 76a66253 | j_mayer | } |
353 | 76a66253 | j_mayer | |
354 | 76a66253 | j_mayer | static void spr_write_40x_pit (void *opaque, int sprn) |
355 | 76a66253 | j_mayer | { |
356 | 76a66253 | j_mayer | gen_op_store_40x_pit(); |
357 | 76a66253 | j_mayer | } |
358 | 76a66253 | j_mayer | |
359 | 8ecc7913 | j_mayer | static void spr_write_40x_dbcr0 (void *opaque, int sprn) |
360 | 8ecc7913 | j_mayer | { |
361 | 8ecc7913 | j_mayer | DisasContext *ctx = opaque; |
362 | 8ecc7913 | j_mayer | |
363 | 8ecc7913 | j_mayer | gen_op_store_40x_dbcr0(); |
364 | 8ecc7913 | j_mayer | /* We must stop translation as we may have rebooted */
|
365 | e1833e1f | j_mayer | GEN_STOP(ctx); |
366 | 8ecc7913 | j_mayer | } |
367 | 8ecc7913 | j_mayer | |
368 | c294fc58 | j_mayer | static void spr_write_40x_sler (void *opaque, int sprn) |
369 | c294fc58 | j_mayer | { |
370 | c294fc58 | j_mayer | gen_op_store_40x_sler(); |
371 | c294fc58 | j_mayer | } |
372 | c294fc58 | j_mayer | |
373 | 76a66253 | j_mayer | static void spr_write_booke_tcr (void *opaque, int sprn) |
374 | 76a66253 | j_mayer | { |
375 | 76a66253 | j_mayer | gen_op_store_booke_tcr(); |
376 | 76a66253 | j_mayer | } |
377 | 76a66253 | j_mayer | |
378 | 76a66253 | j_mayer | static void spr_write_booke_tsr (void *opaque, int sprn) |
379 | 76a66253 | j_mayer | { |
380 | 76a66253 | j_mayer | gen_op_store_booke_tsr(); |
381 | 76a66253 | j_mayer | } |
382 | 76a66253 | j_mayer | #endif
|
383 | 76a66253 | j_mayer | |
384 | 76a66253 | j_mayer | /* PowerPC 403 specific registers */
|
385 | 76a66253 | j_mayer | /* PBL1 / PBU1 / PBL2 / PBU2 */
|
386 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
387 | 76a66253 | j_mayer | static void spr_read_403_pbr (void *opaque, int sprn) |
388 | 76a66253 | j_mayer | { |
389 | 76a66253 | j_mayer | gen_op_load_403_pb(sprn - SPR_403_PBL1); |
390 | 76a66253 | j_mayer | } |
391 | 76a66253 | j_mayer | |
392 | 76a66253 | j_mayer | static void spr_write_403_pbr (void *opaque, int sprn) |
393 | 76a66253 | j_mayer | { |
394 | 76a66253 | j_mayer | gen_op_store_403_pb(sprn - SPR_403_PBL1); |
395 | 76a66253 | j_mayer | } |
396 | 76a66253 | j_mayer | |
397 | 3fc6c082 | bellard | static void spr_write_pir (void *opaque, int sprn) |
398 | 3fc6c082 | bellard | { |
399 | 3fc6c082 | bellard | gen_op_store_pir(); |
400 | 3fc6c082 | bellard | } |
401 | 76a66253 | j_mayer | #endif
|
402 | 3fc6c082 | bellard | |
403 | 6f5d427d | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
404 | 6f5d427d | j_mayer | /* Callback used to write the exception vector base */
|
405 | 6f5d427d | j_mayer | static void spr_write_excp_prefix (void *opaque, int sprn) |
406 | 6f5d427d | j_mayer | { |
407 | 6f5d427d | j_mayer | gen_op_store_excp_prefix(); |
408 | 6f5d427d | j_mayer | gen_op_store_spr(sprn); |
409 | 6f5d427d | j_mayer | } |
410 | 6f5d427d | j_mayer | |
411 | 6f5d427d | j_mayer | static void spr_write_excp_vector (void *opaque, int sprn) |
412 | 6f5d427d | j_mayer | { |
413 | 6f5d427d | j_mayer | DisasContext *ctx = opaque; |
414 | 6f5d427d | j_mayer | |
415 | 6f5d427d | j_mayer | if (sprn >= SPR_BOOKE_IVOR0 && sprn <= SPR_BOOKE_IVOR15) {
|
416 | 6f5d427d | j_mayer | gen_op_store_excp_vector(sprn - SPR_BOOKE_IVOR0); |
417 | 6f5d427d | j_mayer | gen_op_store_spr(sprn); |
418 | 6f5d427d | j_mayer | } else if (sprn >= SPR_BOOKE_IVOR32 && sprn <= SPR_BOOKE_IVOR37) { |
419 | 6f5d427d | j_mayer | gen_op_store_excp_vector(sprn - SPR_BOOKE_IVOR32 + 32);
|
420 | 6f5d427d | j_mayer | gen_op_store_spr(sprn); |
421 | 6f5d427d | j_mayer | } else {
|
422 | 6f5d427d | j_mayer | printf("Trying to write an unknown exception vector %d %03x\n",
|
423 | 6f5d427d | j_mayer | sprn, sprn); |
424 | 6f5d427d | j_mayer | GEN_EXCP_PRIVREG(ctx); |
425 | 6f5d427d | j_mayer | } |
426 | 6f5d427d | j_mayer | } |
427 | 6f5d427d | j_mayer | #endif
|
428 | 6f5d427d | j_mayer | |
429 | 76a66253 | j_mayer | #if defined(CONFIG_USER_ONLY)
|
430 | 76a66253 | j_mayer | #define spr_register(env, num, name, uea_read, uea_write, \
|
431 | 76a66253 | j_mayer | oea_read, oea_write, initial_value) \ |
432 | 76a66253 | j_mayer | do { \
|
433 | 76a66253 | j_mayer | _spr_register(env, num, name, uea_read, uea_write, initial_value); \ |
434 | 76a66253 | j_mayer | } while (0) |
435 | 76a66253 | j_mayer | static inline void _spr_register (CPUPPCState *env, int num, |
436 | 76a66253 | j_mayer | const unsigned char *name, |
437 | 76a66253 | j_mayer | void (*uea_read)(void *opaque, int sprn), |
438 | 76a66253 | j_mayer | void (*uea_write)(void *opaque, int sprn), |
439 | 76a66253 | j_mayer | target_ulong initial_value) |
440 | 76a66253 | j_mayer | #else
|
441 | 3fc6c082 | bellard | static inline void spr_register (CPUPPCState *env, int num, |
442 | 3fc6c082 | bellard | const unsigned char *name, |
443 | 3fc6c082 | bellard | void (*uea_read)(void *opaque, int sprn), |
444 | 3fc6c082 | bellard | void (*uea_write)(void *opaque, int sprn), |
445 | 3fc6c082 | bellard | void (*oea_read)(void *opaque, int sprn), |
446 | 3fc6c082 | bellard | void (*oea_write)(void *opaque, int sprn), |
447 | 3fc6c082 | bellard | target_ulong initial_value) |
448 | 76a66253 | j_mayer | #endif
|
449 | 3fc6c082 | bellard | { |
450 | 3fc6c082 | bellard | ppc_spr_t *spr; |
451 | 3fc6c082 | bellard | |
452 | 3fc6c082 | bellard | spr = &env->spr_cb[num]; |
453 | 3fc6c082 | bellard | if (spr->name != NULL ||env-> spr[num] != 0x00000000 || |
454 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
455 | 76a66253 | j_mayer | spr->oea_read != NULL || spr->oea_write != NULL || |
456 | 76a66253 | j_mayer | #endif
|
457 | 76a66253 | j_mayer | spr->uea_read != NULL || spr->uea_write != NULL) { |
458 | 3fc6c082 | bellard | printf("Error: Trying to register SPR %d (%03x) twice !\n", num, num);
|
459 | 3fc6c082 | bellard | exit(1);
|
460 | 3fc6c082 | bellard | } |
461 | 3fc6c082 | bellard | #if defined(PPC_DEBUG_SPR)
|
462 | 1b9eb036 | j_mayer | printf("*** register spr %d (%03x) %s val " ADDRX "\n", num, num, name, |
463 | 76a66253 | j_mayer | initial_value); |
464 | 3fc6c082 | bellard | #endif
|
465 | 3fc6c082 | bellard | spr->name = name; |
466 | 3fc6c082 | bellard | spr->uea_read = uea_read; |
467 | 3fc6c082 | bellard | spr->uea_write = uea_write; |
468 | 76a66253 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
469 | 3fc6c082 | bellard | spr->oea_read = oea_read; |
470 | 3fc6c082 | bellard | spr->oea_write = oea_write; |
471 | 76a66253 | j_mayer | #endif
|
472 | 3fc6c082 | bellard | env->spr[num] = initial_value; |
473 | 3fc6c082 | bellard | } |
474 | 3fc6c082 | bellard | |
475 | 3fc6c082 | bellard | /* Generic PowerPC SPRs */
|
476 | 3fc6c082 | bellard | static void gen_spr_generic (CPUPPCState *env) |
477 | 3fc6c082 | bellard | { |
478 | 3fc6c082 | bellard | /* Integer processing */
|
479 | 3fc6c082 | bellard | spr_register(env, SPR_XER, "XER",
|
480 | 3fc6c082 | bellard | &spr_read_xer, &spr_write_xer, |
481 | 3fc6c082 | bellard | &spr_read_xer, &spr_write_xer, |
482 | 3fc6c082 | bellard | 0x00000000);
|
483 | 3fc6c082 | bellard | /* Branch contol */
|
484 | 3fc6c082 | bellard | spr_register(env, SPR_LR, "LR",
|
485 | 3fc6c082 | bellard | &spr_read_lr, &spr_write_lr, |
486 | 3fc6c082 | bellard | &spr_read_lr, &spr_write_lr, |
487 | 3fc6c082 | bellard | 0x00000000);
|
488 | 3fc6c082 | bellard | spr_register(env, SPR_CTR, "CTR",
|
489 | 3fc6c082 | bellard | &spr_read_ctr, &spr_write_ctr, |
490 | 3fc6c082 | bellard | &spr_read_ctr, &spr_write_ctr, |
491 | 3fc6c082 | bellard | 0x00000000);
|
492 | 3fc6c082 | bellard | /* Interrupt processing */
|
493 | 3fc6c082 | bellard | spr_register(env, SPR_SRR0, "SRR0",
|
494 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
495 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
496 | 3fc6c082 | bellard | 0x00000000);
|
497 | 3fc6c082 | bellard | spr_register(env, SPR_SRR1, "SRR1",
|
498 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
499 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
500 | 3fc6c082 | bellard | 0x00000000);
|
501 | 3fc6c082 | bellard | /* Processor control */
|
502 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG0, "SPRG0",
|
503 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
504 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
505 | 3fc6c082 | bellard | 0x00000000);
|
506 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG1, "SPRG1",
|
507 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
508 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
509 | 3fc6c082 | bellard | 0x00000000);
|
510 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG2, "SPRG2",
|
511 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
512 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
513 | 3fc6c082 | bellard | 0x00000000);
|
514 | 3fc6c082 | bellard | spr_register(env, SPR_SPRG3, "SPRG3",
|
515 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
516 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
517 | 3fc6c082 | bellard | 0x00000000);
|
518 | 3fc6c082 | bellard | } |
519 | 3fc6c082 | bellard | |
520 | 3fc6c082 | bellard | /* SPR common to all non-embedded PowerPC, including 601 */
|
521 | 3fc6c082 | bellard | static void gen_spr_ne_601 (CPUPPCState *env) |
522 | 3fc6c082 | bellard | { |
523 | 3fc6c082 | bellard | /* Exception processing */
|
524 | 3fc6c082 | bellard | spr_register(env, SPR_DSISR, "DSISR",
|
525 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
526 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
527 | 3fc6c082 | bellard | 0x00000000);
|
528 | 3fc6c082 | bellard | spr_register(env, SPR_DAR, "DAR",
|
529 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
530 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
531 | 3fc6c082 | bellard | 0x00000000);
|
532 | 3fc6c082 | bellard | /* Timer */
|
533 | 3fc6c082 | bellard | spr_register(env, SPR_DECR, "DECR",
|
534 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
535 | 3fc6c082 | bellard | &spr_read_decr, &spr_write_decr, |
536 | 3fc6c082 | bellard | 0x00000000);
|
537 | 3fc6c082 | bellard | /* Memory management */
|
538 | 3fc6c082 | bellard | spr_register(env, SPR_SDR1, "SDR1",
|
539 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
540 | 3fc6c082 | bellard | &spr_read_sdr1, &spr_write_sdr1, |
541 | 3fc6c082 | bellard | 0x00000000);
|
542 | 3fc6c082 | bellard | } |
543 | 3fc6c082 | bellard | |
544 | 3fc6c082 | bellard | /* BATs 0-3 */
|
545 | 3fc6c082 | bellard | static void gen_low_BATs (CPUPPCState *env) |
546 | 3fc6c082 | bellard | { |
547 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
548 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT0U, "IBAT0U",
|
549 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
550 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
551 | 3fc6c082 | bellard | 0x00000000);
|
552 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT0L, "IBAT0L",
|
553 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
554 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
555 | 3fc6c082 | bellard | 0x00000000);
|
556 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT1U, "IBAT1U",
|
557 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
558 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
559 | 3fc6c082 | bellard | 0x00000000);
|
560 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT1L, "IBAT1L",
|
561 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
562 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
563 | 3fc6c082 | bellard | 0x00000000);
|
564 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT2U, "IBAT2U",
|
565 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
566 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
567 | 3fc6c082 | bellard | 0x00000000);
|
568 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT2L, "IBAT2L",
|
569 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
570 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
571 | 3fc6c082 | bellard | 0x00000000);
|
572 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT3U, "IBAT3U",
|
573 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
574 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatu, |
575 | 3fc6c082 | bellard | 0x00000000);
|
576 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT3L, "IBAT3L",
|
577 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
578 | 3fc6c082 | bellard | &spr_read_ibat, &spr_write_ibatl, |
579 | 3fc6c082 | bellard | 0x00000000);
|
580 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT0U, "DBAT0U",
|
581 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
582 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
583 | 3fc6c082 | bellard | 0x00000000);
|
584 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT0L, "DBAT0L",
|
585 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
586 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
587 | 3fc6c082 | bellard | 0x00000000);
|
588 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT1U, "DBAT1U",
|
589 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
590 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
591 | 3fc6c082 | bellard | 0x00000000);
|
592 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT1L, "DBAT1L",
|
593 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
594 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
595 | 3fc6c082 | bellard | 0x00000000);
|
596 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT2U, "DBAT2U",
|
597 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
598 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
599 | 3fc6c082 | bellard | 0x00000000);
|
600 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT2L, "DBAT2L",
|
601 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
602 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
603 | 3fc6c082 | bellard | 0x00000000);
|
604 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT3U, "DBAT3U",
|
605 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
606 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatu, |
607 | 3fc6c082 | bellard | 0x00000000);
|
608 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT3L, "DBAT3L",
|
609 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
610 | 3fc6c082 | bellard | &spr_read_dbat, &spr_write_dbatl, |
611 | 3fc6c082 | bellard | 0x00000000);
|
612 | a750fc0b | j_mayer | env->nb_BATs += 4;
|
613 | f2e63a42 | j_mayer | #endif
|
614 | 3fc6c082 | bellard | } |
615 | 3fc6c082 | bellard | |
616 | 3fc6c082 | bellard | /* BATs 4-7 */
|
617 | 3fc6c082 | bellard | static void gen_high_BATs (CPUPPCState *env) |
618 | 3fc6c082 | bellard | { |
619 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
620 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT4U, "IBAT4U",
|
621 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
622 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
623 | 3fc6c082 | bellard | 0x00000000);
|
624 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT4L, "IBAT4L",
|
625 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
626 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
627 | 3fc6c082 | bellard | 0x00000000);
|
628 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT5U, "IBAT5U",
|
629 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
630 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
631 | 3fc6c082 | bellard | 0x00000000);
|
632 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT5L, "IBAT5L",
|
633 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
634 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
635 | 3fc6c082 | bellard | 0x00000000);
|
636 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT6U, "IBAT6U",
|
637 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
638 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
639 | 3fc6c082 | bellard | 0x00000000);
|
640 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT6L, "IBAT6L",
|
641 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
642 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
643 | 3fc6c082 | bellard | 0x00000000);
|
644 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT7U, "IBAT7U",
|
645 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
646 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatu_h, |
647 | 3fc6c082 | bellard | 0x00000000);
|
648 | 3fc6c082 | bellard | spr_register(env, SPR_IBAT7L, "IBAT7L",
|
649 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
650 | 3fc6c082 | bellard | &spr_read_ibat_h, &spr_write_ibatl_h, |
651 | 3fc6c082 | bellard | 0x00000000);
|
652 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT4U, "DBAT4U",
|
653 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
654 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
655 | 3fc6c082 | bellard | 0x00000000);
|
656 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT4L, "DBAT4L",
|
657 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
658 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
659 | 3fc6c082 | bellard | 0x00000000);
|
660 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT5U, "DBAT5U",
|
661 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
662 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
663 | 3fc6c082 | bellard | 0x00000000);
|
664 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT5L, "DBAT5L",
|
665 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
666 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
667 | 3fc6c082 | bellard | 0x00000000);
|
668 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT6U, "DBAT6U",
|
669 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
670 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
671 | 3fc6c082 | bellard | 0x00000000);
|
672 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT6L, "DBAT6L",
|
673 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
674 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
675 | 3fc6c082 | bellard | 0x00000000);
|
676 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT7U, "DBAT7U",
|
677 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
678 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatu_h, |
679 | 3fc6c082 | bellard | 0x00000000);
|
680 | 3fc6c082 | bellard | spr_register(env, SPR_DBAT7L, "DBAT7L",
|
681 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
682 | 3fc6c082 | bellard | &spr_read_dbat_h, &spr_write_dbatl_h, |
683 | 3fc6c082 | bellard | 0x00000000);
|
684 | a750fc0b | j_mayer | env->nb_BATs += 4;
|
685 | f2e63a42 | j_mayer | #endif
|
686 | 3fc6c082 | bellard | } |
687 | 3fc6c082 | bellard | |
688 | 3fc6c082 | bellard | /* Generic PowerPC time base */
|
689 | 3fc6c082 | bellard | static void gen_tbl (CPUPPCState *env) |
690 | 3fc6c082 | bellard | { |
691 | 3fc6c082 | bellard | spr_register(env, SPR_VTBL, "TBL",
|
692 | 3fc6c082 | bellard | &spr_read_tbl, SPR_NOACCESS, |
693 | 3fc6c082 | bellard | &spr_read_tbl, SPR_NOACCESS, |
694 | 3fc6c082 | bellard | 0x00000000);
|
695 | 3fc6c082 | bellard | spr_register(env, SPR_TBL, "TBL",
|
696 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
697 | 3fc6c082 | bellard | SPR_NOACCESS, &spr_write_tbl, |
698 | 3fc6c082 | bellard | 0x00000000);
|
699 | 3fc6c082 | bellard | spr_register(env, SPR_VTBU, "TBU",
|
700 | 3fc6c082 | bellard | &spr_read_tbu, SPR_NOACCESS, |
701 | 3fc6c082 | bellard | &spr_read_tbu, SPR_NOACCESS, |
702 | 3fc6c082 | bellard | 0x00000000);
|
703 | 3fc6c082 | bellard | spr_register(env, SPR_TBU, "TBU",
|
704 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
705 | 3fc6c082 | bellard | SPR_NOACCESS, &spr_write_tbu, |
706 | 3fc6c082 | bellard | 0x00000000);
|
707 | 3fc6c082 | bellard | } |
708 | 3fc6c082 | bellard | |
709 | 76a66253 | j_mayer | /* Softare table search registers */
|
710 | 76a66253 | j_mayer | static void gen_6xx_7xx_soft_tlb (CPUPPCState *env, int nb_tlbs, int nb_ways) |
711 | 76a66253 | j_mayer | { |
712 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
713 | 76a66253 | j_mayer | env->nb_tlb = nb_tlbs; |
714 | 76a66253 | j_mayer | env->nb_ways = nb_ways; |
715 | 76a66253 | j_mayer | env->id_tlbs = 1;
|
716 | 76a66253 | j_mayer | spr_register(env, SPR_DMISS, "DMISS",
|
717 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
718 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
719 | 76a66253 | j_mayer | 0x00000000);
|
720 | 76a66253 | j_mayer | spr_register(env, SPR_DCMP, "DCMP",
|
721 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
722 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
723 | 76a66253 | j_mayer | 0x00000000);
|
724 | 76a66253 | j_mayer | spr_register(env, SPR_HASH1, "HASH1",
|
725 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
726 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
727 | 76a66253 | j_mayer | 0x00000000);
|
728 | 76a66253 | j_mayer | spr_register(env, SPR_HASH2, "HASH2",
|
729 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
730 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
731 | 76a66253 | j_mayer | 0x00000000);
|
732 | 76a66253 | j_mayer | spr_register(env, SPR_IMISS, "IMISS",
|
733 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
734 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
735 | 76a66253 | j_mayer | 0x00000000);
|
736 | 76a66253 | j_mayer | spr_register(env, SPR_ICMP, "ICMP",
|
737 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
738 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
739 | 76a66253 | j_mayer | 0x00000000);
|
740 | 76a66253 | j_mayer | spr_register(env, SPR_RPA, "RPA",
|
741 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
742 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
743 | 76a66253 | j_mayer | 0x00000000);
|
744 | f2e63a42 | j_mayer | #endif
|
745 | 76a66253 | j_mayer | } |
746 | 76a66253 | j_mayer | |
747 | 76a66253 | j_mayer | /* SPR common to MPC755 and G2 */
|
748 | 76a66253 | j_mayer | static void gen_spr_G2_755 (CPUPPCState *env) |
749 | 76a66253 | j_mayer | { |
750 | 76a66253 | j_mayer | /* SGPRs */
|
751 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
752 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
753 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
754 | 76a66253 | j_mayer | 0x00000000);
|
755 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
756 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
757 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
758 | 76a66253 | j_mayer | 0x00000000);
|
759 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
760 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
761 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
762 | 76a66253 | j_mayer | 0x00000000);
|
763 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
764 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
765 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
766 | 76a66253 | j_mayer | 0x00000000);
|
767 | 76a66253 | j_mayer | } |
768 | 76a66253 | j_mayer | |
769 | 3fc6c082 | bellard | /* SPR common to all 7xx PowerPC implementations */
|
770 | 3fc6c082 | bellard | static void gen_spr_7xx (CPUPPCState *env) |
771 | 3fc6c082 | bellard | { |
772 | 3fc6c082 | bellard | /* Breakpoints */
|
773 | 3fc6c082 | bellard | /* XXX : not implemented */
|
774 | 3fc6c082 | bellard | spr_register(env, SPR_DABR, "DABR",
|
775 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
776 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
777 | 3fc6c082 | bellard | 0x00000000);
|
778 | 3fc6c082 | bellard | /* XXX : not implemented */
|
779 | 3fc6c082 | bellard | spr_register(env, SPR_IABR, "IABR",
|
780 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
781 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
782 | 3fc6c082 | bellard | 0x00000000);
|
783 | 3fc6c082 | bellard | /* Cache management */
|
784 | 3fc6c082 | bellard | /* XXX : not implemented */
|
785 | 3fc6c082 | bellard | spr_register(env, SPR_ICTC, "ICTC",
|
786 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
787 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
788 | 3fc6c082 | bellard | 0x00000000);
|
789 | 3fc6c082 | bellard | /* Performance monitors */
|
790 | 3fc6c082 | bellard | /* XXX : not implemented */
|
791 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR0, "MMCR0",
|
792 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
793 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
794 | 3fc6c082 | bellard | 0x00000000);
|
795 | 3fc6c082 | bellard | /* XXX : not implemented */
|
796 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR1, "MMCR1",
|
797 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
798 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
799 | 3fc6c082 | bellard | 0x00000000);
|
800 | 3fc6c082 | bellard | /* XXX : not implemented */
|
801 | 3fc6c082 | bellard | spr_register(env, SPR_PMC1, "PMC1",
|
802 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
803 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
804 | 3fc6c082 | bellard | 0x00000000);
|
805 | 3fc6c082 | bellard | /* XXX : not implemented */
|
806 | 3fc6c082 | bellard | spr_register(env, SPR_PMC2, "PMC2",
|
807 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
808 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
809 | 3fc6c082 | bellard | 0x00000000);
|
810 | 3fc6c082 | bellard | /* XXX : not implemented */
|
811 | 3fc6c082 | bellard | spr_register(env, SPR_PMC3, "PMC3",
|
812 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
813 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
814 | 3fc6c082 | bellard | 0x00000000);
|
815 | 3fc6c082 | bellard | /* XXX : not implemented */
|
816 | 3fc6c082 | bellard | spr_register(env, SPR_PMC4, "PMC4",
|
817 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
818 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
819 | 3fc6c082 | bellard | 0x00000000);
|
820 | 3fc6c082 | bellard | /* XXX : not implemented */
|
821 | a750fc0b | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
822 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
823 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
824 | 3fc6c082 | bellard | 0x00000000);
|
825 | 578bb252 | j_mayer | /* XXX : not implemented */
|
826 | 3fc6c082 | bellard | spr_register(env, SPR_UMMCR0, "UMMCR0",
|
827 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
828 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
829 | 3fc6c082 | bellard | 0x00000000);
|
830 | 578bb252 | j_mayer | /* XXX : not implemented */
|
831 | 3fc6c082 | bellard | spr_register(env, SPR_UMMCR1, "UMMCR1",
|
832 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
833 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
834 | 3fc6c082 | bellard | 0x00000000);
|
835 | 578bb252 | j_mayer | /* XXX : not implemented */
|
836 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC1, "UPMC1",
|
837 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
838 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
839 | 3fc6c082 | bellard | 0x00000000);
|
840 | 578bb252 | j_mayer | /* XXX : not implemented */
|
841 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC2, "UPMC2",
|
842 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
843 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
844 | 3fc6c082 | bellard | 0x00000000);
|
845 | 578bb252 | j_mayer | /* XXX : not implemented */
|
846 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC3, "UPMC3",
|
847 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
848 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
849 | 3fc6c082 | bellard | 0x00000000);
|
850 | 578bb252 | j_mayer | /* XXX : not implemented */
|
851 | 3fc6c082 | bellard | spr_register(env, SPR_UPMC4, "UPMC4",
|
852 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
853 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
854 | 3fc6c082 | bellard | 0x00000000);
|
855 | 578bb252 | j_mayer | /* XXX : not implemented */
|
856 | a750fc0b | j_mayer | spr_register(env, SPR_USIAR, "USIAR",
|
857 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
858 | 3fc6c082 | bellard | &spr_read_ureg, SPR_NOACCESS, |
859 | 3fc6c082 | bellard | 0x00000000);
|
860 | a750fc0b | j_mayer | /* External access control */
|
861 | 3fc6c082 | bellard | /* XXX : not implemented */
|
862 | a750fc0b | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
863 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
864 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
865 | 3fc6c082 | bellard | 0x00000000);
|
866 | a750fc0b | j_mayer | } |
867 | a750fc0b | j_mayer | |
868 | a750fc0b | j_mayer | static void gen_spr_thrm (CPUPPCState *env) |
869 | a750fc0b | j_mayer | { |
870 | a750fc0b | j_mayer | /* Thermal management */
|
871 | 3fc6c082 | bellard | /* XXX : not implemented */
|
872 | a750fc0b | j_mayer | spr_register(env, SPR_THRM1, "THRM1",
|
873 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
874 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
875 | 3fc6c082 | bellard | 0x00000000);
|
876 | 3fc6c082 | bellard | /* XXX : not implemented */
|
877 | a750fc0b | j_mayer | spr_register(env, SPR_THRM2, "THRM2",
|
878 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
879 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
880 | 3fc6c082 | bellard | 0x00000000);
|
881 | 3fc6c082 | bellard | /* XXX : not implemented */
|
882 | a750fc0b | j_mayer | spr_register(env, SPR_THRM3, "THRM3",
|
883 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
884 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
885 | 3fc6c082 | bellard | 0x00000000);
|
886 | 3fc6c082 | bellard | } |
887 | 3fc6c082 | bellard | |
888 | 3fc6c082 | bellard | /* SPR specific to PowerPC 604 implementation */
|
889 | 3fc6c082 | bellard | static void gen_spr_604 (CPUPPCState *env) |
890 | 3fc6c082 | bellard | { |
891 | 3fc6c082 | bellard | /* Processor identification */
|
892 | 3fc6c082 | bellard | spr_register(env, SPR_PIR, "PIR",
|
893 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
894 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_pir, |
895 | 3fc6c082 | bellard | 0x00000000);
|
896 | 3fc6c082 | bellard | /* Breakpoints */
|
897 | 3fc6c082 | bellard | /* XXX : not implemented */
|
898 | 3fc6c082 | bellard | spr_register(env, SPR_IABR, "IABR",
|
899 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
900 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
901 | 3fc6c082 | bellard | 0x00000000);
|
902 | 3fc6c082 | bellard | /* XXX : not implemented */
|
903 | 3fc6c082 | bellard | spr_register(env, SPR_DABR, "DABR",
|
904 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
905 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
906 | 3fc6c082 | bellard | 0x00000000);
|
907 | 3fc6c082 | bellard | /* Performance counters */
|
908 | 3fc6c082 | bellard | /* XXX : not implemented */
|
909 | 3fc6c082 | bellard | spr_register(env, SPR_MMCR0, "MMCR0",
|
910 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
911 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
912 | 3fc6c082 | bellard | 0x00000000);
|
913 | 3fc6c082 | bellard | /* XXX : not implemented */
|
914 | 3fc6c082 | bellard | spr_register(env, SPR_PMC1, "PMC1",
|
915 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
916 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
917 | 3fc6c082 | bellard | 0x00000000);
|
918 | 3fc6c082 | bellard | /* XXX : not implemented */
|
919 | 3fc6c082 | bellard | spr_register(env, SPR_PMC2, "PMC2",
|
920 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
921 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
922 | 3fc6c082 | bellard | 0x00000000);
|
923 | 3fc6c082 | bellard | /* XXX : not implemented */
|
924 | a750fc0b | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
925 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
926 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
927 | 3fc6c082 | bellard | 0x00000000);
|
928 | 3fc6c082 | bellard | /* XXX : not implemented */
|
929 | 3fc6c082 | bellard | spr_register(env, SPR_SDA, "SDA",
|
930 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
931 | 3fc6c082 | bellard | &spr_read_generic, SPR_NOACCESS, |
932 | 3fc6c082 | bellard | 0x00000000);
|
933 | 3fc6c082 | bellard | /* External access control */
|
934 | 3fc6c082 | bellard | /* XXX : not implemented */
|
935 | 3fc6c082 | bellard | spr_register(env, SPR_EAR, "EAR",
|
936 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
937 | 3fc6c082 | bellard | &spr_read_generic, &spr_write_generic, |
938 | 3fc6c082 | bellard | 0x00000000);
|
939 | 3fc6c082 | bellard | } |
940 | 3fc6c082 | bellard | |
941 | 76a66253 | j_mayer | /* SPR specific to PowerPC 603 implementation */
|
942 | 76a66253 | j_mayer | static void gen_spr_603 (CPUPPCState *env) |
943 | 3fc6c082 | bellard | { |
944 | 76a66253 | j_mayer | /* External access control */
|
945 | 76a66253 | j_mayer | /* XXX : not implemented */
|
946 | 76a66253 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
947 | 3fc6c082 | bellard | SPR_NOACCESS, SPR_NOACCESS, |
948 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
949 | 76a66253 | j_mayer | 0x00000000);
|
950 | 3fc6c082 | bellard | } |
951 | 3fc6c082 | bellard | |
952 | 76a66253 | j_mayer | /* SPR specific to PowerPC G2 implementation */
|
953 | 76a66253 | j_mayer | static void gen_spr_G2 (CPUPPCState *env) |
954 | 3fc6c082 | bellard | { |
955 | 76a66253 | j_mayer | /* Memory base address */
|
956 | 76a66253 | j_mayer | /* MBAR */
|
957 | 578bb252 | j_mayer | /* XXX : not implemented */
|
958 | 76a66253 | j_mayer | spr_register(env, SPR_MBAR, "MBAR",
|
959 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
960 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
961 | 76a66253 | j_mayer | 0x00000000);
|
962 | 76a66253 | j_mayer | /* Exception processing */
|
963 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR0, "CSRR0",
|
964 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
965 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
966 | 76a66253 | j_mayer | 0x00000000);
|
967 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR1, "CSRR1",
|
968 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
969 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
970 | 76a66253 | j_mayer | 0x00000000);
|
971 | 76a66253 | j_mayer | /* Breakpoints */
|
972 | 76a66253 | j_mayer | /* XXX : not implemented */
|
973 | 76a66253 | j_mayer | spr_register(env, SPR_DABR, "DABR",
|
974 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
975 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
976 | 76a66253 | j_mayer | 0x00000000);
|
977 | 76a66253 | j_mayer | /* XXX : not implemented */
|
978 | 76a66253 | j_mayer | spr_register(env, SPR_DABR2, "DABR2",
|
979 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
980 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
981 | 76a66253 | j_mayer | 0x00000000);
|
982 | 76a66253 | j_mayer | /* XXX : not implemented */
|
983 | 76a66253 | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
984 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
985 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
986 | 76a66253 | j_mayer | 0x00000000);
|
987 | 76a66253 | j_mayer | /* XXX : not implemented */
|
988 | 76a66253 | j_mayer | spr_register(env, SPR_IABR2, "IABR2",
|
989 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
990 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
991 | 76a66253 | j_mayer | 0x00000000);
|
992 | 76a66253 | j_mayer | /* XXX : not implemented */
|
993 | 76a66253 | j_mayer | spr_register(env, SPR_IBCR, "IBCR",
|
994 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
995 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
996 | 76a66253 | j_mayer | 0x00000000);
|
997 | 76a66253 | j_mayer | /* XXX : not implemented */
|
998 | 76a66253 | j_mayer | spr_register(env, SPR_DBCR, "DBCR",
|
999 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1000 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1001 | 76a66253 | j_mayer | 0x00000000);
|
1002 | 76a66253 | j_mayer | } |
1003 | 76a66253 | j_mayer | |
1004 | 76a66253 | j_mayer | /* SPR specific to PowerPC 602 implementation */
|
1005 | 76a66253 | j_mayer | static void gen_spr_602 (CPUPPCState *env) |
1006 | 76a66253 | j_mayer | { |
1007 | 76a66253 | j_mayer | /* ESA registers */
|
1008 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1009 | 76a66253 | j_mayer | spr_register(env, SPR_SER, "SER",
|
1010 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1011 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1012 | 76a66253 | j_mayer | 0x00000000);
|
1013 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1014 | 76a66253 | j_mayer | spr_register(env, SPR_SEBR, "SEBR",
|
1015 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1016 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1017 | 76a66253 | j_mayer | 0x00000000);
|
1018 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1019 | a750fc0b | j_mayer | spr_register(env, SPR_ESASRR, "ESASRR",
|
1020 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1021 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1022 | 76a66253 | j_mayer | 0x00000000);
|
1023 | 76a66253 | j_mayer | /* Floating point status */
|
1024 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1025 | 76a66253 | j_mayer | spr_register(env, SPR_SP, "SP",
|
1026 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1027 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1028 | 76a66253 | j_mayer | 0x00000000);
|
1029 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1030 | 76a66253 | j_mayer | spr_register(env, SPR_LT, "LT",
|
1031 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1032 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1033 | 76a66253 | j_mayer | 0x00000000);
|
1034 | 76a66253 | j_mayer | /* Watchdog timer */
|
1035 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1036 | 76a66253 | j_mayer | spr_register(env, SPR_TCR, "TCR",
|
1037 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1038 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1039 | 76a66253 | j_mayer | 0x00000000);
|
1040 | 76a66253 | j_mayer | /* Interrupt base */
|
1041 | 76a66253 | j_mayer | spr_register(env, SPR_IBR, "IBR",
|
1042 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1043 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1044 | 76a66253 | j_mayer | 0x00000000);
|
1045 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1046 | a750fc0b | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
1047 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1048 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1049 | a750fc0b | j_mayer | 0x00000000);
|
1050 | 76a66253 | j_mayer | } |
1051 | 76a66253 | j_mayer | |
1052 | 76a66253 | j_mayer | /* SPR specific to PowerPC 601 implementation */
|
1053 | 76a66253 | j_mayer | static void gen_spr_601 (CPUPPCState *env) |
1054 | 76a66253 | j_mayer | { |
1055 | 76a66253 | j_mayer | /* Multiplication/division register */
|
1056 | 76a66253 | j_mayer | /* MQ */
|
1057 | 76a66253 | j_mayer | spr_register(env, SPR_MQ, "MQ",
|
1058 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1059 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1060 | 76a66253 | j_mayer | 0x00000000);
|
1061 | 76a66253 | j_mayer | /* RTC registers */
|
1062 | 76a66253 | j_mayer | spr_register(env, SPR_601_RTCU, "RTCU",
|
1063 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1064 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_601_rtcu, |
1065 | 76a66253 | j_mayer | 0x00000000);
|
1066 | 76a66253 | j_mayer | spr_register(env, SPR_601_VRTCU, "RTCU",
|
1067 | 76a66253 | j_mayer | &spr_read_601_rtcu, SPR_NOACCESS, |
1068 | 76a66253 | j_mayer | &spr_read_601_rtcu, SPR_NOACCESS, |
1069 | 76a66253 | j_mayer | 0x00000000);
|
1070 | 76a66253 | j_mayer | spr_register(env, SPR_601_RTCL, "RTCL",
|
1071 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1072 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_601_rtcl, |
1073 | 76a66253 | j_mayer | 0x00000000);
|
1074 | 76a66253 | j_mayer | spr_register(env, SPR_601_VRTCL, "RTCL",
|
1075 | 76a66253 | j_mayer | &spr_read_601_rtcl, SPR_NOACCESS, |
1076 | 76a66253 | j_mayer | &spr_read_601_rtcl, SPR_NOACCESS, |
1077 | 76a66253 | j_mayer | 0x00000000);
|
1078 | 76a66253 | j_mayer | /* Timer */
|
1079 | 76a66253 | j_mayer | #if 0 /* ? */
|
1080 | 76a66253 | j_mayer | spr_register(env, SPR_601_UDECR, "UDECR",
|
1081 | 76a66253 | j_mayer | &spr_read_decr, SPR_NOACCESS,
|
1082 | 76a66253 | j_mayer | &spr_read_decr, SPR_NOACCESS,
|
1083 | 76a66253 | j_mayer | 0x00000000);
|
1084 | 76a66253 | j_mayer | #endif
|
1085 | 76a66253 | j_mayer | /* External access control */
|
1086 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1087 | 76a66253 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
1088 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1089 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1090 | 76a66253 | j_mayer | 0x00000000);
|
1091 | 76a66253 | j_mayer | /* Memory management */
|
1092 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1093 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT0U, "IBAT0U",
|
1094 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1095 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1096 | 76a66253 | j_mayer | 0x00000000);
|
1097 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT0L, "IBAT0L",
|
1098 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1099 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1100 | 76a66253 | j_mayer | 0x00000000);
|
1101 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT1U, "IBAT1U",
|
1102 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1103 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1104 | 76a66253 | j_mayer | 0x00000000);
|
1105 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT1L, "IBAT1L",
|
1106 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1107 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1108 | 76a66253 | j_mayer | 0x00000000);
|
1109 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT2U, "IBAT2U",
|
1110 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1111 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1112 | 76a66253 | j_mayer | 0x00000000);
|
1113 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT2L, "IBAT2L",
|
1114 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1115 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1116 | 76a66253 | j_mayer | 0x00000000);
|
1117 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT3U, "IBAT3U",
|
1118 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1119 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatu, |
1120 | 76a66253 | j_mayer | 0x00000000);
|
1121 | 76a66253 | j_mayer | spr_register(env, SPR_IBAT3L, "IBAT3L",
|
1122 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1123 | 76a66253 | j_mayer | &spr_read_601_ubat, &spr_write_601_ubatl, |
1124 | 76a66253 | j_mayer | 0x00000000);
|
1125 | a750fc0b | j_mayer | env->nb_BATs = 4;
|
1126 | f2e63a42 | j_mayer | #endif
|
1127 | a750fc0b | j_mayer | } |
1128 | a750fc0b | j_mayer | |
1129 | a750fc0b | j_mayer | static void gen_spr_74xx (CPUPPCState *env) |
1130 | a750fc0b | j_mayer | { |
1131 | a750fc0b | j_mayer | /* Processor identification */
|
1132 | a750fc0b | j_mayer | spr_register(env, SPR_PIR, "PIR",
|
1133 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1134 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_pir, |
1135 | a750fc0b | j_mayer | 0x00000000);
|
1136 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1137 | a750fc0b | j_mayer | spr_register(env, SPR_MMCR2, "MMCR2",
|
1138 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1139 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1140 | a750fc0b | j_mayer | 0x00000000);
|
1141 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1142 | a750fc0b | j_mayer | spr_register(env, SPR_UMMCR2, "UMMCR2",
|
1143 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1144 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1145 | a750fc0b | j_mayer | 0x00000000);
|
1146 | a750fc0b | j_mayer | /* XXX: not implemented */
|
1147 | a750fc0b | j_mayer | spr_register(env, SPR_BAMR, "BAMR",
|
1148 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1149 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1150 | a750fc0b | j_mayer | 0x00000000);
|
1151 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1152 | a750fc0b | j_mayer | spr_register(env, SPR_MSSCR0, "MSSCR0",
|
1153 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1154 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1155 | a750fc0b | j_mayer | 0x00000000);
|
1156 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
1157 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1158 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
1159 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1160 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1161 | a750fc0b | j_mayer | 0x00000000);
|
1162 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1163 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
1164 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1165 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1166 | a750fc0b | j_mayer | 0x00000000);
|
1167 | a750fc0b | j_mayer | /* Altivec */
|
1168 | a750fc0b | j_mayer | spr_register(env, SPR_VRSAVE, "VRSAVE",
|
1169 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1170 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1171 | a750fc0b | j_mayer | 0x00000000);
|
1172 | bd928eba | j_mayer | /* XXX : not implemented */
|
1173 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
1174 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1175 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
1176 | bd928eba | j_mayer | 0x00000000);
|
1177 | a750fc0b | j_mayer | } |
1178 | a750fc0b | j_mayer | |
1179 | a750fc0b | j_mayer | static void gen_l3_ctrl (CPUPPCState *env) |
1180 | a750fc0b | j_mayer | { |
1181 | a750fc0b | j_mayer | /* L3CR */
|
1182 | a750fc0b | j_mayer | /* XXX : not implemented */
|
1183 | a750fc0b | j_mayer | spr_register(env, SPR_L3CR, "L3CR",
|
1184 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1185 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1186 | a750fc0b | j_mayer | 0x00000000);
|
1187 | a750fc0b | j_mayer | /* L3ITCR0 */
|
1188 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1189 | a750fc0b | j_mayer | spr_register(env, SPR_L3ITCR0, "L3ITCR0",
|
1190 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1191 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1192 | a750fc0b | j_mayer | 0x00000000);
|
1193 | a750fc0b | j_mayer | /* L3PM */
|
1194 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1195 | a750fc0b | j_mayer | spr_register(env, SPR_L3PM, "L3PM",
|
1196 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1197 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1198 | a750fc0b | j_mayer | 0x00000000);
|
1199 | a750fc0b | j_mayer | } |
1200 | a750fc0b | j_mayer | |
1201 | 578bb252 | j_mayer | static void gen_74xx_soft_tlb (CPUPPCState *env, int nb_tlbs, int nb_ways) |
1202 | a750fc0b | j_mayer | { |
1203 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1204 | 578bb252 | j_mayer | env->nb_tlb = nb_tlbs; |
1205 | 578bb252 | j_mayer | env->nb_ways = nb_ways; |
1206 | 578bb252 | j_mayer | env->id_tlbs = 1;
|
1207 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1208 | a750fc0b | j_mayer | spr_register(env, SPR_PTEHI, "PTEHI",
|
1209 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1210 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1211 | a750fc0b | j_mayer | 0x00000000);
|
1212 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1213 | a750fc0b | j_mayer | spr_register(env, SPR_PTELO, "PTELO",
|
1214 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1215 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1216 | a750fc0b | j_mayer | 0x00000000);
|
1217 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1218 | a750fc0b | j_mayer | spr_register(env, SPR_TLBMISS, "TLBMISS",
|
1219 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1220 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1221 | a750fc0b | j_mayer | 0x00000000);
|
1222 | f2e63a42 | j_mayer | #endif
|
1223 | 76a66253 | j_mayer | } |
1224 | 76a66253 | j_mayer | |
1225 | 80d11f44 | j_mayer | static void gen_spr_usprgh (CPUPPCState *env) |
1226 | 76a66253 | j_mayer | { |
1227 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
1228 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1229 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1230 | 80d11f44 | j_mayer | 0x00000000);
|
1231 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
1232 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1233 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1234 | 80d11f44 | j_mayer | 0x00000000);
|
1235 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
1236 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1237 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1238 | 80d11f44 | j_mayer | 0x00000000);
|
1239 | 80d11f44 | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
1240 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1241 | 80d11f44 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1242 | 76a66253 | j_mayer | 0x00000000);
|
1243 | 80d11f44 | j_mayer | } |
1244 | 80d11f44 | j_mayer | |
1245 | 80d11f44 | j_mayer | /* PowerPC BookE SPR */
|
1246 | 80d11f44 | j_mayer | static void gen_spr_BookE (CPUPPCState *env, uint64_t ivor_mask) |
1247 | 80d11f44 | j_mayer | { |
1248 | 80d11f44 | j_mayer | const unsigned char *ivor_names[64] = { |
1249 | 80d11f44 | j_mayer | "IVOR0", "IVOR1", "IVOR2", "IVOR3", |
1250 | 80d11f44 | j_mayer | "IVOR4", "IVOR5", "IVOR6", "IVOR7", |
1251 | 80d11f44 | j_mayer | "IVOR8", "IVOR9", "IVOR10", "IVOR11", |
1252 | 80d11f44 | j_mayer | "IVOR12", "IVOR13", "IVOR14", "IVOR15", |
1253 | 80d11f44 | j_mayer | "IVOR16", "IVOR17", "IVOR18", "IVOR19", |
1254 | 80d11f44 | j_mayer | "IVOR20", "IVOR21", "IVOR22", "IVOR23", |
1255 | 80d11f44 | j_mayer | "IVOR24", "IVOR25", "IVOR26", "IVOR27", |
1256 | 80d11f44 | j_mayer | "IVOR28", "IVOR29", "IVOR30", "IVOR31", |
1257 | 80d11f44 | j_mayer | "IVOR32", "IVOR33", "IVOR34", "IVOR35", |
1258 | 80d11f44 | j_mayer | "IVOR36", "IVOR37", "IVOR38", "IVOR39", |
1259 | 80d11f44 | j_mayer | "IVOR40", "IVOR41", "IVOR42", "IVOR43", |
1260 | 80d11f44 | j_mayer | "IVOR44", "IVOR45", "IVOR46", "IVOR47", |
1261 | 80d11f44 | j_mayer | "IVOR48", "IVOR49", "IVOR50", "IVOR51", |
1262 | 80d11f44 | j_mayer | "IVOR52", "IVOR53", "IVOR54", "IVOR55", |
1263 | 80d11f44 | j_mayer | "IVOR56", "IVOR57", "IVOR58", "IVOR59", |
1264 | 80d11f44 | j_mayer | "IVOR60", "IVOR61", "IVOR62", "IVOR63", |
1265 | 80d11f44 | j_mayer | }; |
1266 | 80d11f44 | j_mayer | #define SPR_BOOKE_IVORxx (-1) |
1267 | 80d11f44 | j_mayer | int ivor_sprn[64] = { |
1268 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR0, SPR_BOOKE_IVOR1, SPR_BOOKE_IVOR2, SPR_BOOKE_IVOR3, |
1269 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR4, SPR_BOOKE_IVOR5, SPR_BOOKE_IVOR6, SPR_BOOKE_IVOR7, |
1270 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR8, SPR_BOOKE_IVOR9, SPR_BOOKE_IVOR10, SPR_BOOKE_IVOR11, |
1271 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR12, SPR_BOOKE_IVOR13, SPR_BOOKE_IVOR14, SPR_BOOKE_IVOR15, |
1272 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1273 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1274 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1275 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1276 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR32, SPR_BOOKE_IVOR33, SPR_BOOKE_IVOR34, SPR_BOOKE_IVOR35, |
1277 | 80d11f44 | j_mayer | SPR_BOOKE_IVOR36, SPR_BOOKE_IVOR37, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1278 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1279 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1280 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1281 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1282 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1283 | 80d11f44 | j_mayer | SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, SPR_BOOKE_IVORxx, |
1284 | 80d11f44 | j_mayer | }; |
1285 | 80d11f44 | j_mayer | int i;
|
1286 | 80d11f44 | j_mayer | |
1287 | 76a66253 | j_mayer | /* Interrupt processing */
|
1288 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR0, "CSRR0",
|
1289 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1290 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1291 | 76a66253 | j_mayer | 0x00000000);
|
1292 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_CSRR1, "CSRR1",
|
1293 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1294 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1295 | 363be49c | j_mayer | 0x00000000);
|
1296 | 76a66253 | j_mayer | /* Debug */
|
1297 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1298 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IAC1, "IAC1",
|
1299 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1300 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1301 | 76a66253 | j_mayer | 0x00000000);
|
1302 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1303 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_IAC2, "IAC2",
|
1304 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1305 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1306 | 76a66253 | j_mayer | 0x00000000);
|
1307 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1308 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DAC1, "DAC1",
|
1309 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1310 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1311 | 76a66253 | j_mayer | 0x00000000);
|
1312 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1313 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DAC2, "DAC2",
|
1314 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1315 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1316 | 76a66253 | j_mayer | 0x00000000);
|
1317 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1318 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR0, "DBCR0",
|
1319 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1320 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1321 | 76a66253 | j_mayer | 0x00000000);
|
1322 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1323 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR1, "DBCR1",
|
1324 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1325 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1326 | 76a66253 | j_mayer | 0x00000000);
|
1327 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1328 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBCR2, "DBCR2",
|
1329 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1330 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1331 | 76a66253 | j_mayer | 0x00000000);
|
1332 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1333 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DBSR, "DBSR",
|
1334 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1335 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_clear, |
1336 | 76a66253 | j_mayer | 0x00000000);
|
1337 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DEAR, "DEAR",
|
1338 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1339 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1340 | 76a66253 | j_mayer | 0x00000000);
|
1341 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_ESR, "ESR",
|
1342 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1343 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1344 | 76a66253 | j_mayer | 0x00000000);
|
1345 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_IVPR, "IVPR",
|
1346 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1347 | 6f5d427d | j_mayer | &spr_read_generic, &spr_write_excp_prefix, |
1348 | 363be49c | j_mayer | 0x00000000);
|
1349 | 363be49c | j_mayer | /* Exception vectors */
|
1350 | 80d11f44 | j_mayer | for (i = 0; i < 64; i++) { |
1351 | 80d11f44 | j_mayer | if (ivor_mask & (1ULL << i)) { |
1352 | 80d11f44 | j_mayer | if (ivor_sprn[i] == SPR_BOOKE_IVORxx) {
|
1353 | 80d11f44 | j_mayer | fprintf(stderr, "ERROR: IVOR %d SPR is not defined\n", i);
|
1354 | 80d11f44 | j_mayer | exit(1);
|
1355 | 80d11f44 | j_mayer | } |
1356 | 80d11f44 | j_mayer | spr_register(env, ivor_sprn[i], ivor_names[i], |
1357 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1358 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_excp_vector, |
1359 | 80d11f44 | j_mayer | 0x00000000);
|
1360 | 80d11f44 | j_mayer | } |
1361 | 80d11f44 | j_mayer | } |
1362 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_PID, "PID",
|
1363 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1364 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1365 | 76a66253 | j_mayer | 0x00000000);
|
1366 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_TCR, "TCR",
|
1367 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1368 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tcr, |
1369 | 76a66253 | j_mayer | 0x00000000);
|
1370 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_TSR, "TSR",
|
1371 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1372 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tsr, |
1373 | 76a66253 | j_mayer | 0x00000000);
|
1374 | 76a66253 | j_mayer | /* Timer */
|
1375 | 76a66253 | j_mayer | spr_register(env, SPR_DECR, "DECR",
|
1376 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1377 | 76a66253 | j_mayer | &spr_read_decr, &spr_write_decr, |
1378 | 76a66253 | j_mayer | 0x00000000);
|
1379 | 76a66253 | j_mayer | spr_register(env, SPR_BOOKE_DECAR, "DECAR",
|
1380 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1381 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
1382 | 76a66253 | j_mayer | 0x00000000);
|
1383 | 76a66253 | j_mayer | /* SPRGs */
|
1384 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG0, "USPRG0",
|
1385 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1386 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1387 | 76a66253 | j_mayer | 0x00000000);
|
1388 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
1389 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1390 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1391 | 76a66253 | j_mayer | 0x00000000);
|
1392 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
1393 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1394 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1395 | 76a66253 | j_mayer | 0x00000000);
|
1396 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
1397 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1398 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1399 | 76a66253 | j_mayer | 0x00000000);
|
1400 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
1401 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1402 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1403 | 76a66253 | j_mayer | 0x00000000);
|
1404 | 76a66253 | j_mayer | } |
1405 | 76a66253 | j_mayer | |
1406 | 363be49c | j_mayer | /* FSL storage control registers */
|
1407 | 80d11f44 | j_mayer | static void gen_spr_BookE_FSL (CPUPPCState *env, uint32_t mas_mask) |
1408 | 363be49c | j_mayer | { |
1409 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
1410 | 80d11f44 | j_mayer | const unsigned char *mas_names[8] = { |
1411 | 80d11f44 | j_mayer | "MAS0", "MAS1", "MAS2", "MAS3", "MAS4", "MAS5", "MAS6", "MAS7", |
1412 | 80d11f44 | j_mayer | }; |
1413 | 80d11f44 | j_mayer | int mas_sprn[8] = { |
1414 | 80d11f44 | j_mayer | SPR_BOOKE_MAS0, SPR_BOOKE_MAS1, SPR_BOOKE_MAS2, SPR_BOOKE_MAS3, |
1415 | 80d11f44 | j_mayer | SPR_BOOKE_MAS4, SPR_BOOKE_MAS5, SPR_BOOKE_MAS6, SPR_BOOKE_MAS7, |
1416 | 80d11f44 | j_mayer | }; |
1417 | 80d11f44 | j_mayer | int i;
|
1418 | 80d11f44 | j_mayer | |
1419 | 363be49c | j_mayer | /* TLB assist registers */
|
1420 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1421 | 80d11f44 | j_mayer | for (i = 0; i < 8; i++) { |
1422 | 80d11f44 | j_mayer | if (mas_mask & (1 << i)) { |
1423 | 80d11f44 | j_mayer | spr_register(env, mas_sprn[i], mas_names[i], |
1424 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1425 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
1426 | 80d11f44 | j_mayer | 0x00000000);
|
1427 | 80d11f44 | j_mayer | } |
1428 | 80d11f44 | j_mayer | } |
1429 | 363be49c | j_mayer | if (env->nb_pids > 1) { |
1430 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1431 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_PID1, "PID1",
|
1432 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1433 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1434 | 363be49c | j_mayer | 0x00000000);
|
1435 | 363be49c | j_mayer | } |
1436 | 363be49c | j_mayer | if (env->nb_pids > 2) { |
1437 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1438 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_PID2, "PID2",
|
1439 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1440 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1441 | 363be49c | j_mayer | 0x00000000);
|
1442 | 363be49c | j_mayer | } |
1443 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1444 | 65f9ee8d | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
1445 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1446 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1447 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1448 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1449 | 65f9ee8d | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
1450 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1451 | 363be49c | j_mayer | &spr_read_generic, &spr_write_generic, |
1452 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1453 | 363be49c | j_mayer | switch (env->nb_ways) {
|
1454 | 363be49c | j_mayer | case 4: |
1455 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1456 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB3CFG, "TLB3CFG",
|
1457 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1458 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1459 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1460 | 363be49c | j_mayer | /* Fallthru */
|
1461 | 363be49c | j_mayer | case 3: |
1462 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1463 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB2CFG, "TLB2CFG",
|
1464 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1465 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1466 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1467 | 363be49c | j_mayer | /* Fallthru */
|
1468 | 363be49c | j_mayer | case 2: |
1469 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1470 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
1471 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1472 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1473 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1474 | 363be49c | j_mayer | /* Fallthru */
|
1475 | 363be49c | j_mayer | case 1: |
1476 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1477 | 363be49c | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
1478 | 363be49c | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1479 | 363be49c | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1480 | 363be49c | j_mayer | 0x00000000); /* TOFIX */ |
1481 | 363be49c | j_mayer | /* Fallthru */
|
1482 | 363be49c | j_mayer | case 0: |
1483 | 363be49c | j_mayer | default:
|
1484 | 363be49c | j_mayer | break;
|
1485 | 363be49c | j_mayer | } |
1486 | f2e63a42 | j_mayer | #endif
|
1487 | 363be49c | j_mayer | } |
1488 | 363be49c | j_mayer | |
1489 | 76a66253 | j_mayer | /* SPR specific to PowerPC 440 implementation */
|
1490 | 76a66253 | j_mayer | static void gen_spr_440 (CPUPPCState *env) |
1491 | 76a66253 | j_mayer | { |
1492 | 76a66253 | j_mayer | /* Cache control */
|
1493 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1494 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV0, "DNV0",
|
1495 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1496 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1497 | 76a66253 | j_mayer | 0x00000000);
|
1498 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1499 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV1, "DNV1",
|
1500 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1501 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1502 | 76a66253 | j_mayer | 0x00000000);
|
1503 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1504 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV2, "DNV2",
|
1505 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1506 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1507 | 76a66253 | j_mayer | 0x00000000);
|
1508 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1509 | 76a66253 | j_mayer | spr_register(env, SPR_440_DNV3, "DNV3",
|
1510 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1511 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1512 | 76a66253 | j_mayer | 0x00000000);
|
1513 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1514 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV0, "DTV0",
|
1515 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1516 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1517 | 76a66253 | j_mayer | 0x00000000);
|
1518 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1519 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV1, "DTV1",
|
1520 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1521 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1522 | 76a66253 | j_mayer | 0x00000000);
|
1523 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1524 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV2, "DTV2",
|
1525 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1526 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1527 | 76a66253 | j_mayer | 0x00000000);
|
1528 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1529 | 2662a059 | j_mayer | spr_register(env, SPR_440_DTV3, "DTV3",
|
1530 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1531 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1532 | 76a66253 | j_mayer | 0x00000000);
|
1533 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1534 | 76a66253 | j_mayer | spr_register(env, SPR_440_DVLIM, "DVLIM",
|
1535 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1536 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1537 | 76a66253 | j_mayer | 0x00000000);
|
1538 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1539 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV0, "INV0",
|
1540 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1541 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1542 | 76a66253 | j_mayer | 0x00000000);
|
1543 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1544 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV1, "INV1",
|
1545 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1546 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1547 | 76a66253 | j_mayer | 0x00000000);
|
1548 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1549 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV2, "INV2",
|
1550 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1551 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1552 | 76a66253 | j_mayer | 0x00000000);
|
1553 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1554 | 76a66253 | j_mayer | spr_register(env, SPR_440_INV3, "INV3",
|
1555 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1556 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1557 | 76a66253 | j_mayer | 0x00000000);
|
1558 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1559 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV0, "ITV0",
|
1560 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1561 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1562 | 76a66253 | j_mayer | 0x00000000);
|
1563 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1564 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV1, "ITV1",
|
1565 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1566 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1567 | 76a66253 | j_mayer | 0x00000000);
|
1568 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1569 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV2, "ITV2",
|
1570 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1571 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1572 | 76a66253 | j_mayer | 0x00000000);
|
1573 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1574 | 2662a059 | j_mayer | spr_register(env, SPR_440_ITV3, "ITV3",
|
1575 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1576 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1577 | 76a66253 | j_mayer | 0x00000000);
|
1578 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1579 | 76a66253 | j_mayer | spr_register(env, SPR_440_IVLIM, "IVLIM",
|
1580 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1581 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1582 | 76a66253 | j_mayer | 0x00000000);
|
1583 | 76a66253 | j_mayer | /* Cache debug */
|
1584 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1585 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_DCDBTRH, "DCDBTRH",
|
1586 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1587 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1588 | 76a66253 | j_mayer | 0x00000000);
|
1589 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1590 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_DCDBTRL, "DCDBTRL",
|
1591 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1592 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1593 | 76a66253 | j_mayer | 0x00000000);
|
1594 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1595 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBDR, "ICDBDR",
|
1596 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1597 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1598 | 76a66253 | j_mayer | 0x00000000);
|
1599 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1600 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBTRH, "ICDBTRH",
|
1601 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1602 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1603 | 76a66253 | j_mayer | 0x00000000);
|
1604 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1605 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBTRL, "ICDBTRL",
|
1606 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1607 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1608 | 76a66253 | j_mayer | 0x00000000);
|
1609 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1610 | 76a66253 | j_mayer | spr_register(env, SPR_440_DBDR, "DBDR",
|
1611 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1612 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1613 | 76a66253 | j_mayer | 0x00000000);
|
1614 | 76a66253 | j_mayer | /* Processor control */
|
1615 | 76a66253 | j_mayer | spr_register(env, SPR_4xx_CCR0, "CCR0",
|
1616 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1617 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1618 | 76a66253 | j_mayer | 0x00000000);
|
1619 | 76a66253 | j_mayer | spr_register(env, SPR_440_RSTCFG, "RSTCFG",
|
1620 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1621 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1622 | 76a66253 | j_mayer | 0x00000000);
|
1623 | 76a66253 | j_mayer | /* Storage control */
|
1624 | 76a66253 | j_mayer | spr_register(env, SPR_440_MMUCR, "MMUCR",
|
1625 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1626 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1627 | 76a66253 | j_mayer | 0x00000000);
|
1628 | 76a66253 | j_mayer | } |
1629 | 76a66253 | j_mayer | |
1630 | 76a66253 | j_mayer | /* SPR shared between PowerPC 40x implementations */
|
1631 | 76a66253 | j_mayer | static void gen_spr_40x (CPUPPCState *env) |
1632 | 76a66253 | j_mayer | { |
1633 | 76a66253 | j_mayer | /* Cache */
|
1634 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1635 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DCCR, "DCCR",
|
1636 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1637 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1638 | 76a66253 | j_mayer | 0x00000000);
|
1639 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1640 | 76a66253 | j_mayer | spr_register(env, SPR_40x_ICCR, "ICCR",
|
1641 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1642 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1643 | 76a66253 | j_mayer | 0x00000000);
|
1644 | 578bb252 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1645 | 2662a059 | j_mayer | spr_register(env, SPR_BOOKE_ICDBDR, "ICDBDR",
|
1646 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1647 | 76a66253 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1648 | 76a66253 | j_mayer | 0x00000000);
|
1649 | 76a66253 | j_mayer | /* Exception */
|
1650 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DEAR, "DEAR",
|
1651 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1652 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1653 | 76a66253 | j_mayer | 0x00000000);
|
1654 | 76a66253 | j_mayer | spr_register(env, SPR_40x_ESR, "ESR",
|
1655 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1656 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1657 | 76a66253 | j_mayer | 0x00000000);
|
1658 | 76a66253 | j_mayer | spr_register(env, SPR_40x_EVPR, "EVPR",
|
1659 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1660 | 6f5d427d | j_mayer | &spr_read_generic, &spr_write_excp_prefix, |
1661 | 76a66253 | j_mayer | 0x00000000);
|
1662 | 76a66253 | j_mayer | spr_register(env, SPR_40x_SRR2, "SRR2",
|
1663 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1664 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1665 | 76a66253 | j_mayer | 0x00000000);
|
1666 | 76a66253 | j_mayer | spr_register(env, SPR_40x_SRR3, "SRR3",
|
1667 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1668 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1669 | 76a66253 | j_mayer | 0x00000000);
|
1670 | 76a66253 | j_mayer | /* Timers */
|
1671 | 76a66253 | j_mayer | spr_register(env, SPR_40x_PIT, "PIT",
|
1672 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1673 | 76a66253 | j_mayer | &spr_read_40x_pit, &spr_write_40x_pit, |
1674 | 76a66253 | j_mayer | 0x00000000);
|
1675 | 76a66253 | j_mayer | spr_register(env, SPR_40x_TCR, "TCR",
|
1676 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1677 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tcr, |
1678 | 76a66253 | j_mayer | 0x00000000);
|
1679 | 76a66253 | j_mayer | spr_register(env, SPR_40x_TSR, "TSR",
|
1680 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1681 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_booke_tsr, |
1682 | 76a66253 | j_mayer | 0x00000000);
|
1683 | 2662a059 | j_mayer | } |
1684 | 2662a059 | j_mayer | |
1685 | 2662a059 | j_mayer | /* SPR specific to PowerPC 405 implementation */
|
1686 | 2662a059 | j_mayer | static void gen_spr_405 (CPUPPCState *env) |
1687 | 2662a059 | j_mayer | { |
1688 | 2662a059 | j_mayer | /* MMU */
|
1689 | 2662a059 | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
1690 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1691 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1692 | 76a66253 | j_mayer | 0x00000000);
|
1693 | 2662a059 | j_mayer | spr_register(env, SPR_4xx_CCR0, "CCR0",
|
1694 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1695 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1696 | 2662a059 | j_mayer | 0x00700000);
|
1697 | 2662a059 | j_mayer | /* Debug interface */
|
1698 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1699 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR0",
|
1700 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1701 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1702 | 76a66253 | j_mayer | 0x00000000);
|
1703 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1704 | 2662a059 | j_mayer | spr_register(env, SPR_405_DBCR1, "DBCR1",
|
1705 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1706 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1707 | 2662a059 | j_mayer | 0x00000000);
|
1708 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1709 | 76a66253 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1710 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1711 | 8ecc7913 | j_mayer | &spr_read_generic, &spr_write_clear, |
1712 | 8ecc7913 | j_mayer | /* Last reset was system reset */
|
1713 | 76a66253 | j_mayer | 0x00000300);
|
1714 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1715 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC1",
|
1716 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1717 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1718 | 76a66253 | j_mayer | 0x00000000);
|
1719 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC2, "DAC2",
|
1720 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1721 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1722 | 76a66253 | j_mayer | 0x00000000);
|
1723 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1724 | 2662a059 | j_mayer | spr_register(env, SPR_405_DVC1, "DVC1",
|
1725 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1726 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1727 | 2662a059 | j_mayer | 0x00000000);
|
1728 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1729 | 2662a059 | j_mayer | spr_register(env, SPR_405_DVC2, "DVC2",
|
1730 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1731 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1732 | 76a66253 | j_mayer | 0x00000000);
|
1733 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1734 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC1",
|
1735 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1736 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1737 | 76a66253 | j_mayer | 0x00000000);
|
1738 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC2, "IAC2",
|
1739 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1740 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1741 | 76a66253 | j_mayer | 0x00000000);
|
1742 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1743 | 76a66253 | j_mayer | spr_register(env, SPR_405_IAC3, "IAC3",
|
1744 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1745 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1746 | 76a66253 | j_mayer | 0x00000000);
|
1747 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1748 | 76a66253 | j_mayer | spr_register(env, SPR_405_IAC4, "IAC4",
|
1749 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1750 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1751 | 76a66253 | j_mayer | 0x00000000);
|
1752 | 76a66253 | j_mayer | /* Storage control */
|
1753 | 035feb88 | j_mayer | /* XXX: TODO: not implemented */
|
1754 | 76a66253 | j_mayer | spr_register(env, SPR_405_SLER, "SLER",
|
1755 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1756 | c294fc58 | j_mayer | &spr_read_generic, &spr_write_40x_sler, |
1757 | 76a66253 | j_mayer | 0x00000000);
|
1758 | 2662a059 | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
1759 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1760 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1761 | 2662a059 | j_mayer | 0x00000000);
|
1762 | 76a66253 | j_mayer | /* XXX : not implemented */
|
1763 | 76a66253 | j_mayer | spr_register(env, SPR_405_SU0R, "SU0R",
|
1764 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1765 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1766 | 76a66253 | j_mayer | 0x00000000);
|
1767 | 76a66253 | j_mayer | /* SPRG */
|
1768 | 76a66253 | j_mayer | spr_register(env, SPR_USPRG0, "USPRG0",
|
1769 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1770 | 76a66253 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
1771 | 76a66253 | j_mayer | 0x00000000);
|
1772 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
1773 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1774 | 04f20795 | j_mayer | &spr_read_generic, &spr_write_generic, |
1775 | 76a66253 | j_mayer | 0x00000000);
|
1776 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
1777 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1778 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1779 | 76a66253 | j_mayer | 0x00000000);
|
1780 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
1781 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1782 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1783 | 76a66253 | j_mayer | 0x00000000);
|
1784 | 76a66253 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
1785 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1786 | 04f20795 | j_mayer | spr_read_generic, &spr_write_generic, |
1787 | 76a66253 | j_mayer | 0x00000000);
|
1788 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
1789 | 76a66253 | j_mayer | } |
1790 | 76a66253 | j_mayer | |
1791 | 76a66253 | j_mayer | /* SPR shared between PowerPC 401 & 403 implementations */
|
1792 | 76a66253 | j_mayer | static void gen_spr_401_403 (CPUPPCState *env) |
1793 | 76a66253 | j_mayer | { |
1794 | 76a66253 | j_mayer | /* Time base */
|
1795 | 76a66253 | j_mayer | spr_register(env, SPR_403_VTBL, "TBL",
|
1796 | 76a66253 | j_mayer | &spr_read_tbl, SPR_NOACCESS, |
1797 | 76a66253 | j_mayer | &spr_read_tbl, SPR_NOACCESS, |
1798 | 76a66253 | j_mayer | 0x00000000);
|
1799 | 76a66253 | j_mayer | spr_register(env, SPR_403_TBL, "TBL",
|
1800 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1801 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_tbl, |
1802 | 76a66253 | j_mayer | 0x00000000);
|
1803 | 76a66253 | j_mayer | spr_register(env, SPR_403_VTBU, "TBU",
|
1804 | 76a66253 | j_mayer | &spr_read_tbu, SPR_NOACCESS, |
1805 | 76a66253 | j_mayer | &spr_read_tbu, SPR_NOACCESS, |
1806 | 76a66253 | j_mayer | 0x00000000);
|
1807 | 76a66253 | j_mayer | spr_register(env, SPR_403_TBU, "TBU",
|
1808 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1809 | 76a66253 | j_mayer | SPR_NOACCESS, &spr_write_tbu, |
1810 | 76a66253 | j_mayer | 0x00000000);
|
1811 | 76a66253 | j_mayer | /* Debug */
|
1812 | 578bb252 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1813 | 76a66253 | j_mayer | spr_register(env, SPR_403_CDBCR, "CDBCR",
|
1814 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1815 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1816 | 76a66253 | j_mayer | 0x00000000);
|
1817 | 76a66253 | j_mayer | } |
1818 | 76a66253 | j_mayer | |
1819 | 2662a059 | j_mayer | /* SPR specific to PowerPC 401 implementation */
|
1820 | 2662a059 | j_mayer | static void gen_spr_401 (CPUPPCState *env) |
1821 | 2662a059 | j_mayer | { |
1822 | 2662a059 | j_mayer | /* Debug interface */
|
1823 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1824 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR",
|
1825 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1826 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1827 | 2662a059 | j_mayer | 0x00000000);
|
1828 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1829 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1830 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1831 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_clear, |
1832 | 2662a059 | j_mayer | /* Last reset was system reset */
|
1833 | 2662a059 | j_mayer | 0x00000300);
|
1834 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1835 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC",
|
1836 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1837 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1838 | 2662a059 | j_mayer | 0x00000000);
|
1839 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1840 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC",
|
1841 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1842 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1843 | 2662a059 | j_mayer | 0x00000000);
|
1844 | 2662a059 | j_mayer | /* Storage control */
|
1845 | 035feb88 | j_mayer | /* XXX: TODO: not implemented */
|
1846 | 2662a059 | j_mayer | spr_register(env, SPR_405_SLER, "SLER",
|
1847 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1848 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_sler, |
1849 | 2662a059 | j_mayer | 0x00000000);
|
1850 | 035feb88 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
1851 | 035feb88 | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
1852 | 035feb88 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1853 | 035feb88 | j_mayer | &spr_read_generic, &spr_write_generic, |
1854 | 035feb88 | j_mayer | 0xFFFFFFFF);
|
1855 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
1856 | 035feb88 | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
1857 | 035feb88 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1858 | 035feb88 | j_mayer | &spr_read_generic, &spr_write_generic, |
1859 | 035feb88 | j_mayer | 0x00000000);
|
1860 | 2662a059 | j_mayer | } |
1861 | 2662a059 | j_mayer | |
1862 | a750fc0b | j_mayer | static void gen_spr_401x2 (CPUPPCState *env) |
1863 | a750fc0b | j_mayer | { |
1864 | a750fc0b | j_mayer | gen_spr_401(env); |
1865 | a750fc0b | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
1866 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1867 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1868 | a750fc0b | j_mayer | 0x00000000);
|
1869 | a750fc0b | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
1870 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1871 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1872 | a750fc0b | j_mayer | 0x00000000);
|
1873 | a750fc0b | j_mayer | } |
1874 | a750fc0b | j_mayer | |
1875 | 76a66253 | j_mayer | /* SPR specific to PowerPC 403 implementation */
|
1876 | 76a66253 | j_mayer | static void gen_spr_403 (CPUPPCState *env) |
1877 | 76a66253 | j_mayer | { |
1878 | 2662a059 | j_mayer | /* Debug interface */
|
1879 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1880 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBCR0, "DBCR0",
|
1881 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1882 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_40x_dbcr0, |
1883 | 2662a059 | j_mayer | 0x00000000);
|
1884 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1885 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DBSR, "DBSR",
|
1886 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1887 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_clear, |
1888 | 2662a059 | j_mayer | /* Last reset was system reset */
|
1889 | 2662a059 | j_mayer | 0x00000300);
|
1890 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1891 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC1, "DAC1",
|
1892 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1893 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1894 | 2662a059 | j_mayer | 0x00000000);
|
1895 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1896 | 2662a059 | j_mayer | spr_register(env, SPR_40x_DAC2, "DAC2",
|
1897 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1898 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1899 | 2662a059 | j_mayer | 0x00000000);
|
1900 | 2662a059 | j_mayer | /* XXX : not implemented */
|
1901 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC1, "IAC1",
|
1902 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1903 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1904 | 2662a059 | j_mayer | 0x00000000);
|
1905 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1906 | 2662a059 | j_mayer | spr_register(env, SPR_40x_IAC2, "IAC2",
|
1907 | 2662a059 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1908 | 2662a059 | j_mayer | &spr_read_generic, &spr_write_generic, |
1909 | 2662a059 | j_mayer | 0x00000000);
|
1910 | a750fc0b | j_mayer | } |
1911 | a750fc0b | j_mayer | |
1912 | a750fc0b | j_mayer | static void gen_spr_403_real (CPUPPCState *env) |
1913 | a750fc0b | j_mayer | { |
1914 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBL1, "PBL1",
|
1915 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1916 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
1917 | 76a66253 | j_mayer | 0x00000000);
|
1918 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBU1, "PBU1",
|
1919 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1920 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
1921 | 76a66253 | j_mayer | 0x00000000);
|
1922 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBL2, "PBL2",
|
1923 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1924 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
1925 | 76a66253 | j_mayer | 0x00000000);
|
1926 | 76a66253 | j_mayer | spr_register(env, SPR_403_PBU2, "PBU2",
|
1927 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1928 | 76a66253 | j_mayer | &spr_read_403_pbr, &spr_write_403_pbr, |
1929 | 76a66253 | j_mayer | 0x00000000);
|
1930 | a750fc0b | j_mayer | } |
1931 | a750fc0b | j_mayer | |
1932 | a750fc0b | j_mayer | static void gen_spr_403_mmu (CPUPPCState *env) |
1933 | a750fc0b | j_mayer | { |
1934 | a750fc0b | j_mayer | /* MMU */
|
1935 | a750fc0b | j_mayer | spr_register(env, SPR_40x_PID, "PID",
|
1936 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1937 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
1938 | a750fc0b | j_mayer | 0x00000000);
|
1939 | 2662a059 | j_mayer | spr_register(env, SPR_40x_ZPR, "ZPR",
|
1940 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1941 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1942 | 76a66253 | j_mayer | 0x00000000);
|
1943 | 76a66253 | j_mayer | } |
1944 | 76a66253 | j_mayer | |
1945 | 76a66253 | j_mayer | /* SPR specific to PowerPC compression coprocessor extension */
|
1946 | 76a66253 | j_mayer | static void gen_spr_compress (CPUPPCState *env) |
1947 | 76a66253 | j_mayer | { |
1948 | 578bb252 | j_mayer | /* XXX : not implemented */
|
1949 | 76a66253 | j_mayer | spr_register(env, SPR_401_SKR, "SKR",
|
1950 | 76a66253 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1951 | 76a66253 | j_mayer | &spr_read_generic, &spr_write_generic, |
1952 | 76a66253 | j_mayer | 0x00000000);
|
1953 | 76a66253 | j_mayer | } |
1954 | a750fc0b | j_mayer | |
1955 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
1956 | a750fc0b | j_mayer | /* SPR specific to PowerPC 620 */
|
1957 | a750fc0b | j_mayer | static void gen_spr_620 (CPUPPCState *env) |
1958 | a750fc0b | j_mayer | { |
1959 | 082c6681 | j_mayer | /* Processor identification */
|
1960 | 082c6681 | j_mayer | spr_register(env, SPR_PIR, "PIR",
|
1961 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1962 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_pir, |
1963 | 082c6681 | j_mayer | 0x00000000);
|
1964 | 082c6681 | j_mayer | spr_register(env, SPR_ASR, "ASR",
|
1965 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1966 | 082c6681 | j_mayer | &spr_read_asr, &spr_write_asr, |
1967 | 082c6681 | j_mayer | 0x00000000);
|
1968 | 082c6681 | j_mayer | /* Breakpoints */
|
1969 | 082c6681 | j_mayer | /* XXX : not implemented */
|
1970 | 082c6681 | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
1971 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1972 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
1973 | 082c6681 | j_mayer | 0x00000000);
|
1974 | 082c6681 | j_mayer | /* XXX : not implemented */
|
1975 | 082c6681 | j_mayer | spr_register(env, SPR_DABR, "DABR",
|
1976 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1977 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
1978 | 082c6681 | j_mayer | 0x00000000);
|
1979 | 082c6681 | j_mayer | /* XXX : not implemented */
|
1980 | 082c6681 | j_mayer | spr_register(env, SPR_SIAR, "SIAR",
|
1981 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1982 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1983 | 082c6681 | j_mayer | 0x00000000);
|
1984 | 082c6681 | j_mayer | /* XXX : not implemented */
|
1985 | 082c6681 | j_mayer | spr_register(env, SPR_SDA, "SDA",
|
1986 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1987 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1988 | 082c6681 | j_mayer | 0x00000000);
|
1989 | 082c6681 | j_mayer | /* XXX : not implemented */
|
1990 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC1R, "PMC1",
|
1991 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1992 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
1993 | 082c6681 | j_mayer | 0x00000000);
|
1994 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC1W, "PMC1",
|
1995 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
1996 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
1997 | 082c6681 | j_mayer | 0x00000000);
|
1998 | 082c6681 | j_mayer | /* XXX : not implemented */
|
1999 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC2R, "PMC2",
|
2000 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2001 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2002 | 082c6681 | j_mayer | 0x00000000);
|
2003 | 082c6681 | j_mayer | spr_register(env, SPR_620_PMC2W, "PMC2",
|
2004 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2005 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
2006 | 082c6681 | j_mayer | 0x00000000);
|
2007 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2008 | 082c6681 | j_mayer | spr_register(env, SPR_620_MMCR0R, "MMCR0",
|
2009 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2010 | 082c6681 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
2011 | 082c6681 | j_mayer | 0x00000000);
|
2012 | 082c6681 | j_mayer | spr_register(env, SPR_620_MMCR0W, "MMCR0",
|
2013 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2014 | 082c6681 | j_mayer | SPR_NOACCESS, &spr_write_generic, |
2015 | 082c6681 | j_mayer | 0x00000000);
|
2016 | 082c6681 | j_mayer | /* External access control */
|
2017 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2018 | 082c6681 | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
2019 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2020 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2021 | 082c6681 | j_mayer | 0x00000000);
|
2022 | 082c6681 | j_mayer | #if 0 // XXX: check this
|
2023 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2024 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR0, "PMR0",
|
2025 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2026 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2027 | a750fc0b | j_mayer | 0x00000000);
|
2028 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2029 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR1, "PMR1",
|
2030 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2031 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2032 | a750fc0b | j_mayer | 0x00000000);
|
2033 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2034 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR2, "PMR2",
|
2035 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2036 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2037 | a750fc0b | j_mayer | 0x00000000);
|
2038 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2039 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR3, "PMR3",
|
2040 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2041 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2042 | a750fc0b | j_mayer | 0x00000000);
|
2043 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2044 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR4, "PMR4",
|
2045 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2046 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2047 | a750fc0b | j_mayer | 0x00000000);
|
2048 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2049 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR5, "PMR5",
|
2050 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2051 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2052 | a750fc0b | j_mayer | 0x00000000);
|
2053 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2054 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR6, "PMR6",
|
2055 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2056 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2057 | a750fc0b | j_mayer | 0x00000000);
|
2058 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2059 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR7, "PMR7",
|
2060 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2061 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2062 | a750fc0b | j_mayer | 0x00000000);
|
2063 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2064 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR8, "PMR8",
|
2065 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2066 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2067 | a750fc0b | j_mayer | 0x00000000);
|
2068 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2069 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMR9, "PMR9",
|
2070 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2071 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2072 | a750fc0b | j_mayer | 0x00000000);
|
2073 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2074 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRA, "PMR10",
|
2075 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2076 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2077 | a750fc0b | j_mayer | 0x00000000);
|
2078 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2079 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRB, "PMR11",
|
2080 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2081 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2082 | a750fc0b | j_mayer | 0x00000000);
|
2083 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2084 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRC, "PMR12",
|
2085 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2086 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2087 | a750fc0b | j_mayer | 0x00000000);
|
2088 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2089 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRD, "PMR13",
|
2090 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2091 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2092 | a750fc0b | j_mayer | 0x00000000);
|
2093 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2094 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRE, "PMR14",
|
2095 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2096 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2097 | a750fc0b | j_mayer | 0x00000000);
|
2098 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2099 | a750fc0b | j_mayer | spr_register(env, SPR_620_PMRF, "PMR15",
|
2100 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS,
|
2101 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic,
|
2102 | a750fc0b | j_mayer | 0x00000000);
|
2103 | 082c6681 | j_mayer | #endif
|
2104 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2105 | 082c6681 | j_mayer | spr_register(env, SPR_620_BUSCSR, "BUSCSR",
|
2106 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2107 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2108 | a750fc0b | j_mayer | 0x00000000);
|
2109 | 578bb252 | j_mayer | /* XXX : not implemented */
|
2110 | 082c6681 | j_mayer | spr_register(env, SPR_620_L2CR, "L2CR",
|
2111 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2112 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
2113 | 082c6681 | j_mayer | 0x00000000);
|
2114 | 082c6681 | j_mayer | /* XXX : not implemented */
|
2115 | 082c6681 | j_mayer | spr_register(env, SPR_620_L2SR, "L2SR",
|
2116 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2117 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
2118 | a750fc0b | j_mayer | 0x00000000);
|
2119 | a750fc0b | j_mayer | } |
2120 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
2121 | 76a66253 | j_mayer | |
2122 | 80d11f44 | j_mayer | static void gen_spr_5xx_8xx (CPUPPCState *env) |
2123 | e1833e1f | j_mayer | { |
2124 | 80d11f44 | j_mayer | /* Exception processing */
|
2125 | 80d11f44 | j_mayer | spr_register(env, SPR_DSISR, "DSISR",
|
2126 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2127 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2128 | 80d11f44 | j_mayer | 0x00000000);
|
2129 | 80d11f44 | j_mayer | spr_register(env, SPR_DAR, "DAR",
|
2130 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2131 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2132 | 80d11f44 | j_mayer | 0x00000000);
|
2133 | 80d11f44 | j_mayer | /* Timer */
|
2134 | 80d11f44 | j_mayer | spr_register(env, SPR_DECR, "DECR",
|
2135 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2136 | 80d11f44 | j_mayer | &spr_read_decr, &spr_write_decr, |
2137 | 80d11f44 | j_mayer | 0x00000000);
|
2138 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2139 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_EIE, "EIE",
|
2140 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2141 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2142 | 80d11f44 | j_mayer | 0x00000000);
|
2143 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2144 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_EID, "EID",
|
2145 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2146 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2147 | 80d11f44 | j_mayer | 0x00000000);
|
2148 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2149 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_NRI, "NRI",
|
2150 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2151 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2152 | 80d11f44 | j_mayer | 0x00000000);
|
2153 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2154 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPA, "CMPA",
|
2155 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2156 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2157 | 80d11f44 | j_mayer | 0x00000000);
|
2158 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2159 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPB, "CMPB",
|
2160 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2161 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2162 | 80d11f44 | j_mayer | 0x00000000);
|
2163 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2164 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPC, "CMPC",
|
2165 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2166 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2167 | 80d11f44 | j_mayer | 0x00000000);
|
2168 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2169 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPD, "CMPD",
|
2170 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2171 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2172 | 80d11f44 | j_mayer | 0x00000000);
|
2173 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2174 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_ECR, "ECR",
|
2175 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2176 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2177 | 80d11f44 | j_mayer | 0x00000000);
|
2178 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2179 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DER, "DER",
|
2180 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2181 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2182 | 80d11f44 | j_mayer | 0x00000000);
|
2183 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2184 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_COUNTA, "COUNTA",
|
2185 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2186 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2187 | 80d11f44 | j_mayer | 0x00000000);
|
2188 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2189 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_COUNTB, "COUNTB",
|
2190 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2191 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2192 | 80d11f44 | j_mayer | 0x00000000);
|
2193 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2194 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPE, "CMPE",
|
2195 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2196 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2197 | 80d11f44 | j_mayer | 0x00000000);
|
2198 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2199 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPF, "CMPF",
|
2200 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2201 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2202 | 80d11f44 | j_mayer | 0x00000000);
|
2203 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2204 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPG, "CMPG",
|
2205 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2206 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2207 | 80d11f44 | j_mayer | 0x00000000);
|
2208 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2209 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_CMPH, "CMPH",
|
2210 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2211 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2212 | 80d11f44 | j_mayer | 0x00000000);
|
2213 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2214 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_LCTRL1, "LCTRL1",
|
2215 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2216 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2217 | 80d11f44 | j_mayer | 0x00000000);
|
2218 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2219 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_LCTRL2, "LCTRL2",
|
2220 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2221 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2222 | 80d11f44 | j_mayer | 0x00000000);
|
2223 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2224 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_BAR, "BAR",
|
2225 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2226 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2227 | 80d11f44 | j_mayer | 0x00000000);
|
2228 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2229 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DPDR, "DPDR",
|
2230 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2231 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2232 | 80d11f44 | j_mayer | 0x00000000);
|
2233 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2234 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IMMR, "IMMR",
|
2235 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2236 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2237 | 80d11f44 | j_mayer | 0x00000000);
|
2238 | 80d11f44 | j_mayer | } |
2239 | 80d11f44 | j_mayer | |
2240 | 80d11f44 | j_mayer | static void gen_spr_5xx (CPUPPCState *env) |
2241 | 80d11f44 | j_mayer | { |
2242 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2243 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_GRA, "MI_GRA",
|
2244 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2245 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2246 | 80d11f44 | j_mayer | 0x00000000);
|
2247 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2248 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_GRA, "L2U_GRA",
|
2249 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2250 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2251 | 80d11f44 | j_mayer | 0x00000000);
|
2252 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2253 | 80d11f44 | j_mayer | spr_register(env, SPR_RPCU_BBCMCR, "L2U_BBCMCR",
|
2254 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2255 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2256 | 80d11f44 | j_mayer | 0x00000000);
|
2257 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2258 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_MCR, "L2U_MCR",
|
2259 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2260 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2261 | 80d11f44 | j_mayer | 0x00000000);
|
2262 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2263 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA0, "MI_RBA0",
|
2264 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2265 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2266 | 80d11f44 | j_mayer | 0x00000000);
|
2267 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2268 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA1, "MI_RBA1",
|
2269 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2270 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2271 | 80d11f44 | j_mayer | 0x00000000);
|
2272 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2273 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA2, "MI_RBA2",
|
2274 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2275 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2276 | 80d11f44 | j_mayer | 0x00000000);
|
2277 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2278 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RBA3, "MI_RBA3",
|
2279 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2280 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2281 | 80d11f44 | j_mayer | 0x00000000);
|
2282 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2283 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA0, "L2U_RBA0",
|
2284 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2285 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2286 | 80d11f44 | j_mayer | 0x00000000);
|
2287 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2288 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA1, "L2U_RBA1",
|
2289 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2290 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2291 | 80d11f44 | j_mayer | 0x00000000);
|
2292 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2293 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA2, "L2U_RBA2",
|
2294 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2295 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2296 | 80d11f44 | j_mayer | 0x00000000);
|
2297 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2298 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RBA3, "L2U_RBA3",
|
2299 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2300 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2301 | 80d11f44 | j_mayer | 0x00000000);
|
2302 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2303 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA0, "MI_RA0",
|
2304 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2305 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2306 | 80d11f44 | j_mayer | 0x00000000);
|
2307 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2308 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA1, "MI_RA1",
|
2309 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2310 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2311 | 80d11f44 | j_mayer | 0x00000000);
|
2312 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2313 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA2, "MI_RA2",
|
2314 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2315 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2316 | 80d11f44 | j_mayer | 0x00000000);
|
2317 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2318 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_MI_RA3, "MI_RA3",
|
2319 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2320 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2321 | 80d11f44 | j_mayer | 0x00000000);
|
2322 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2323 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA0, "L2U_RA0",
|
2324 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2325 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2326 | 80d11f44 | j_mayer | 0x00000000);
|
2327 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2328 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA1, "L2U_RA1",
|
2329 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2330 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2331 | 80d11f44 | j_mayer | 0x00000000);
|
2332 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2333 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA2, "L2U_RA2",
|
2334 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2335 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2336 | 80d11f44 | j_mayer | 0x00000000);
|
2337 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2338 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_L2U_RA3, "L2U_RA3",
|
2339 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2340 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2341 | 80d11f44 | j_mayer | 0x00000000);
|
2342 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2343 | 80d11f44 | j_mayer | spr_register(env, SPR_RCPU_FPECR, "FPECR",
|
2344 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2345 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2346 | 80d11f44 | j_mayer | 0x00000000);
|
2347 | 80d11f44 | j_mayer | } |
2348 | 80d11f44 | j_mayer | |
2349 | 80d11f44 | j_mayer | static void gen_spr_8xx (CPUPPCState *env) |
2350 | 80d11f44 | j_mayer | { |
2351 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2352 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IC_CST, "IC_CST",
|
2353 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2354 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2355 | 80d11f44 | j_mayer | 0x00000000);
|
2356 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2357 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IC_ADR, "IC_ADR",
|
2358 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2359 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2360 | 80d11f44 | j_mayer | 0x00000000);
|
2361 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2362 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_IC_DAT, "IC_DAT",
|
2363 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2364 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2365 | 80d11f44 | j_mayer | 0x00000000);
|
2366 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2367 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DC_CST, "DC_CST",
|
2368 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2369 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2370 | 80d11f44 | j_mayer | 0x00000000);
|
2371 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2372 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DC_ADR, "DC_ADR",
|
2373 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2374 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2375 | 80d11f44 | j_mayer | 0x00000000);
|
2376 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2377 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_DC_DAT, "DC_DAT",
|
2378 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2379 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2380 | 80d11f44 | j_mayer | 0x00000000);
|
2381 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2382 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_CTR, "MI_CTR",
|
2383 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2384 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2385 | 80d11f44 | j_mayer | 0x00000000);
|
2386 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2387 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_AP, "MI_AP",
|
2388 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2389 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2390 | 80d11f44 | j_mayer | 0x00000000);
|
2391 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2392 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_EPN, "MI_EPN",
|
2393 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2394 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2395 | 80d11f44 | j_mayer | 0x00000000);
|
2396 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2397 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_TWC, "MI_TWC",
|
2398 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2399 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2400 | 80d11f44 | j_mayer | 0x00000000);
|
2401 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2402 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_RPN, "MI_RPN",
|
2403 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2404 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2405 | 80d11f44 | j_mayer | 0x00000000);
|
2406 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2407 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_DBCAM, "MI_DBCAM",
|
2408 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2409 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2410 | 80d11f44 | j_mayer | 0x00000000);
|
2411 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2412 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_DBRAM0, "MI_DBRAM0",
|
2413 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2414 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2415 | 80d11f44 | j_mayer | 0x00000000);
|
2416 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2417 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MI_DBRAM1, "MI_DBRAM1",
|
2418 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2419 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2420 | 80d11f44 | j_mayer | 0x00000000);
|
2421 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2422 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_CTR, "MD_CTR",
|
2423 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2424 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2425 | 80d11f44 | j_mayer | 0x00000000);
|
2426 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2427 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_CASID, "MD_CASID",
|
2428 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2429 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2430 | 80d11f44 | j_mayer | 0x00000000);
|
2431 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2432 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_AP, "MD_AP",
|
2433 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2434 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2435 | 80d11f44 | j_mayer | 0x00000000);
|
2436 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2437 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_EPN, "MD_EPN",
|
2438 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2439 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2440 | 80d11f44 | j_mayer | 0x00000000);
|
2441 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2442 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TWB, "MD_TWB",
|
2443 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2444 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2445 | 80d11f44 | j_mayer | 0x00000000);
|
2446 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2447 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TWC, "MD_TWC",
|
2448 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2449 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2450 | 80d11f44 | j_mayer | 0x00000000);
|
2451 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2452 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_RPN, "MD_RPN",
|
2453 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2454 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2455 | 80d11f44 | j_mayer | 0x00000000);
|
2456 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2457 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_TW, "MD_TW",
|
2458 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2459 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2460 | 80d11f44 | j_mayer | 0x00000000);
|
2461 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2462 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBCAM, "MD_DBCAM",
|
2463 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2464 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2465 | 80d11f44 | j_mayer | 0x00000000);
|
2466 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2467 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBRAM0, "MD_DBRAM0",
|
2468 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2469 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2470 | 80d11f44 | j_mayer | 0x00000000);
|
2471 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
2472 | 80d11f44 | j_mayer | spr_register(env, SPR_MPC_MD_DBRAM1, "MD_DBRAM1",
|
2473 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
2474 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
2475 | 80d11f44 | j_mayer | 0x00000000);
|
2476 | 80d11f44 | j_mayer | } |
2477 | 80d11f44 | j_mayer | |
2478 | 80d11f44 | j_mayer | // XXX: TODO
|
2479 | 80d11f44 | j_mayer | /*
|
2480 | 80d11f44 | j_mayer | * AMR => SPR 29 (Power 2.04)
|
2481 | 80d11f44 | j_mayer | * CTRL => SPR 136 (Power 2.04)
|
2482 | 80d11f44 | j_mayer | * CTRL => SPR 152 (Power 2.04)
|
2483 | 80d11f44 | j_mayer | * SCOMC => SPR 276 (64 bits ?)
|
2484 | 80d11f44 | j_mayer | * SCOMD => SPR 277 (64 bits ?)
|
2485 | 80d11f44 | j_mayer | * TBU40 => SPR 286 (Power 2.04 hypv)
|
2486 | 80d11f44 | j_mayer | * HSPRG0 => SPR 304 (Power 2.04 hypv)
|
2487 | 80d11f44 | j_mayer | * HSPRG1 => SPR 305 (Power 2.04 hypv)
|
2488 | 80d11f44 | j_mayer | * HDSISR => SPR 306 (Power 2.04 hypv)
|
2489 | 80d11f44 | j_mayer | * HDAR => SPR 307 (Power 2.04 hypv)
|
2490 | 80d11f44 | j_mayer | * PURR => SPR 309 (Power 2.04 hypv)
|
2491 | 80d11f44 | j_mayer | * HDEC => SPR 310 (Power 2.04 hypv)
|
2492 | 80d11f44 | j_mayer | * HIOR => SPR 311 (hypv)
|
2493 | 80d11f44 | j_mayer | * RMOR => SPR 312 (970)
|
2494 | 80d11f44 | j_mayer | * HRMOR => SPR 313 (Power 2.04 hypv)
|
2495 | 80d11f44 | j_mayer | * HSRR0 => SPR 314 (Power 2.04 hypv)
|
2496 | 80d11f44 | j_mayer | * HSRR1 => SPR 315 (Power 2.04 hypv)
|
2497 | 80d11f44 | j_mayer | * LPCR => SPR 316 (970)
|
2498 | 80d11f44 | j_mayer | * LPIDR => SPR 317 (970)
|
2499 | 80d11f44 | j_mayer | * SPEFSCR => SPR 512 (Power 2.04 emb)
|
2500 | 80d11f44 | j_mayer | * EPR => SPR 702 (Power 2.04 emb)
|
2501 | 80d11f44 | j_mayer | * perf => 768-783 (Power 2.04)
|
2502 | 80d11f44 | j_mayer | * perf => 784-799 (Power 2.04)
|
2503 | 80d11f44 | j_mayer | * PPR => SPR 896 (Power 2.04)
|
2504 | 80d11f44 | j_mayer | * EPLC => SPR 947 (Power 2.04 emb)
|
2505 | 80d11f44 | j_mayer | * EPSC => SPR 948 (Power 2.04 emb)
|
2506 | 80d11f44 | j_mayer | * DABRX => 1015 (Power 2.04 hypv)
|
2507 | 80d11f44 | j_mayer | * FPECR => SPR 1022 (?)
|
2508 | 80d11f44 | j_mayer | * ... and more (thermal management, performance counters, ...)
|
2509 | 80d11f44 | j_mayer | */
|
2510 | 80d11f44 | j_mayer | |
2511 | 80d11f44 | j_mayer | /*****************************************************************************/
|
2512 | 80d11f44 | j_mayer | /* Exception vectors models */
|
2513 | 80d11f44 | j_mayer | static void init_excp_4xx_real (CPUPPCState *env) |
2514 | 80d11f44 | j_mayer | { |
2515 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2516 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000100;
|
2517 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2518 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2519 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2520 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2521 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2522 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PIT] = 0x00001000;
|
2523 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00001010;
|
2524 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001020;
|
2525 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00002000;
|
2526 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2527 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2528 | faadf50e | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2529 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2530 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2531 | e1833e1f | j_mayer | #endif
|
2532 | e1833e1f | j_mayer | } |
2533 | e1833e1f | j_mayer | |
2534 | 80d11f44 | j_mayer | static void init_excp_4xx_softmmu (CPUPPCState *env) |
2535 | 80d11f44 | j_mayer | { |
2536 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2537 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000100;
|
2538 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2539 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2540 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2541 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2542 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2543 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2544 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2545 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PIT] = 0x00001000;
|
2546 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00001010;
|
2547 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001020;
|
2548 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00001100;
|
2549 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00001200;
|
2550 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00002000;
|
2551 | 80d11f44 | j_mayer | env->excp_prefix = 0x00000000UL;
|
2552 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2553 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2554 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2555 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2556 | 80d11f44 | j_mayer | #endif
|
2557 | 80d11f44 | j_mayer | } |
2558 | 80d11f44 | j_mayer | |
2559 | 80d11f44 | j_mayer | static void init_excp_MPC5xx (CPUPPCState *env) |
2560 | 80d11f44 | j_mayer | { |
2561 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2562 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2563 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2564 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2565 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2566 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2567 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000900;
|
2568 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2569 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2570 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2571 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPA] = 0x00000E00;
|
2572 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001000;
|
2573 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DABR] = 0x00001C00;
|
2574 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001C00;
|
2575 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MEXTBR] = 0x00001E00;
|
2576 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_NMEXTBR] = 0x00001F00;
|
2577 | 80d11f44 | j_mayer | env->excp_prefix = 0x00000000UL;
|
2578 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2579 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2580 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2581 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2582 | 80d11f44 | j_mayer | #endif
|
2583 | 80d11f44 | j_mayer | } |
2584 | 80d11f44 | j_mayer | |
2585 | 80d11f44 | j_mayer | static void init_excp_MPC8xx (CPUPPCState *env) |
2586 | e1833e1f | j_mayer | { |
2587 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2588 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2589 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2590 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2591 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2592 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2593 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2594 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2595 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000900;
|
2596 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2597 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2598 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2599 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPA] = 0x00000E00;
|
2600 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001000;
|
2601 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00001100;
|
2602 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00001200;
|
2603 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLBE] = 0x00001300;
|
2604 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLBE] = 0x00001400;
|
2605 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DABR] = 0x00001C00;
|
2606 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001C00;
|
2607 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MEXTBR] = 0x00001E00;
|
2608 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_NMEXTBR] = 0x00001F00;
|
2609 | 80d11f44 | j_mayer | env->excp_prefix = 0x00000000UL;
|
2610 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF0UL;
|
2611 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2612 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2613 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2614 | e1833e1f | j_mayer | #endif
|
2615 | e1833e1f | j_mayer | } |
2616 | e1833e1f | j_mayer | |
2617 | 80d11f44 | j_mayer | static void init_excp_G2 (CPUPPCState *env) |
2618 | e1833e1f | j_mayer | { |
2619 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2620 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2621 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2622 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2623 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2624 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2625 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2626 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2627 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2628 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2629 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000A00;
|
2630 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2631 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2632 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2633 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2634 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2635 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2636 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2637 | 80d11f44 | j_mayer | env->excp_prefix = 0x00000000UL;
|
2638 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2639 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2640 | 80d11f44 | j_mayer | #endif
|
2641 | 80d11f44 | j_mayer | } |
2642 | 80d11f44 | j_mayer | |
2643 | 80d11f44 | j_mayer | static void init_excp_e200 (CPUPPCState *env) |
2644 | 80d11f44 | j_mayer | { |
2645 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2646 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000FFC;
|
2647 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000000;
|
2648 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000000;
|
2649 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000000;
|
2650 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000000;
|
2651 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000000;
|
2652 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000000;
|
2653 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000000;
|
2654 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000000;
|
2655 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000000;
|
2656 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_APU] = 0x00000000;
|
2657 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000000;
|
2658 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00000000;
|
2659 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00000000;
|
2660 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00000000;
|
2661 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00000000;
|
2662 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00000000;
|
2663 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SPEU] = 0x00000000;
|
2664 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EFPDI] = 0x00000000;
|
2665 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EFPRI] = 0x00000000;
|
2666 | 80d11f44 | j_mayer | env->excp_prefix = 0x00000000UL;
|
2667 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFF7UL;
|
2668 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2669 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2670 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2671 | 80d11f44 | j_mayer | #endif
|
2672 | 80d11f44 | j_mayer | } |
2673 | 80d11f44 | j_mayer | |
2674 | 80d11f44 | j_mayer | static void init_excp_BookE (CPUPPCState *env) |
2675 | 80d11f44 | j_mayer | { |
2676 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2677 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000000;
|
2678 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000000;
|
2679 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000000;
|
2680 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000000;
|
2681 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000000;
|
2682 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000000;
|
2683 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000000;
|
2684 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000000;
|
2685 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000000;
|
2686 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_APU] = 0x00000000;
|
2687 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000000;
|
2688 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FIT] = 0x00000000;
|
2689 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00000000;
|
2690 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DTLB] = 0x00000000;
|
2691 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ITLB] = 0x00000000;
|
2692 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DEBUG] = 0x00000000;
|
2693 | 80d11f44 | j_mayer | env->excp_prefix = 0x00000000UL;
|
2694 | 80d11f44 | j_mayer | env->ivor_mask = 0x0000FFE0UL;
|
2695 | 80d11f44 | j_mayer | env->ivpr_mask = 0xFFFF0000UL;
|
2696 | 80d11f44 | j_mayer | /* Hardware reset vector */
|
2697 | 80d11f44 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2698 | 80d11f44 | j_mayer | #endif
|
2699 | 80d11f44 | j_mayer | } |
2700 | 80d11f44 | j_mayer | |
2701 | 80d11f44 | j_mayer | static void init_excp_601 (CPUPPCState *env) |
2702 | 80d11f44 | j_mayer | { |
2703 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2704 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2705 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2706 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2707 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2708 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2709 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2710 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2711 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2712 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2713 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_IO] = 0x00000A00;
|
2714 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2715 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_RUNM] = 0x00002000;
|
2716 | faadf50e | j_mayer | env->excp_prefix = 0xFFF00000UL;
|
2717 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2718 | 80d11f44 | j_mayer | env->hreset_vector = 0x00000100UL;
|
2719 | e1833e1f | j_mayer | #endif
|
2720 | e1833e1f | j_mayer | } |
2721 | e1833e1f | j_mayer | |
2722 | 80d11f44 | j_mayer | static void init_excp_602 (CPUPPCState *env) |
2723 | e1833e1f | j_mayer | { |
2724 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2725 | 082c6681 | j_mayer | /* XXX: exception prefix has a special behavior on 602 */
|
2726 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2727 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2728 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2729 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2730 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2731 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2732 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2733 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2734 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2735 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2736 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2737 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2738 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2739 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2740 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2741 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2742 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_WDT] = 0x00001500;
|
2743 | 80d11f44 | j_mayer | env->excp_vectors[POWERPC_EXCP_EMUL] = 0x00001600;
|
2744 | 80d11f44 | j_mayer | env->excp_prefix = 0xFFF00000UL;
|
2745 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2746 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2747 | e1833e1f | j_mayer | #endif
|
2748 | e1833e1f | j_mayer | } |
2749 | e1833e1f | j_mayer | |
2750 | 80d11f44 | j_mayer | static void init_excp_603 (CPUPPCState *env) |
2751 | e1833e1f | j_mayer | { |
2752 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2753 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2754 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2755 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2756 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2757 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2758 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2759 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2760 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2761 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2762 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2763 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2764 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2765 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2766 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2767 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2768 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2769 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2770 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2771 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2772 | e1833e1f | j_mayer | #endif
|
2773 | e1833e1f | j_mayer | } |
2774 | e1833e1f | j_mayer | |
2775 | e1833e1f | j_mayer | static void init_excp_604 (CPUPPCState *env) |
2776 | e1833e1f | j_mayer | { |
2777 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2778 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2779 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2780 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2781 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2782 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2783 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2784 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2785 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2786 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2787 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2788 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2789 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2790 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2791 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2792 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2793 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2794 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2795 | e1833e1f | j_mayer | #endif
|
2796 | e1833e1f | j_mayer | } |
2797 | e1833e1f | j_mayer | |
2798 | 578bb252 | j_mayer | #if defined(TARGET_PPC64)
|
2799 | e1833e1f | j_mayer | static void init_excp_620 (CPUPPCState *env) |
2800 | e1833e1f | j_mayer | { |
2801 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2802 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2803 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2804 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2805 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2806 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2807 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2808 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2809 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2810 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2811 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2812 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2813 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2814 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2815 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2816 | faadf50e | j_mayer | env->excp_prefix = 0xFFF00000UL;
|
2817 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2818 | faadf50e | j_mayer | env->hreset_vector = 0x0000000000000100ULL;
|
2819 | e1833e1f | j_mayer | #endif
|
2820 | e1833e1f | j_mayer | } |
2821 | 578bb252 | j_mayer | #endif /* defined(TARGET_PPC64) */ |
2822 | e1833e1f | j_mayer | |
2823 | e1833e1f | j_mayer | static void init_excp_7x0 (CPUPPCState *env) |
2824 | e1833e1f | j_mayer | { |
2825 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2826 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2827 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2828 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2829 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2830 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2831 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2832 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2833 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2834 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2835 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2836 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2837 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2838 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2839 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2840 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2841 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2842 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2843 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2844 | e1833e1f | j_mayer | #endif
|
2845 | e1833e1f | j_mayer | } |
2846 | e1833e1f | j_mayer | |
2847 | bd928eba | j_mayer | static void init_excp_750cl (CPUPPCState *env) |
2848 | e1833e1f | j_mayer | { |
2849 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2850 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2851 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2852 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2853 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2854 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2855 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2856 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2857 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2858 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2859 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2860 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2861 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2862 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2863 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2864 | bd928eba | j_mayer | env->excp_prefix = 0x00000000UL;
|
2865 | bd928eba | j_mayer | /* Hardware reset vector */
|
2866 | bd928eba | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2867 | bd928eba | j_mayer | #endif
|
2868 | bd928eba | j_mayer | } |
2869 | bd928eba | j_mayer | |
2870 | bd928eba | j_mayer | static void init_excp_750cx (CPUPPCState *env) |
2871 | bd928eba | j_mayer | { |
2872 | bd928eba | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2873 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2874 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2875 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2876 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2877 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2878 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2879 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2880 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2881 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2882 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2883 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2884 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2885 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2886 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2887 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2888 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2889 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2890 | e1833e1f | j_mayer | #endif
|
2891 | e1833e1f | j_mayer | } |
2892 | e1833e1f | j_mayer | |
2893 | 7a3a6927 | j_mayer | /* XXX: Check if this is correct */
|
2894 | 7a3a6927 | j_mayer | static void init_excp_7x5 (CPUPPCState *env) |
2895 | 7a3a6927 | j_mayer | { |
2896 | 7a3a6927 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2897 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2898 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2899 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2900 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2901 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2902 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2903 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2904 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2905 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2906 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2907 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2908 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2909 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2910 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2911 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2912 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2913 | 7a3a6927 | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2914 | bd928eba | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2915 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2916 | 7a3a6927 | j_mayer | /* Hardware reset vector */
|
2917 | 7a3a6927 | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2918 | 7a3a6927 | j_mayer | #endif
|
2919 | 7a3a6927 | j_mayer | } |
2920 | 7a3a6927 | j_mayer | |
2921 | e1833e1f | j_mayer | static void init_excp_7400 (CPUPPCState *env) |
2922 | e1833e1f | j_mayer | { |
2923 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2924 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2925 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2926 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2927 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2928 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2929 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2930 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2931 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2932 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2933 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2934 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2935 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2936 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
2937 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2938 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2939 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001600;
|
2940 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001700;
|
2941 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2942 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2943 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2944 | e1833e1f | j_mayer | #endif
|
2945 | e1833e1f | j_mayer | } |
2946 | e1833e1f | j_mayer | |
2947 | e1833e1f | j_mayer | static void init_excp_7450 (CPUPPCState *env) |
2948 | e1833e1f | j_mayer | { |
2949 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2950 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2951 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2952 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2953 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2954 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2955 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2956 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2957 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2958 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2959 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2960 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2961 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2962 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
2963 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IFTLB] = 0x00001000;
|
2964 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DLTLB] = 0x00001100;
|
2965 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSTLB] = 0x00001200;
|
2966 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2967 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SMI] = 0x00001400;
|
2968 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001600;
|
2969 | faadf50e | j_mayer | env->excp_prefix = 0x00000000UL;
|
2970 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
2971 | 1c27f8fb | j_mayer | env->hreset_vector = 0xFFFFFFFCUL;
|
2972 | e1833e1f | j_mayer | #endif
|
2973 | e1833e1f | j_mayer | } |
2974 | e1833e1f | j_mayer | |
2975 | e1833e1f | j_mayer | #if defined (TARGET_PPC64)
|
2976 | e1833e1f | j_mayer | static void init_excp_970 (CPUPPCState *env) |
2977 | e1833e1f | j_mayer | { |
2978 | e1833e1f | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
2979 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
|
2980 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
|
2981 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
|
2982 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DSEG] = 0x00000380;
|
2983 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
|
2984 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ISEG] = 0x00000480;
|
2985 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
|
2986 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_ALIGN] = 0x00000600;
|
2987 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PROGRAM] = 0x00000700;
|
2988 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_FPU] = 0x00000800;
|
2989 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_DECR] = 0x00000900;
|
2990 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_HDECR] = 0x00000980;
|
2991 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_SYSCALL] = 0x00000C00;
|
2992 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_TRACE] = 0x00000D00;
|
2993 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_PERFM] = 0x00000F00;
|
2994 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPU] = 0x00000F20;
|
2995 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_IABR] = 0x00001300;
|
2996 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_MAINT] = 0x00001600;
|
2997 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_VPUA] = 0x00001700;
|
2998 | e1833e1f | j_mayer | env->excp_vectors[POWERPC_EXCP_THERM] = 0x00001800;
|
2999 | faadf50e | j_mayer | env->excp_prefix = 0x00000000FFF00000ULL;
|
3000 | 1c27f8fb | j_mayer | /* Hardware reset vector */
|
3001 | 1c27f8fb | j_mayer | env->hreset_vector = 0x0000000000000100ULL;
|
3002 | e1833e1f | j_mayer | #endif
|
3003 | e1833e1f | j_mayer | } |
3004 | e1833e1f | j_mayer | #endif
|
3005 | e1833e1f | j_mayer | |
3006 | e1833e1f | j_mayer | /*****************************************************************************/
|
3007 | 2f462816 | j_mayer | /* Power management enable checks */
|
3008 | 2f462816 | j_mayer | static int check_pow_none (CPUPPCState *env) |
3009 | 2f462816 | j_mayer | { |
3010 | 2f462816 | j_mayer | return 0; |
3011 | 2f462816 | j_mayer | } |
3012 | 2f462816 | j_mayer | |
3013 | 2f462816 | j_mayer | static int check_pow_nocheck (CPUPPCState *env) |
3014 | 2f462816 | j_mayer | { |
3015 | 2f462816 | j_mayer | return 1; |
3016 | 2f462816 | j_mayer | } |
3017 | 2f462816 | j_mayer | |
3018 | 2f462816 | j_mayer | static int check_pow_hid0 (CPUPPCState *env) |
3019 | 2f462816 | j_mayer | { |
3020 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00E00000) |
3021 | 2f462816 | j_mayer | return 1; |
3022 | 2f462816 | j_mayer | |
3023 | 2f462816 | j_mayer | return 0; |
3024 | 2f462816 | j_mayer | } |
3025 | 2f462816 | j_mayer | |
3026 | 4e777442 | j_mayer | static int check_pow_hid0_74xx (CPUPPCState *env) |
3027 | 4e777442 | j_mayer | { |
3028 | 4e777442 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
3029 | 4e777442 | j_mayer | return 1; |
3030 | 4e777442 | j_mayer | |
3031 | 4e777442 | j_mayer | return 0; |
3032 | 4e777442 | j_mayer | } |
3033 | 4e777442 | j_mayer | |
3034 | 2f462816 | j_mayer | /*****************************************************************************/
|
3035 | a750fc0b | j_mayer | /* PowerPC implementations definitions */
|
3036 | 76a66253 | j_mayer | |
3037 | a750fc0b | j_mayer | /* PowerPC 401 */
|
3038 | 082c6681 | j_mayer | #define POWERPC_INSNS_401 (PPC_INSNS_BASE | PPC_STRING | \
|
3039 | 082c6681 | j_mayer | PPC_WRTEE | PPC_DCR | \ |
3040 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3041 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3042 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3043 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3044 | a750fc0b | j_mayer | #define POWERPC_MSRM_401 (0x00000000000FD201ULL) |
3045 | b4095fed | j_mayer | #define POWERPC_MMU_401 (POWERPC_MMU_REAL)
|
3046 | a750fc0b | j_mayer | #define POWERPC_EXCP_401 (POWERPC_EXCP_40x)
|
3047 | a750fc0b | j_mayer | #define POWERPC_INPUT_401 (PPC_FLAGS_INPUT_401)
|
3048 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401 (bfd_mach_ppc_403)
|
3049 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3050 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3051 | 2f462816 | j_mayer | #define check_pow_401 check_pow_nocheck
|
3052 | 76a66253 | j_mayer | |
3053 | a750fc0b | j_mayer | static void init_proc_401 (CPUPPCState *env) |
3054 | a750fc0b | j_mayer | { |
3055 | a750fc0b | j_mayer | gen_spr_40x(env); |
3056 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3057 | a750fc0b | j_mayer | gen_spr_401(env); |
3058 | e1833e1f | j_mayer | init_excp_4xx_real(env); |
3059 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3060 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3061 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3062 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3063 | a750fc0b | j_mayer | } |
3064 | 76a66253 | j_mayer | |
3065 | a750fc0b | j_mayer | /* PowerPC 401x2 */
|
3066 | 082c6681 | j_mayer | #define POWERPC_INSNS_401x2 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3067 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3068 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3069 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3070 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3071 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3072 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3073 | a750fc0b | j_mayer | #define POWERPC_MSRM_401x2 (0x00000000001FD231ULL) |
3074 | a750fc0b | j_mayer | #define POWERPC_MMU_401x2 (POWERPC_MMU_SOFT_4xx_Z)
|
3075 | a750fc0b | j_mayer | #define POWERPC_EXCP_401x2 (POWERPC_EXCP_40x)
|
3076 | a750fc0b | j_mayer | #define POWERPC_INPUT_401x2 (PPC_FLAGS_INPUT_401)
|
3077 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401x2 (bfd_mach_ppc_403)
|
3078 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401x2 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3079 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3080 | 2f462816 | j_mayer | #define check_pow_401x2 check_pow_nocheck
|
3081 | a750fc0b | j_mayer | |
3082 | a750fc0b | j_mayer | static void init_proc_401x2 (CPUPPCState *env) |
3083 | a750fc0b | j_mayer | { |
3084 | a750fc0b | j_mayer | gen_spr_40x(env); |
3085 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3086 | a750fc0b | j_mayer | gen_spr_401x2(env); |
3087 | a750fc0b | j_mayer | gen_spr_compress(env); |
3088 | a750fc0b | j_mayer | /* Memory management */
|
3089 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3090 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3091 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3092 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3093 | f2e63a42 | j_mayer | #endif
|
3094 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3095 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3096 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3097 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3098 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3099 | 76a66253 | j_mayer | } |
3100 | 76a66253 | j_mayer | |
3101 | a750fc0b | j_mayer | /* PowerPC 401x3 */
|
3102 | 082c6681 | j_mayer | #define POWERPC_INSNS_401x3 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3103 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3104 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3105 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3106 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3107 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3108 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3109 | a750fc0b | j_mayer | #define POWERPC_MSRM_401x3 (0x00000000001FD631ULL) |
3110 | a750fc0b | j_mayer | #define POWERPC_MMU_401x3 (POWERPC_MMU_SOFT_4xx_Z)
|
3111 | a750fc0b | j_mayer | #define POWERPC_EXCP_401x3 (POWERPC_EXCP_40x)
|
3112 | a750fc0b | j_mayer | #define POWERPC_INPUT_401x3 (PPC_FLAGS_INPUT_401)
|
3113 | 237c0af0 | j_mayer | #define POWERPC_BFDM_401x3 (bfd_mach_ppc_403)
|
3114 | 4018bae9 | j_mayer | #define POWERPC_FLAG_401x3 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3115 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3116 | 2f462816 | j_mayer | #define check_pow_401x3 check_pow_nocheck
|
3117 | a750fc0b | j_mayer | |
3118 | 578bb252 | j_mayer | __attribute__ (( unused )) |
3119 | e1833e1f | j_mayer | static void init_proc_401x3 (CPUPPCState *env) |
3120 | 76a66253 | j_mayer | { |
3121 | 4e290a0b | j_mayer | gen_spr_40x(env); |
3122 | 4e290a0b | j_mayer | gen_spr_401_403(env); |
3123 | 4e290a0b | j_mayer | gen_spr_401(env); |
3124 | 4e290a0b | j_mayer | gen_spr_401x2(env); |
3125 | 4e290a0b | j_mayer | gen_spr_compress(env); |
3126 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3127 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3128 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3129 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3130 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3131 | 3fc6c082 | bellard | } |
3132 | a750fc0b | j_mayer | |
3133 | a750fc0b | j_mayer | /* IOP480 */
|
3134 | 082c6681 | j_mayer | #define POWERPC_INSNS_IOP480 (PPC_INSNS_BASE | PPC_STRING | \
|
3135 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3136 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3137 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3138 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3139 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3140 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3141 | a750fc0b | j_mayer | #define POWERPC_MSRM_IOP480 (0x00000000001FD231ULL) |
3142 | a750fc0b | j_mayer | #define POWERPC_MMU_IOP480 (POWERPC_MMU_SOFT_4xx_Z)
|
3143 | a750fc0b | j_mayer | #define POWERPC_EXCP_IOP480 (POWERPC_EXCP_40x)
|
3144 | a750fc0b | j_mayer | #define POWERPC_INPUT_IOP480 (PPC_FLAGS_INPUT_401)
|
3145 | 237c0af0 | j_mayer | #define POWERPC_BFDM_IOP480 (bfd_mach_ppc_403)
|
3146 | 4018bae9 | j_mayer | #define POWERPC_FLAG_IOP480 (POWERPC_FLAG_CE | POWERPC_FLAG_DE | \
|
3147 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3148 | 2f462816 | j_mayer | #define check_pow_IOP480 check_pow_nocheck
|
3149 | a750fc0b | j_mayer | |
3150 | a750fc0b | j_mayer | static void init_proc_IOP480 (CPUPPCState *env) |
3151 | 3fc6c082 | bellard | { |
3152 | a750fc0b | j_mayer | gen_spr_40x(env); |
3153 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3154 | a750fc0b | j_mayer | gen_spr_401x2(env); |
3155 | a750fc0b | j_mayer | gen_spr_compress(env); |
3156 | a750fc0b | j_mayer | /* Memory management */
|
3157 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3158 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3159 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3160 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3161 | f2e63a42 | j_mayer | #endif
|
3162 | e1833e1f | j_mayer | init_excp_4xx_softmmu(env); |
3163 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3164 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3165 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3166 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3167 | 3fc6c082 | bellard | } |
3168 | 3fc6c082 | bellard | |
3169 | a750fc0b | j_mayer | /* PowerPC 403 */
|
3170 | 082c6681 | j_mayer | #define POWERPC_INSNS_403 (PPC_INSNS_BASE | PPC_STRING | \
|
3171 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3172 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3173 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3174 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3175 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3176 | a750fc0b | j_mayer | #define POWERPC_MSRM_403 (0x000000000007D00DULL) |
3177 | b4095fed | j_mayer | #define POWERPC_MMU_403 (POWERPC_MMU_REAL)
|
3178 | a750fc0b | j_mayer | #define POWERPC_EXCP_403 (POWERPC_EXCP_40x)
|
3179 | a750fc0b | j_mayer | #define POWERPC_INPUT_403 (PPC_FLAGS_INPUT_401)
|
3180 | 237c0af0 | j_mayer | #define POWERPC_BFDM_403 (bfd_mach_ppc_403)
|
3181 | 4018bae9 | j_mayer | #define POWERPC_FLAG_403 (POWERPC_FLAG_CE | POWERPC_FLAG_PX | \
|
3182 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3183 | 2f462816 | j_mayer | #define check_pow_403 check_pow_nocheck
|
3184 | a750fc0b | j_mayer | |
3185 | a750fc0b | j_mayer | static void init_proc_403 (CPUPPCState *env) |
3186 | 3fc6c082 | bellard | { |
3187 | a750fc0b | j_mayer | gen_spr_40x(env); |
3188 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3189 | a750fc0b | j_mayer | gen_spr_403(env); |
3190 | a750fc0b | j_mayer | gen_spr_403_real(env); |
3191 | e1833e1f | j_mayer | init_excp_4xx_real(env); |
3192 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3193 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3194 | 4e290a0b | j_mayer | /* Allocate hardware IRQ controller */
|
3195 | 4e290a0b | j_mayer | ppc40x_irq_init(env); |
3196 | 3fc6c082 | bellard | } |
3197 | 3fc6c082 | bellard | |
3198 | a750fc0b | j_mayer | /* PowerPC 403 GCX */
|
3199 | 082c6681 | j_mayer | #define POWERPC_INSNS_403GCX (PPC_INSNS_BASE | PPC_STRING | \
|
3200 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3201 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3202 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | \ |
3203 | a750fc0b | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3204 | a750fc0b | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3205 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_40x_EXCP) |
3206 | a750fc0b | j_mayer | #define POWERPC_MSRM_403GCX (0x000000000007D00DULL) |
3207 | a750fc0b | j_mayer | #define POWERPC_MMU_403GCX (POWERPC_MMU_SOFT_4xx_Z)
|
3208 | a750fc0b | j_mayer | #define POWERPC_EXCP_403GCX (POWERPC_EXCP_40x)
|
3209 | a750fc0b | j_mayer | #define POWERPC_INPUT_403GCX (PPC_FLAGS_INPUT_401)
|
3210 | 237c0af0 | j_mayer | #define POWERPC_BFDM_403GCX (bfd_mach_ppc_403)
|
3211 | 4018bae9 | j_mayer | #define POWERPC_FLAG_403GCX (POWERPC_FLAG_CE | POWERPC_FLAG_PX | \
|
3212 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3213 | 2f462816 | j_mayer | #define check_pow_403GCX check_pow_nocheck
|
3214 | a750fc0b | j_mayer | |
3215 | a750fc0b | j_mayer | static void init_proc_403GCX (CPUPPCState *env) |
3216 | 3fc6c082 | bellard | { |
3217 | a750fc0b | j_mayer | gen_spr_40x(env); |
3218 | a750fc0b | j_mayer | gen_spr_401_403(env); |
3219 | a750fc0b | j_mayer | gen_spr_403(env); |
3220 | a750fc0b | j_mayer | gen_spr_403_real(env); |
3221 | a750fc0b | j_mayer | gen_spr_403_mmu(env); |
3222 | a750fc0b | j_mayer | /* Bus access control */
|
3223 | 035feb88 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
3224 | a750fc0b | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
3225 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3226 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3227 | a750fc0b | j_mayer | 0xFFFFFFFF);
|
3228 | 035feb88 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
3229 | a750fc0b | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
3230 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3231 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3232 | a750fc0b | j_mayer | 0x00000000);
|
3233 | a750fc0b | j_mayer | /* Memory management */
|
3234 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3235 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3236 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3237 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3238 | f2e63a42 | j_mayer | #endif
|
3239 | 80d11f44 | j_mayer | init_excp_4xx_softmmu(env); |
3240 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3241 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3242 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3243 | 80d11f44 | j_mayer | ppc40x_irq_init(env); |
3244 | 80d11f44 | j_mayer | } |
3245 | 80d11f44 | j_mayer | |
3246 | 80d11f44 | j_mayer | /* PowerPC 405 */
|
3247 | 082c6681 | j_mayer | #define POWERPC_INSNS_405 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3248 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3249 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT | \ |
3250 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3251 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3252 | 80d11f44 | j_mayer | PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC | \ |
3253 | 082c6681 | j_mayer | PPC_4xx_COMMON | PPC_405_MAC | PPC_40x_EXCP) |
3254 | 80d11f44 | j_mayer | #define POWERPC_MSRM_405 (0x000000000006E630ULL) |
3255 | 80d11f44 | j_mayer | #define POWERPC_MMU_405 (POWERPC_MMU_SOFT_4xx)
|
3256 | 80d11f44 | j_mayer | #define POWERPC_EXCP_405 (POWERPC_EXCP_40x)
|
3257 | 80d11f44 | j_mayer | #define POWERPC_INPUT_405 (PPC_FLAGS_INPUT_405)
|
3258 | 80d11f44 | j_mayer | #define POWERPC_BFDM_405 (bfd_mach_ppc_403)
|
3259 | 80d11f44 | j_mayer | #define POWERPC_FLAG_405 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3260 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3261 | 80d11f44 | j_mayer | #define check_pow_405 check_pow_nocheck
|
3262 | 80d11f44 | j_mayer | |
3263 | 80d11f44 | j_mayer | static void init_proc_405 (CPUPPCState *env) |
3264 | 80d11f44 | j_mayer | { |
3265 | 80d11f44 | j_mayer | /* Time base */
|
3266 | 80d11f44 | j_mayer | gen_tbl(env); |
3267 | 80d11f44 | j_mayer | gen_spr_40x(env); |
3268 | 80d11f44 | j_mayer | gen_spr_405(env); |
3269 | 80d11f44 | j_mayer | /* Bus access control */
|
3270 | 80d11f44 | j_mayer | /* not emulated, as Qemu never does speculative access */
|
3271 | 80d11f44 | j_mayer | spr_register(env, SPR_40x_SGR, "SGR",
|
3272 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3273 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3274 | 80d11f44 | j_mayer | 0xFFFFFFFF);
|
3275 | 80d11f44 | j_mayer | /* not emulated, as Qemu do not emulate caches */
|
3276 | 80d11f44 | j_mayer | spr_register(env, SPR_40x_DCWR, "DCWR",
|
3277 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3278 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3279 | 80d11f44 | j_mayer | 0x00000000);
|
3280 | 80d11f44 | j_mayer | /* Memory management */
|
3281 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3282 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3283 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3284 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3285 | 80d11f44 | j_mayer | #endif
|
3286 | 80d11f44 | j_mayer | init_excp_4xx_softmmu(env); |
3287 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3288 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3289 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3290 | 80d11f44 | j_mayer | ppc40x_irq_init(env); |
3291 | 80d11f44 | j_mayer | } |
3292 | 80d11f44 | j_mayer | |
3293 | 80d11f44 | j_mayer | /* PowerPC 440 EP */
|
3294 | 082c6681 | j_mayer | #define POWERPC_INSNS_440EP (PPC_INSNS_BASE | PPC_STRING | \
|
3295 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | PPC_RFMCI | \ |
3296 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3297 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3298 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | \ |
3299 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3300 | 082c6681 | j_mayer | PPC_440_SPEC) |
3301 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440EP (0x000000000006D630ULL) |
3302 | 80d11f44 | j_mayer | #define POWERPC_MMU_440EP (POWERPC_MMU_BOOKE)
|
3303 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440EP (POWERPC_EXCP_BOOKE)
|
3304 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440EP (PPC_FLAGS_INPUT_BookE)
|
3305 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440EP (bfd_mach_ppc_403)
|
3306 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440EP (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3307 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3308 | 80d11f44 | j_mayer | #define check_pow_440EP check_pow_nocheck
|
3309 | 80d11f44 | j_mayer | |
3310 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3311 | 80d11f44 | j_mayer | static void init_proc_440EP (CPUPPCState *env) |
3312 | 80d11f44 | j_mayer | { |
3313 | 80d11f44 | j_mayer | /* Time base */
|
3314 | 80d11f44 | j_mayer | gen_tbl(env); |
3315 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3316 | 80d11f44 | j_mayer | gen_spr_440(env); |
3317 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3318 | 80d11f44 | j_mayer | /* Processor identification */
|
3319 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3320 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3321 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3322 | 80d11f44 | j_mayer | 0x00000000);
|
3323 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3324 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3325 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3326 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3327 | 80d11f44 | j_mayer | 0x00000000);
|
3328 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3329 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3330 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3331 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3332 | 80d11f44 | j_mayer | 0x00000000);
|
3333 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3334 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3335 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3336 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3337 | 80d11f44 | j_mayer | 0x00000000);
|
3338 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3339 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3340 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3341 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3342 | 80d11f44 | j_mayer | 0x00000000);
|
3343 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3344 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3345 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3346 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3347 | 80d11f44 | j_mayer | 0x00000000);
|
3348 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3349 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3350 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3351 | 80d11f44 | j_mayer | 0x00000000);
|
3352 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3353 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3354 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3355 | 80d11f44 | j_mayer | 0x00000000);
|
3356 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3357 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3358 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3359 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3360 | 80d11f44 | j_mayer | 0x00000000);
|
3361 | 80d11f44 | j_mayer | /* Memory management */
|
3362 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3363 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3364 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3365 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3366 | 80d11f44 | j_mayer | #endif
|
3367 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3368 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3369 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3370 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3371 | 80d11f44 | j_mayer | } |
3372 | 80d11f44 | j_mayer | |
3373 | 80d11f44 | j_mayer | /* PowerPC 440 GP */
|
3374 | 082c6681 | j_mayer | #define POWERPC_INSNS_440GP (PPC_INSNS_BASE | PPC_STRING | \
|
3375 | 082c6681 | j_mayer | PPC_DCR | PPC_DCRX | PPC_WRTEE | PPC_MFAPIDI | \ |
3376 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3377 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3378 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVA | \ |
3379 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3380 | 082c6681 | j_mayer | PPC_440_SPEC) |
3381 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440GP (0x000000000006FF30ULL) |
3382 | 80d11f44 | j_mayer | #define POWERPC_MMU_440GP (POWERPC_MMU_BOOKE)
|
3383 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440GP (POWERPC_EXCP_BOOKE)
|
3384 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440GP (PPC_FLAGS_INPUT_BookE)
|
3385 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440GP (bfd_mach_ppc_403)
|
3386 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440GP (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3387 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3388 | 80d11f44 | j_mayer | #define check_pow_440GP check_pow_nocheck
|
3389 | 80d11f44 | j_mayer | |
3390 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3391 | 80d11f44 | j_mayer | static void init_proc_440GP (CPUPPCState *env) |
3392 | 80d11f44 | j_mayer | { |
3393 | 80d11f44 | j_mayer | /* Time base */
|
3394 | 80d11f44 | j_mayer | gen_tbl(env); |
3395 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3396 | 80d11f44 | j_mayer | gen_spr_440(env); |
3397 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3398 | 80d11f44 | j_mayer | /* Processor identification */
|
3399 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3400 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3401 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3402 | 80d11f44 | j_mayer | 0x00000000);
|
3403 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3404 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3405 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3406 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3407 | 80d11f44 | j_mayer | 0x00000000);
|
3408 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3409 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3410 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3411 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3412 | 80d11f44 | j_mayer | 0x00000000);
|
3413 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3414 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3415 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3416 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3417 | 80d11f44 | j_mayer | 0x00000000);
|
3418 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3419 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3420 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3421 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3422 | 80d11f44 | j_mayer | 0x00000000);
|
3423 | 80d11f44 | j_mayer | /* Memory management */
|
3424 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3425 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3426 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3427 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3428 | 80d11f44 | j_mayer | #endif
|
3429 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3430 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3431 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3432 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3433 | 80d11f44 | j_mayer | } |
3434 | 80d11f44 | j_mayer | |
3435 | 80d11f44 | j_mayer | /* PowerPC 440x4 */
|
3436 | 082c6681 | j_mayer | #define POWERPC_INSNS_440x4 (PPC_INSNS_BASE | PPC_STRING | \
|
3437 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | \ |
3438 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3439 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3440 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | \ |
3441 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3442 | 80d11f44 | j_mayer | PPC_440_SPEC) |
3443 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440x4 (0x000000000006FF30ULL) |
3444 | 80d11f44 | j_mayer | #define POWERPC_MMU_440x4 (POWERPC_MMU_BOOKE)
|
3445 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440x4 (POWERPC_EXCP_BOOKE)
|
3446 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440x4 (PPC_FLAGS_INPUT_BookE)
|
3447 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440x4 (bfd_mach_ppc_403)
|
3448 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440x4 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3449 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3450 | 80d11f44 | j_mayer | #define check_pow_440x4 check_pow_nocheck
|
3451 | 80d11f44 | j_mayer | |
3452 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3453 | 80d11f44 | j_mayer | static void init_proc_440x4 (CPUPPCState *env) |
3454 | 80d11f44 | j_mayer | { |
3455 | 80d11f44 | j_mayer | /* Time base */
|
3456 | 80d11f44 | j_mayer | gen_tbl(env); |
3457 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3458 | 80d11f44 | j_mayer | gen_spr_440(env); |
3459 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3460 | 80d11f44 | j_mayer | /* Processor identification */
|
3461 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3462 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3463 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3464 | 80d11f44 | j_mayer | 0x00000000);
|
3465 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3466 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3467 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3468 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3469 | 80d11f44 | j_mayer | 0x00000000);
|
3470 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3471 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3472 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3473 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3474 | 80d11f44 | j_mayer | 0x00000000);
|
3475 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3476 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3477 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3478 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3479 | 80d11f44 | j_mayer | 0x00000000);
|
3480 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3481 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3482 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3483 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3484 | 80d11f44 | j_mayer | 0x00000000);
|
3485 | 80d11f44 | j_mayer | /* Memory management */
|
3486 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3487 | 80d11f44 | j_mayer | env->nb_tlb = 64;
|
3488 | 80d11f44 | j_mayer | env->nb_ways = 1;
|
3489 | 80d11f44 | j_mayer | env->id_tlbs = 0;
|
3490 | 80d11f44 | j_mayer | #endif
|
3491 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3492 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3493 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3494 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3495 | 3fc6c082 | bellard | } |
3496 | 3fc6c082 | bellard | |
3497 | 80d11f44 | j_mayer | /* PowerPC 440x5 */
|
3498 | 082c6681 | j_mayer | #define POWERPC_INSNS_440x5 (PPC_INSNS_BASE | PPC_STRING | \
|
3499 | 082c6681 | j_mayer | PPC_DCR | PPC_WRTEE | PPC_RFMCI | \ |
3500 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3501 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3502 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | \ |
3503 | 80d11f44 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3504 | 082c6681 | j_mayer | PPC_440_SPEC) |
3505 | 80d11f44 | j_mayer | #define POWERPC_MSRM_440x5 (0x000000000006FF30ULL) |
3506 | 80d11f44 | j_mayer | #define POWERPC_MMU_440x5 (POWERPC_MMU_BOOKE)
|
3507 | 80d11f44 | j_mayer | #define POWERPC_EXCP_440x5 (POWERPC_EXCP_BOOKE)
|
3508 | 80d11f44 | j_mayer | #define POWERPC_INPUT_440x5 (PPC_FLAGS_INPUT_BookE)
|
3509 | 80d11f44 | j_mayer | #define POWERPC_BFDM_440x5 (bfd_mach_ppc_403)
|
3510 | 80d11f44 | j_mayer | #define POWERPC_FLAG_440x5 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3511 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3512 | 80d11f44 | j_mayer | #define check_pow_440x5 check_pow_nocheck
|
3513 | a750fc0b | j_mayer | |
3514 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3515 | 80d11f44 | j_mayer | static void init_proc_440x5 (CPUPPCState *env) |
3516 | 3fc6c082 | bellard | { |
3517 | a750fc0b | j_mayer | /* Time base */
|
3518 | a750fc0b | j_mayer | gen_tbl(env); |
3519 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3520 | 80d11f44 | j_mayer | gen_spr_440(env); |
3521 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3522 | 80d11f44 | j_mayer | /* Processor identification */
|
3523 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3524 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3525 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3526 | 80d11f44 | j_mayer | 0x00000000);
|
3527 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3528 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3529 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3530 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3531 | 80d11f44 | j_mayer | 0x00000000);
|
3532 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3533 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3534 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3535 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3536 | 80d11f44 | j_mayer | 0x00000000);
|
3537 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3538 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3539 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3540 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3541 | 80d11f44 | j_mayer | 0x00000000);
|
3542 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3543 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3544 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3545 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3546 | 80d11f44 | j_mayer | 0x00000000);
|
3547 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3548 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3549 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3550 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3551 | 80d11f44 | j_mayer | 0x00000000);
|
3552 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3553 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3554 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3555 | 80d11f44 | j_mayer | 0x00000000);
|
3556 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3557 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3558 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3559 | 80d11f44 | j_mayer | 0x00000000);
|
3560 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3561 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3562 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3563 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3564 | a750fc0b | j_mayer | 0x00000000);
|
3565 | a750fc0b | j_mayer | /* Memory management */
|
3566 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3567 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3568 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3569 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3570 | f2e63a42 | j_mayer | #endif
|
3571 | 80d11f44 | j_mayer | init_excp_BookE(env); |
3572 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3573 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3574 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3575 | 3fc6c082 | bellard | } |
3576 | 3fc6c082 | bellard | |
3577 | 80d11f44 | j_mayer | /* PowerPC 460 (guessed) */
|
3578 | 082c6681 | j_mayer | #define POWERPC_INSNS_460 (PPC_INSNS_BASE | PPC_STRING | \
|
3579 | 80d11f44 | j_mayer | PPC_DCR | PPC_DCRX | PPC_DCRUX | \ |
3580 | 082c6681 | j_mayer | PPC_WRTEE | PPC_MFAPIDI | \ |
3581 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3582 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3583 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVA | \ |
3584 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3585 | 082c6681 | j_mayer | PPC_440_SPEC) |
3586 | 80d11f44 | j_mayer | #define POWERPC_MSRM_460 (0x000000000006FF30ULL) |
3587 | 80d11f44 | j_mayer | #define POWERPC_MMU_460 (POWERPC_MMU_BOOKE)
|
3588 | 80d11f44 | j_mayer | #define POWERPC_EXCP_460 (POWERPC_EXCP_BOOKE)
|
3589 | 80d11f44 | j_mayer | #define POWERPC_INPUT_460 (PPC_FLAGS_INPUT_BookE)
|
3590 | 80d11f44 | j_mayer | #define POWERPC_BFDM_460 (bfd_mach_ppc_403)
|
3591 | 80d11f44 | j_mayer | #define POWERPC_FLAG_460 (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3592 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3593 | 80d11f44 | j_mayer | #define check_pow_460 check_pow_nocheck
|
3594 | a750fc0b | j_mayer | |
3595 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3596 | 80d11f44 | j_mayer | static void init_proc_460 (CPUPPCState *env) |
3597 | 3fc6c082 | bellard | { |
3598 | a750fc0b | j_mayer | /* Time base */
|
3599 | a750fc0b | j_mayer | gen_tbl(env); |
3600 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3601 | a750fc0b | j_mayer | gen_spr_440(env); |
3602 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3603 | 80d11f44 | j_mayer | /* Processor identification */
|
3604 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3605 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3606 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3607 | 80d11f44 | j_mayer | 0x00000000);
|
3608 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3609 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3610 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3611 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3612 | 80d11f44 | j_mayer | 0x00000000);
|
3613 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3614 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3615 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3616 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3617 | 80d11f44 | j_mayer | 0x00000000);
|
3618 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3619 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3620 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3621 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3622 | 80d11f44 | j_mayer | 0x00000000);
|
3623 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3624 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3625 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3626 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3627 | 80d11f44 | j_mayer | 0x00000000);
|
3628 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3629 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3630 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3631 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3632 | a750fc0b | j_mayer | 0x00000000);
|
3633 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3634 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3635 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3636 | a750fc0b | j_mayer | 0x00000000);
|
3637 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3638 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3639 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3640 | a750fc0b | j_mayer | 0x00000000);
|
3641 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3642 | a750fc0b | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3643 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3644 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3645 | a750fc0b | j_mayer | 0x00000000);
|
3646 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3647 | 80d11f44 | j_mayer | spr_register(env, SPR_DCRIPR, "SPR_DCRIPR",
|
3648 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3649 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3650 | 80d11f44 | j_mayer | 0x00000000);
|
3651 | a750fc0b | j_mayer | /* Memory management */
|
3652 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3653 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3654 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3655 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3656 | f2e63a42 | j_mayer | #endif
|
3657 | e1833e1f | j_mayer | init_excp_BookE(env); |
3658 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3659 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3660 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3661 | 3fc6c082 | bellard | } |
3662 | 3fc6c082 | bellard | |
3663 | 80d11f44 | j_mayer | /* PowerPC 460F (guessed) */
|
3664 | 082c6681 | j_mayer | #define POWERPC_INSNS_460F (PPC_INSNS_BASE | PPC_STRING | \
|
3665 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FRES | PPC_FLOAT_FSEL | \ |
3666 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
3667 | 80d11f44 | j_mayer | PPC_FLOAT_STFIWX | \ |
3668 | 082c6681 | j_mayer | PPC_DCR | PPC_DCRX | PPC_DCRUX | \ |
3669 | 082c6681 | j_mayer | PPC_WRTEE | PPC_MFAPIDI | \ |
3670 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
3671 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3672 | 082c6681 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVA | \ |
3673 | 082c6681 | j_mayer | PPC_BOOKE | PPC_4xx_COMMON | PPC_405_MAC | \ |
3674 | 082c6681 | j_mayer | PPC_440_SPEC) |
3675 | 80d11f44 | j_mayer | #define POWERPC_MSRM_460 (0x000000000006FF30ULL) |
3676 | 80d11f44 | j_mayer | #define POWERPC_MMU_460F (POWERPC_MMU_BOOKE)
|
3677 | 80d11f44 | j_mayer | #define POWERPC_EXCP_460F (POWERPC_EXCP_BOOKE)
|
3678 | 80d11f44 | j_mayer | #define POWERPC_INPUT_460F (PPC_FLAGS_INPUT_BookE)
|
3679 | 80d11f44 | j_mayer | #define POWERPC_BFDM_460F (bfd_mach_ppc_403)
|
3680 | 80d11f44 | j_mayer | #define POWERPC_FLAG_460F (POWERPC_FLAG_CE | POWERPC_FLAG_DWE | \
|
3681 | 4018bae9 | j_mayer | POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK) |
3682 | 80d11f44 | j_mayer | #define check_pow_460F check_pow_nocheck
|
3683 | a750fc0b | j_mayer | |
3684 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3685 | 80d11f44 | j_mayer | static void init_proc_460F (CPUPPCState *env) |
3686 | 3fc6c082 | bellard | { |
3687 | a750fc0b | j_mayer | /* Time base */
|
3688 | a750fc0b | j_mayer | gen_tbl(env); |
3689 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000000000FFFFULL);
|
3690 | a750fc0b | j_mayer | gen_spr_440(env); |
3691 | 80d11f44 | j_mayer | gen_spr_usprgh(env); |
3692 | 80d11f44 | j_mayer | /* Processor identification */
|
3693 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
3694 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3695 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
3696 | 80d11f44 | j_mayer | 0x00000000);
|
3697 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3698 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
3699 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3700 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3701 | 80d11f44 | j_mayer | 0x00000000);
|
3702 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3703 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
3704 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3705 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3706 | 80d11f44 | j_mayer | 0x00000000);
|
3707 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3708 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC1, "DVC1",
|
3709 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3710 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3711 | 80d11f44 | j_mayer | 0x00000000);
|
3712 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3713 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DVC2, "DVC2",
|
3714 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3715 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3716 | 80d11f44 | j_mayer | 0x00000000);
|
3717 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3718 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
3719 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3720 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3721 | 80d11f44 | j_mayer | 0x00000000);
|
3722 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
3723 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3724 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3725 | 80d11f44 | j_mayer | 0x00000000);
|
3726 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
3727 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3728 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3729 | 80d11f44 | j_mayer | 0x00000000);
|
3730 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3731 | 80d11f44 | j_mayer | spr_register(env, SPR_440_CCR1, "CCR1",
|
3732 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3733 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3734 | 80d11f44 | j_mayer | 0x00000000);
|
3735 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3736 | 80d11f44 | j_mayer | spr_register(env, SPR_DCRIPR, "SPR_DCRIPR",
|
3737 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3738 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3739 | 80d11f44 | j_mayer | 0x00000000);
|
3740 | a750fc0b | j_mayer | /* Memory management */
|
3741 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
3742 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
3743 | a750fc0b | j_mayer | env->nb_ways = 1;
|
3744 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
3745 | f2e63a42 | j_mayer | #endif
|
3746 | e1833e1f | j_mayer | init_excp_BookE(env); |
3747 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3748 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3749 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3750 | 3fc6c082 | bellard | } |
3751 | 3fc6c082 | bellard | |
3752 | 80d11f44 | j_mayer | /* Freescale 5xx cores (aka RCPU) */
|
3753 | 80d11f44 | j_mayer | #define POWERPC_INSNS_MPC5xx (PPC_INSNS_BASE | PPC_STRING | \
|
3754 | 80d11f44 | j_mayer | PPC_MEM_EIEIO | PPC_MEM_SYNC | \ |
3755 | 80d11f44 | j_mayer | PPC_CACHE_ICBI | PPC_FLOAT | PPC_FLOAT_STFIWX | \ |
3756 | 80d11f44 | j_mayer | PPC_MFTB) |
3757 | 80d11f44 | j_mayer | #define POWERPC_MSRM_MPC5xx (0x000000000001FF43ULL) |
3758 | 80d11f44 | j_mayer | #define POWERPC_MMU_MPC5xx (POWERPC_MMU_REAL)
|
3759 | 80d11f44 | j_mayer | #define POWERPC_EXCP_MPC5xx (POWERPC_EXCP_603)
|
3760 | 80d11f44 | j_mayer | #define POWERPC_INPUT_MPC5xx (PPC_FLAGS_INPUT_RCPU)
|
3761 | 80d11f44 | j_mayer | #define POWERPC_BFDM_MPC5xx (bfd_mach_ppc_505)
|
3762 | 4018bae9 | j_mayer | #define POWERPC_FLAG_MPC5xx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
3763 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3764 | 80d11f44 | j_mayer | #define check_pow_MPC5xx check_pow_none
|
3765 | 80d11f44 | j_mayer | |
3766 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3767 | 80d11f44 | j_mayer | static void init_proc_MPC5xx (CPUPPCState *env) |
3768 | 80d11f44 | j_mayer | { |
3769 | 80d11f44 | j_mayer | /* Time base */
|
3770 | 80d11f44 | j_mayer | gen_tbl(env); |
3771 | 80d11f44 | j_mayer | gen_spr_5xx_8xx(env); |
3772 | 80d11f44 | j_mayer | gen_spr_5xx(env); |
3773 | 80d11f44 | j_mayer | init_excp_MPC5xx(env); |
3774 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3775 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3776 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3777 | 80d11f44 | j_mayer | } |
3778 | 80d11f44 | j_mayer | |
3779 | 80d11f44 | j_mayer | /* Freescale 8xx cores (aka PowerQUICC) */
|
3780 | 80d11f44 | j_mayer | #define POWERPC_INSNS_MPC8xx (PPC_INSNS_BASE | PPC_STRING | \
|
3781 | 80d11f44 | j_mayer | PPC_MEM_EIEIO | PPC_MEM_SYNC | \ |
3782 | 80d11f44 | j_mayer | PPC_CACHE_ICBI | PPC_MFTB) |
3783 | 80d11f44 | j_mayer | #define POWERPC_MSRM_MPC8xx (0x000000000001F673ULL) |
3784 | 80d11f44 | j_mayer | #define POWERPC_MMU_MPC8xx (POWERPC_MMU_MPC8xx)
|
3785 | 80d11f44 | j_mayer | #define POWERPC_EXCP_MPC8xx (POWERPC_EXCP_603)
|
3786 | 80d11f44 | j_mayer | #define POWERPC_INPUT_MPC8xx (PPC_FLAGS_INPUT_RCPU)
|
3787 | 80d11f44 | j_mayer | #define POWERPC_BFDM_MPC8xx (bfd_mach_ppc_860)
|
3788 | 4018bae9 | j_mayer | #define POWERPC_FLAG_MPC8xx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
3789 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3790 | 80d11f44 | j_mayer | #define check_pow_MPC8xx check_pow_none
|
3791 | 80d11f44 | j_mayer | |
3792 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
3793 | 80d11f44 | j_mayer | static void init_proc_MPC8xx (CPUPPCState *env) |
3794 | 80d11f44 | j_mayer | { |
3795 | 80d11f44 | j_mayer | /* Time base */
|
3796 | 80d11f44 | j_mayer | gen_tbl(env); |
3797 | 80d11f44 | j_mayer | gen_spr_5xx_8xx(env); |
3798 | 80d11f44 | j_mayer | gen_spr_8xx(env); |
3799 | 80d11f44 | j_mayer | init_excp_MPC8xx(env); |
3800 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
3801 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
3802 | 80d11f44 | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
3803 | 80d11f44 | j_mayer | } |
3804 | 80d11f44 | j_mayer | |
3805 | 80d11f44 | j_mayer | /* Freescale 82xx cores (aka PowerQUICC-II) */
|
3806 | 80d11f44 | j_mayer | /* PowerPC G2 */
|
3807 | 082c6681 | j_mayer | #define POWERPC_INSNS_G2 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3808 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
3809 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
3810 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
3811 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3812 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
3813 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
3814 | 80d11f44 | j_mayer | #define POWERPC_MSRM_G2 (0x000000000006FFF2ULL) |
3815 | 80d11f44 | j_mayer | #define POWERPC_MMU_G2 (POWERPC_MMU_SOFT_6xx)
|
3816 | 80d11f44 | j_mayer | //#define POWERPC_EXCP_G2 (POWERPC_EXCP_G2)
|
3817 | 80d11f44 | j_mayer | #define POWERPC_INPUT_G2 (PPC_FLAGS_INPUT_6xx)
|
3818 | 80d11f44 | j_mayer | #define POWERPC_BFDM_G2 (bfd_mach_ppc_ec603e)
|
3819 | 80d11f44 | j_mayer | #define POWERPC_FLAG_G2 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
3820 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
3821 | 80d11f44 | j_mayer | #define check_pow_G2 check_pow_hid0
|
3822 | a750fc0b | j_mayer | |
3823 | 80d11f44 | j_mayer | static void init_proc_G2 (CPUPPCState *env) |
3824 | 3fc6c082 | bellard | { |
3825 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
3826 | 80d11f44 | j_mayer | gen_spr_G2_755(env); |
3827 | 80d11f44 | j_mayer | gen_spr_G2(env); |
3828 | a750fc0b | j_mayer | /* Time base */
|
3829 | a750fc0b | j_mayer | gen_tbl(env); |
3830 | bd928eba | j_mayer | /* External access control */
|
3831 | bd928eba | j_mayer | /* XXX : not implemented */
|
3832 | bd928eba | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
3833 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3834 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
3835 | bd928eba | j_mayer | 0x00000000);
|
3836 | 80d11f44 | j_mayer | /* Hardware implementation register */
|
3837 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3838 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3839 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3840 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3841 | 80d11f44 | j_mayer | 0x00000000);
|
3842 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3843 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3844 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3845 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3846 | 80d11f44 | j_mayer | 0x00000000);
|
3847 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3848 | 80d11f44 | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
3849 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3850 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3851 | 80d11f44 | j_mayer | 0x00000000);
|
3852 | a750fc0b | j_mayer | /* Memory management */
|
3853 | 80d11f44 | j_mayer | gen_low_BATs(env); |
3854 | 80d11f44 | j_mayer | gen_high_BATs(env); |
3855 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3856 | 80d11f44 | j_mayer | init_excp_G2(env); |
3857 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3858 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3859 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3860 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
3861 | 3fc6c082 | bellard | } |
3862 | a750fc0b | j_mayer | |
3863 | 80d11f44 | j_mayer | /* PowerPC G2LE */
|
3864 | 082c6681 | j_mayer | #define POWERPC_INSNS_G2LE (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
3865 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
3866 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
3867 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
3868 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
3869 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
3870 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
3871 | 80d11f44 | j_mayer | #define POWERPC_MSRM_G2LE (0x000000000007FFF3ULL) |
3872 | 80d11f44 | j_mayer | #define POWERPC_MMU_G2LE (POWERPC_MMU_SOFT_6xx)
|
3873 | 80d11f44 | j_mayer | #define POWERPC_EXCP_G2LE (POWERPC_EXCP_G2)
|
3874 | 80d11f44 | j_mayer | #define POWERPC_INPUT_G2LE (PPC_FLAGS_INPUT_6xx)
|
3875 | 80d11f44 | j_mayer | #define POWERPC_BFDM_G2LE (bfd_mach_ppc_ec603e)
|
3876 | 80d11f44 | j_mayer | #define POWERPC_FLAG_G2LE (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
3877 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
3878 | 80d11f44 | j_mayer | #define check_pow_G2LE check_pow_hid0
|
3879 | a750fc0b | j_mayer | |
3880 | 80d11f44 | j_mayer | static void init_proc_G2LE (CPUPPCState *env) |
3881 | 3fc6c082 | bellard | { |
3882 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
3883 | 80d11f44 | j_mayer | gen_spr_G2_755(env); |
3884 | 80d11f44 | j_mayer | gen_spr_G2(env); |
3885 | a750fc0b | j_mayer | /* Time base */
|
3886 | a750fc0b | j_mayer | gen_tbl(env); |
3887 | bd928eba | j_mayer | /* External access control */
|
3888 | bd928eba | j_mayer | /* XXX : not implemented */
|
3889 | bd928eba | j_mayer | spr_register(env, SPR_EAR, "EAR",
|
3890 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3891 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
3892 | bd928eba | j_mayer | 0x00000000);
|
3893 | 80d11f44 | j_mayer | /* Hardware implementation register */
|
3894 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3895 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3896 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3897 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3898 | a750fc0b | j_mayer | 0x00000000);
|
3899 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3900 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3901 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3902 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3903 | a750fc0b | j_mayer | 0x00000000);
|
3904 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3905 | 80d11f44 | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
3906 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3907 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
3908 | a750fc0b | j_mayer | 0x00000000);
|
3909 | a750fc0b | j_mayer | /* Memory management */
|
3910 | 80d11f44 | j_mayer | gen_low_BATs(env); |
3911 | 80d11f44 | j_mayer | gen_high_BATs(env); |
3912 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
3913 | 80d11f44 | j_mayer | init_excp_G2(env); |
3914 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
3915 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
3916 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
3917 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
3918 | 3fc6c082 | bellard | } |
3919 | 3fc6c082 | bellard | |
3920 | 80d11f44 | j_mayer | /* e200 core */
|
3921 | 80d11f44 | j_mayer | /* XXX: unimplemented instructions:
|
3922 | 80d11f44 | j_mayer | * dcblc
|
3923 | 80d11f44 | j_mayer | * dcbtlst
|
3924 | 80d11f44 | j_mayer | * dcbtstls
|
3925 | 80d11f44 | j_mayer | * icblc
|
3926 | 80d11f44 | j_mayer | * icbtls
|
3927 | 80d11f44 | j_mayer | * tlbivax
|
3928 | 80d11f44 | j_mayer | * all SPE multiply-accumulate instructions
|
3929 | 80d11f44 | j_mayer | */
|
3930 | 082c6681 | j_mayer | #define POWERPC_INSNS_e200 (PPC_INSNS_BASE | PPC_ISEL | \
|
3931 | 80d11f44 | j_mayer | PPC_SPE | PPC_SPEFPU | \ |
3932 | 082c6681 | j_mayer | PPC_WRTEE | PPC_RFDI | \ |
3933 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | \ |
3934 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
3935 | 80d11f44 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVAX | \ |
3936 | 082c6681 | j_mayer | PPC_BOOKE) |
3937 | 80d11f44 | j_mayer | #define POWERPC_MSRM_e200 (0x000000000606FF30ULL) |
3938 | 80d11f44 | j_mayer | #define POWERPC_MMU_e200 (POWERPC_MMU_BOOKE_FSL)
|
3939 | 80d11f44 | j_mayer | #define POWERPC_EXCP_e200 (POWERPC_EXCP_BOOKE)
|
3940 | 80d11f44 | j_mayer | #define POWERPC_INPUT_e200 (PPC_FLAGS_INPUT_BookE)
|
3941 | 80d11f44 | j_mayer | #define POWERPC_BFDM_e200 (bfd_mach_ppc_860)
|
3942 | 80d11f44 | j_mayer | #define POWERPC_FLAG_e200 (POWERPC_FLAG_SPE | POWERPC_FLAG_CE | \
|
3943 | 4018bae9 | j_mayer | POWERPC_FLAG_UBLE | POWERPC_FLAG_DE | \ |
3944 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
3945 | 80d11f44 | j_mayer | #define check_pow_e200 check_pow_hid0
|
3946 | 80d11f44 | j_mayer | |
3947 | 578bb252 | j_mayer | __attribute__ (( unused )) |
3948 | 80d11f44 | j_mayer | static void init_proc_e200 (CPUPPCState *env) |
3949 | 3fc6c082 | bellard | { |
3950 | e1833e1f | j_mayer | /* Time base */
|
3951 | e1833e1f | j_mayer | gen_tbl(env); |
3952 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x000000070000FFFFULL);
|
3953 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3954 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_SPEFSCR, "SPEFSCR",
|
3955 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3956 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
3957 | e1833e1f | j_mayer | 0x00000000);
|
3958 | 80d11f44 | j_mayer | /* Memory management */
|
3959 | 80d11f44 | j_mayer | gen_spr_BookE_FSL(env, 0x0000005D);
|
3960 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3961 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
3962 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3963 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
3964 | e1833e1f | j_mayer | 0x00000000);
|
3965 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3966 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
3967 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3968 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
3969 | e1833e1f | j_mayer | 0x00000000);
|
3970 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3971 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_ALTCTXCR, "ALTCTXCR",
|
3972 | e1833e1f | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3973 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
3974 | e1833e1f | j_mayer | 0x00000000);
|
3975 | 578bb252 | j_mayer | /* XXX : not implemented */
|
3976 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BUCSR, "BUCSR",
|
3977 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3978 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
3979 | 80d11f44 | j_mayer | 0x00000000);
|
3980 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3981 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_CTXCR, "CTXCR",
|
3982 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3983 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3984 | 80d11f44 | j_mayer | 0x00000000);
|
3985 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3986 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_DBCNT, "DBCNT",
|
3987 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3988 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3989 | 80d11f44 | j_mayer | 0x00000000);
|
3990 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3991 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_DBCR3, "DBCR3",
|
3992 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3993 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3994 | 80d11f44 | j_mayer | 0x00000000);
|
3995 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
3996 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CFG0, "L1CFG0",
|
3997 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
3998 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
3999 | 80d11f44 | j_mayer | 0x00000000);
|
4000 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4001 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CSR0, "L1CSR0",
|
4002 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4003 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4004 | 80d11f44 | j_mayer | 0x00000000);
|
4005 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4006 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1FINV0, "L1FINV0",
|
4007 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4008 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4009 | 80d11f44 | j_mayer | 0x00000000);
|
4010 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4011 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
4012 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4013 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4014 | 80d11f44 | j_mayer | 0x00000000);
|
4015 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4016 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
4017 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4018 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4019 | 80d11f44 | j_mayer | 0x00000000);
|
4020 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4021 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC3, "IAC3",
|
4022 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4023 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4024 | 80d11f44 | j_mayer | 0x00000000);
|
4025 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4026 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_IAC4, "IAC4",
|
4027 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4028 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4029 | 80d11f44 | j_mayer | 0x00000000);
|
4030 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DSRR0, "DSRR0",
|
4031 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4032 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4033 | 80d11f44 | j_mayer | 0x00000000);
|
4034 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_DSRR1, "DSRR1",
|
4035 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4036 | e1833e1f | j_mayer | &spr_read_generic, &spr_write_generic, |
4037 | e1833e1f | j_mayer | 0x00000000);
|
4038 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4039 | e1833e1f | j_mayer | env->nb_tlb = 64;
|
4040 | e1833e1f | j_mayer | env->nb_ways = 1;
|
4041 | e1833e1f | j_mayer | env->id_tlbs = 0;
|
4042 | f2e63a42 | j_mayer | #endif
|
4043 | 80d11f44 | j_mayer | init_excp_e200(env); |
4044 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4045 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4046 | e1833e1f | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
4047 | 3fc6c082 | bellard | } |
4048 | a750fc0b | j_mayer | |
4049 | 80d11f44 | j_mayer | /* e300 core */
|
4050 | 082c6681 | j_mayer | #define POWERPC_INSNS_e300 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4051 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4052 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
4053 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4054 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4055 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4056 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4057 | 80d11f44 | j_mayer | #define POWERPC_MSRM_e300 (0x000000000007FFF3ULL) |
4058 | 80d11f44 | j_mayer | #define POWERPC_MMU_e300 (POWERPC_MMU_SOFT_6xx)
|
4059 | 80d11f44 | j_mayer | #define POWERPC_EXCP_e300 (POWERPC_EXCP_603)
|
4060 | 80d11f44 | j_mayer | #define POWERPC_INPUT_e300 (PPC_FLAGS_INPUT_6xx)
|
4061 | 80d11f44 | j_mayer | #define POWERPC_BFDM_e300 (bfd_mach_ppc_603)
|
4062 | 80d11f44 | j_mayer | #define POWERPC_FLAG_e300 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4063 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4064 | 80d11f44 | j_mayer | #define check_pow_e300 check_pow_hid0
|
4065 | a750fc0b | j_mayer | |
4066 | 578bb252 | j_mayer | __attribute__ (( unused )) |
4067 | 80d11f44 | j_mayer | static void init_proc_e300 (CPUPPCState *env) |
4068 | 3fc6c082 | bellard | { |
4069 | 80d11f44 | j_mayer | gen_spr_ne_601(env); |
4070 | 80d11f44 | j_mayer | gen_spr_603(env); |
4071 | a750fc0b | j_mayer | /* Time base */
|
4072 | a750fc0b | j_mayer | gen_tbl(env); |
4073 | 80d11f44 | j_mayer | /* hardware implementation registers */
|
4074 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4075 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4076 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4077 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4078 | 80d11f44 | j_mayer | 0x00000000);
|
4079 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4080 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4081 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4082 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4083 | 80d11f44 | j_mayer | 0x00000000);
|
4084 | 80d11f44 | j_mayer | /* Memory management */
|
4085 | 80d11f44 | j_mayer | gen_low_BATs(env); |
4086 | 80d11f44 | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4087 | 80d11f44 | j_mayer | init_excp_603(env); |
4088 | 80d11f44 | j_mayer | env->dcache_line_size = 32;
|
4089 | 80d11f44 | j_mayer | env->icache_line_size = 32;
|
4090 | 80d11f44 | j_mayer | /* Allocate hardware IRQ controller */
|
4091 | 80d11f44 | j_mayer | ppc6xx_irq_init(env); |
4092 | 80d11f44 | j_mayer | } |
4093 | 80d11f44 | j_mayer | |
4094 | 80d11f44 | j_mayer | /* e500 core */
|
4095 | 082c6681 | j_mayer | #define POWERPC_INSNS_e500 (PPC_INSNS_BASE | PPC_ISEL | \
|
4096 | 80d11f44 | j_mayer | PPC_SPE | PPC_SPEFPU | \ |
4097 | 082c6681 | j_mayer | PPC_WRTEE | PPC_RFDI | \ |
4098 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI | \ |
4099 | 082c6681 | j_mayer | PPC_CACHE_DCBZ | PPC_CACHE_DCBA | \ |
4100 | 80d11f44 | j_mayer | PPC_MEM_TLBSYNC | PPC_TLBIVAX | \ |
4101 | 082c6681 | j_mayer | PPC_BOOKE) |
4102 | 80d11f44 | j_mayer | #define POWERPC_MSRM_e500 (0x000000000606FF30ULL) |
4103 | 80d11f44 | j_mayer | #define POWERPC_MMU_e500 (POWERPC_MMU_BOOKE_FSL)
|
4104 | 80d11f44 | j_mayer | #define POWERPC_EXCP_e500 (POWERPC_EXCP_BOOKE)
|
4105 | 80d11f44 | j_mayer | #define POWERPC_INPUT_e500 (PPC_FLAGS_INPUT_BookE)
|
4106 | 80d11f44 | j_mayer | #define POWERPC_BFDM_e500 (bfd_mach_ppc_860)
|
4107 | 80d11f44 | j_mayer | #define POWERPC_FLAG_e500 (POWERPC_FLAG_SPE | POWERPC_FLAG_CE | \
|
4108 | 4018bae9 | j_mayer | POWERPC_FLAG_UBLE | POWERPC_FLAG_DE | \ |
4109 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
4110 | 80d11f44 | j_mayer | #define check_pow_e500 check_pow_hid0
|
4111 | 80d11f44 | j_mayer | |
4112 | 80d11f44 | j_mayer | __attribute__ (( unused )) |
4113 | 80d11f44 | j_mayer | static void init_proc_e500 (CPUPPCState *env) |
4114 | 80d11f44 | j_mayer | { |
4115 | 80d11f44 | j_mayer | /* Time base */
|
4116 | 80d11f44 | j_mayer | gen_tbl(env); |
4117 | 80d11f44 | j_mayer | gen_spr_BookE(env, 0x0000000F0000FD7FULL);
|
4118 | 80d11f44 | j_mayer | /* Processor identification */
|
4119 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_PIR, "PIR",
|
4120 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4121 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_pir, |
4122 | 80d11f44 | j_mayer | 0x00000000);
|
4123 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4124 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_SPEFSCR, "SPEFSCR",
|
4125 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4126 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4127 | 80d11f44 | j_mayer | 0x00000000);
|
4128 | 80d11f44 | j_mayer | /* Memory management */
|
4129 | 80d11f44 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4130 | 80d11f44 | j_mayer | env->nb_pids = 3;
|
4131 | 80d11f44 | j_mayer | #endif
|
4132 | 80d11f44 | j_mayer | gen_spr_BookE_FSL(env, 0x0000005F);
|
4133 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4134 | 80d11f44 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4135 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4136 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4137 | 80d11f44 | j_mayer | 0x00000000);
|
4138 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4139 | 80d11f44 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4140 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4141 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4142 | 80d11f44 | j_mayer | 0x00000000);
|
4143 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4144 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BBEAR, "BBEAR",
|
4145 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4146 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4147 | 80d11f44 | j_mayer | 0x00000000);
|
4148 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4149 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BBTAR, "BBTAR",
|
4150 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4151 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4152 | 80d11f44 | j_mayer | 0x00000000);
|
4153 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4154 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_MCAR, "MCAR",
|
4155 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4156 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4157 | 80d11f44 | j_mayer | 0x00000000);
|
4158 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4159 | a750fc0b | j_mayer | spr_register(env, SPR_BOOKE_MCSR, "MCSR",
|
4160 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4161 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4162 | a750fc0b | j_mayer | 0x00000000);
|
4163 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4164 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_NPIDR, "NPIDR",
|
4165 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4166 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4167 | a750fc0b | j_mayer | 0x00000000);
|
4168 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4169 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_BUCSR, "BUCSR",
|
4170 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4171 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4172 | a750fc0b | j_mayer | 0x00000000);
|
4173 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4174 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CFG0, "L1CFG0",
|
4175 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4176 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4177 | a750fc0b | j_mayer | 0x00000000);
|
4178 | 578bb252 | j_mayer | /* XXX : not implemented */
|
4179 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CSR0, "L1CSR0",
|
4180 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4181 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4182 | 80d11f44 | j_mayer | 0x00000000);
|
4183 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4184 | 80d11f44 | j_mayer | spr_register(env, SPR_Exxx_L1CSR1, "L1CSR1",
|
4185 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4186 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4187 | 80d11f44 | j_mayer | 0x00000000);
|
4188 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4189 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB0CFG, "TLB0CFG",
|
4190 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4191 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4192 | 80d11f44 | j_mayer | 0x00000000);
|
4193 | 80d11f44 | j_mayer | /* XXX : not implemented */
|
4194 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_TLB1CFG, "TLB1CFG",
|
4195 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4196 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4197 | 80d11f44 | j_mayer | 0x00000000);
|
4198 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR0, "MCSRR0",
|
4199 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4200 | 80d11f44 | j_mayer | &spr_read_generic, &spr_write_generic, |
4201 | 80d11f44 | j_mayer | 0x00000000);
|
4202 | 80d11f44 | j_mayer | spr_register(env, SPR_BOOKE_MCSRR1, "MCSRR1",
|
4203 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4204 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4205 | a750fc0b | j_mayer | 0x00000000);
|
4206 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
4207 | a750fc0b | j_mayer | env->nb_tlb = 64;
|
4208 | a750fc0b | j_mayer | env->nb_ways = 1;
|
4209 | a750fc0b | j_mayer | env->id_tlbs = 0;
|
4210 | f2e63a42 | j_mayer | #endif
|
4211 | 80d11f44 | j_mayer | init_excp_e200(env); |
4212 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4213 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4214 | a750fc0b | j_mayer | /* XXX: TODO: allocate internal IRQ controller */
|
4215 | 3fc6c082 | bellard | } |
4216 | a750fc0b | j_mayer | |
4217 | a750fc0b | j_mayer | /* Non-embedded PowerPC */
|
4218 | a750fc0b | j_mayer | |
4219 | a750fc0b | j_mayer | /* POWER : same as 601, without mfmsr, mfsr */
|
4220 | a750fc0b | j_mayer | #if defined(TODO)
|
4221 | a750fc0b | j_mayer | #define POWERPC_INSNS_POWER (XXX_TODO)
|
4222 | a750fc0b | j_mayer | /* POWER RSC (from RAD6000) */
|
4223 | a750fc0b | j_mayer | #define POWERPC_MSRM_POWER (0x00000000FEF0ULL) |
4224 | a750fc0b | j_mayer | #endif /* TODO */ |
4225 | a750fc0b | j_mayer | |
4226 | a750fc0b | j_mayer | /* PowerPC 601 */
|
4227 | 082c6681 | j_mayer | #define POWERPC_INSNS_601 (PPC_INSNS_BASE | PPC_STRING | PPC_POWER_BR | \
|
4228 | 082c6681 | j_mayer | PPC_FLOAT | \ |
4229 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4230 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | PPC_MEM_TLBIE | \ |
4231 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4232 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_601 (0x000000000000FD70ULL) |
4233 | 082c6681 | j_mayer | #define POWERPC_MSRR_601 (0x0000000000001040ULL) |
4234 | faadf50e | j_mayer | //#define POWERPC_MMU_601 (POWERPC_MMU_601)
|
4235 | a750fc0b | j_mayer | //#define POWERPC_EXCP_601 (POWERPC_EXCP_601)
|
4236 | a750fc0b | j_mayer | #define POWERPC_INPUT_601 (PPC_FLAGS_INPUT_6xx)
|
4237 | 237c0af0 | j_mayer | #define POWERPC_BFDM_601 (bfd_mach_ppc_601)
|
4238 | 4018bae9 | j_mayer | #define POWERPC_FLAG_601 (POWERPC_FLAG_SE | POWERPC_FLAG_RTC_CLK)
|
4239 | 2f462816 | j_mayer | #define check_pow_601 check_pow_none
|
4240 | a750fc0b | j_mayer | |
4241 | a750fc0b | j_mayer | static void init_proc_601 (CPUPPCState *env) |
4242 | 3fc6c082 | bellard | { |
4243 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4244 | a750fc0b | j_mayer | gen_spr_601(env); |
4245 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4246 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4247 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4248 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4249 | 056401ea | j_mayer | &spr_read_generic, &spr_write_hid0_601, |
4250 | faadf50e | j_mayer | 0x80010080);
|
4251 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4252 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4253 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4254 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4255 | a750fc0b | j_mayer | 0x00000000);
|
4256 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4257 | a750fc0b | j_mayer | spr_register(env, SPR_601_HID2, "HID2",
|
4258 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4259 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4260 | a750fc0b | j_mayer | 0x00000000);
|
4261 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4262 | a750fc0b | j_mayer | spr_register(env, SPR_601_HID5, "HID5",
|
4263 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4264 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4265 | a750fc0b | j_mayer | 0x00000000);
|
4266 | a750fc0b | j_mayer | /* Memory management */
|
4267 | e1833e1f | j_mayer | init_excp_601(env); |
4268 | 082c6681 | j_mayer | /* XXX: beware that dcache line size is 64
|
4269 | 082c6681 | j_mayer | * but dcbz uses 32 bytes "sectors"
|
4270 | 082c6681 | j_mayer | * XXX: this breaks clcs instruction !
|
4271 | 082c6681 | j_mayer | */
|
4272 | 082c6681 | j_mayer | env->dcache_line_size = 32;
|
4273 | d63001d1 | j_mayer | env->icache_line_size = 64;
|
4274 | faadf50e | j_mayer | /* Allocate hardware IRQ controller */
|
4275 | faadf50e | j_mayer | ppc6xx_irq_init(env); |
4276 | 3fc6c082 | bellard | } |
4277 | 3fc6c082 | bellard | |
4278 | 082c6681 | j_mayer | /* PowerPC 601v */
|
4279 | 082c6681 | j_mayer | #define POWERPC_INSNS_601v (PPC_INSNS_BASE | PPC_STRING | PPC_POWER_BR | \
|
4280 | 082c6681 | j_mayer | PPC_FLOAT | \ |
4281 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4282 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | PPC_MEM_TLBIE | \ |
4283 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4284 | 082c6681 | j_mayer | #define POWERPC_MSRM_601v (0x000000000000FD70ULL) |
4285 | 082c6681 | j_mayer | #define POWERPC_MSRR_601v (0x0000000000001040ULL) |
4286 | 082c6681 | j_mayer | #define POWERPC_MMU_601v (POWERPC_MMU_601)
|
4287 | 082c6681 | j_mayer | #define POWERPC_EXCP_601v (POWERPC_EXCP_601)
|
4288 | 082c6681 | j_mayer | #define POWERPC_INPUT_601v (PPC_FLAGS_INPUT_6xx)
|
4289 | 082c6681 | j_mayer | #define POWERPC_BFDM_601v (bfd_mach_ppc_601)
|
4290 | 082c6681 | j_mayer | #define POWERPC_FLAG_601v (POWERPC_FLAG_SE | POWERPC_FLAG_RTC_CLK)
|
4291 | 082c6681 | j_mayer | #define check_pow_601v check_pow_none
|
4292 | 082c6681 | j_mayer | |
4293 | 082c6681 | j_mayer | static void init_proc_601v (CPUPPCState *env) |
4294 | 082c6681 | j_mayer | { |
4295 | 082c6681 | j_mayer | init_proc_601(env); |
4296 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4297 | 082c6681 | j_mayer | spr_register(env, SPR_601_HID15, "HID15",
|
4298 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4299 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4300 | 082c6681 | j_mayer | 0x00000000);
|
4301 | 082c6681 | j_mayer | } |
4302 | 082c6681 | j_mayer | |
4303 | a750fc0b | j_mayer | /* PowerPC 602 */
|
4304 | 082c6681 | j_mayer | #define POWERPC_INSNS_602 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4305 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4306 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4307 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4308 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4309 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_6xx_TLB | PPC_MEM_TLBSYNC | \ |
4310 | 12de9a39 | j_mayer | PPC_SEGMENT | PPC_602_SPEC) |
4311 | 082c6681 | j_mayer | #define POWERPC_MSRM_602 (0x0000000000C7FF73ULL) |
4312 | 082c6681 | j_mayer | /* XXX: 602 MMU is quite specific. Should add a special case */
|
4313 | a750fc0b | j_mayer | #define POWERPC_MMU_602 (POWERPC_MMU_SOFT_6xx)
|
4314 | a750fc0b | j_mayer | //#define POWERPC_EXCP_602 (POWERPC_EXCP_602)
|
4315 | a750fc0b | j_mayer | #define POWERPC_INPUT_602 (PPC_FLAGS_INPUT_6xx)
|
4316 | 237c0af0 | j_mayer | #define POWERPC_BFDM_602 (bfd_mach_ppc_602)
|
4317 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_602 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4318 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4319 | 2f462816 | j_mayer | #define check_pow_602 check_pow_hid0
|
4320 | a750fc0b | j_mayer | |
4321 | a750fc0b | j_mayer | static void init_proc_602 (CPUPPCState *env) |
4322 | 3fc6c082 | bellard | { |
4323 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4324 | a750fc0b | j_mayer | gen_spr_602(env); |
4325 | a750fc0b | j_mayer | /* Time base */
|
4326 | a750fc0b | j_mayer | gen_tbl(env); |
4327 | a750fc0b | j_mayer | /* hardware implementation registers */
|
4328 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4329 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4330 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4331 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4332 | a750fc0b | j_mayer | 0x00000000);
|
4333 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4334 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4335 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4336 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4337 | a750fc0b | j_mayer | 0x00000000);
|
4338 | a750fc0b | j_mayer | /* Memory management */
|
4339 | a750fc0b | j_mayer | gen_low_BATs(env); |
4340 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4341 | e1833e1f | j_mayer | init_excp_602(env); |
4342 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4343 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4344 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4345 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4346 | a750fc0b | j_mayer | } |
4347 | 3fc6c082 | bellard | |
4348 | a750fc0b | j_mayer | /* PowerPC 603 */
|
4349 | 082c6681 | j_mayer | #define POWERPC_INSNS_603 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4350 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4351 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4352 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4353 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4354 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4355 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4356 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_603 (0x000000000007FF73ULL) |
4357 | a750fc0b | j_mayer | #define POWERPC_MMU_603 (POWERPC_MMU_SOFT_6xx)
|
4358 | a750fc0b | j_mayer | //#define POWERPC_EXCP_603 (POWERPC_EXCP_603)
|
4359 | a750fc0b | j_mayer | #define POWERPC_INPUT_603 (PPC_FLAGS_INPUT_6xx)
|
4360 | 237c0af0 | j_mayer | #define POWERPC_BFDM_603 (bfd_mach_ppc_603)
|
4361 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_603 (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4362 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4363 | 2f462816 | j_mayer | #define check_pow_603 check_pow_hid0
|
4364 | a750fc0b | j_mayer | |
4365 | a750fc0b | j_mayer | static void init_proc_603 (CPUPPCState *env) |
4366 | a750fc0b | j_mayer | { |
4367 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4368 | a750fc0b | j_mayer | gen_spr_603(env); |
4369 | a750fc0b | j_mayer | /* Time base */
|
4370 | a750fc0b | j_mayer | gen_tbl(env); |
4371 | a750fc0b | j_mayer | /* hardware implementation registers */
|
4372 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4373 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4374 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4375 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4376 | a750fc0b | j_mayer | 0x00000000);
|
4377 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4378 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4379 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4380 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4381 | a750fc0b | j_mayer | 0x00000000);
|
4382 | a750fc0b | j_mayer | /* Memory management */
|
4383 | a750fc0b | j_mayer | gen_low_BATs(env); |
4384 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4385 | e1833e1f | j_mayer | init_excp_603(env); |
4386 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4387 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4388 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4389 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4390 | 3fc6c082 | bellard | } |
4391 | 3fc6c082 | bellard | |
4392 | a750fc0b | j_mayer | /* PowerPC 603e */
|
4393 | 082c6681 | j_mayer | #define POWERPC_INSNS_603E (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4394 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4395 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4396 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4397 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4398 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4399 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4400 | a750fc0b | j_mayer | #define POWERPC_MSRM_603E (0x000000000007FF73ULL) |
4401 | a750fc0b | j_mayer | #define POWERPC_MMU_603E (POWERPC_MMU_SOFT_6xx)
|
4402 | a750fc0b | j_mayer | //#define POWERPC_EXCP_603E (POWERPC_EXCP_603E)
|
4403 | a750fc0b | j_mayer | #define POWERPC_INPUT_603E (PPC_FLAGS_INPUT_6xx)
|
4404 | 237c0af0 | j_mayer | #define POWERPC_BFDM_603E (bfd_mach_ppc_ec603e)
|
4405 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_603E (POWERPC_FLAG_TGPR | POWERPC_FLAG_SE | \
|
4406 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_BUS_CLK) |
4407 | 2f462816 | j_mayer | #define check_pow_603E check_pow_hid0
|
4408 | a750fc0b | j_mayer | |
4409 | a750fc0b | j_mayer | static void init_proc_603E (CPUPPCState *env) |
4410 | a750fc0b | j_mayer | { |
4411 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4412 | a750fc0b | j_mayer | gen_spr_603(env); |
4413 | a750fc0b | j_mayer | /* Time base */
|
4414 | a750fc0b | j_mayer | gen_tbl(env); |
4415 | a750fc0b | j_mayer | /* hardware implementation registers */
|
4416 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4417 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4418 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4419 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4420 | a750fc0b | j_mayer | 0x00000000);
|
4421 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4422 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4423 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4424 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4425 | a750fc0b | j_mayer | 0x00000000);
|
4426 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4427 | a750fc0b | j_mayer | spr_register(env, SPR_IABR, "IABR",
|
4428 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4429 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4430 | a750fc0b | j_mayer | 0x00000000);
|
4431 | a750fc0b | j_mayer | /* Memory management */
|
4432 | a750fc0b | j_mayer | gen_low_BATs(env); |
4433 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
4434 | e1833e1f | j_mayer | init_excp_603(env); |
4435 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4436 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4437 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4438 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4439 | a750fc0b | j_mayer | } |
4440 | a750fc0b | j_mayer | |
4441 | a750fc0b | j_mayer | /* PowerPC 604 */
|
4442 | 082c6681 | j_mayer | #define POWERPC_INSNS_604 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4443 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4444 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4445 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4446 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4447 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4448 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4449 | a750fc0b | j_mayer | #define POWERPC_MSRM_604 (0x000000000005FF77ULL) |
4450 | a750fc0b | j_mayer | #define POWERPC_MMU_604 (POWERPC_MMU_32B)
|
4451 | a750fc0b | j_mayer | //#define POWERPC_EXCP_604 (POWERPC_EXCP_604)
|
4452 | a750fc0b | j_mayer | #define POWERPC_INPUT_604 (PPC_FLAGS_INPUT_6xx)
|
4453 | 237c0af0 | j_mayer | #define POWERPC_BFDM_604 (bfd_mach_ppc_604)
|
4454 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_604 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4455 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4456 | 2f462816 | j_mayer | #define check_pow_604 check_pow_nocheck
|
4457 | a750fc0b | j_mayer | |
4458 | a750fc0b | j_mayer | static void init_proc_604 (CPUPPCState *env) |
4459 | a750fc0b | j_mayer | { |
4460 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4461 | a750fc0b | j_mayer | gen_spr_604(env); |
4462 | a750fc0b | j_mayer | /* Time base */
|
4463 | a750fc0b | j_mayer | gen_tbl(env); |
4464 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4465 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4466 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4467 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4468 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4469 | a750fc0b | j_mayer | 0x00000000);
|
4470 | 082c6681 | j_mayer | /* Memory management */
|
4471 | 082c6681 | j_mayer | gen_low_BATs(env); |
4472 | 082c6681 | j_mayer | init_excp_604(env); |
4473 | 082c6681 | j_mayer | env->dcache_line_size = 32;
|
4474 | 082c6681 | j_mayer | env->icache_line_size = 32;
|
4475 | 082c6681 | j_mayer | /* Allocate hardware IRQ controller */
|
4476 | 082c6681 | j_mayer | ppc6xx_irq_init(env); |
4477 | 082c6681 | j_mayer | } |
4478 | 082c6681 | j_mayer | |
4479 | 082c6681 | j_mayer | /* PowerPC 604E */
|
4480 | 082c6681 | j_mayer | #define POWERPC_INSNS_604E (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4481 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4482 | 082c6681 | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4483 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4484 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4485 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4486 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4487 | 082c6681 | j_mayer | #define POWERPC_MSRM_604E (0x000000000005FF77ULL) |
4488 | 082c6681 | j_mayer | #define POWERPC_MMU_604E (POWERPC_MMU_32B)
|
4489 | 082c6681 | j_mayer | #define POWERPC_EXCP_604E (POWERPC_EXCP_604)
|
4490 | 082c6681 | j_mayer | #define POWERPC_INPUT_604E (PPC_FLAGS_INPUT_6xx)
|
4491 | 082c6681 | j_mayer | #define POWERPC_BFDM_604E (bfd_mach_ppc_604)
|
4492 | 082c6681 | j_mayer | #define POWERPC_FLAG_604E (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4493 | 082c6681 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4494 | 082c6681 | j_mayer | #define check_pow_604E check_pow_nocheck
|
4495 | 082c6681 | j_mayer | |
4496 | 082c6681 | j_mayer | static void init_proc_604E (CPUPPCState *env) |
4497 | 082c6681 | j_mayer | { |
4498 | 082c6681 | j_mayer | gen_spr_ne_601(env); |
4499 | 082c6681 | j_mayer | gen_spr_604(env); |
4500 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4501 | 082c6681 | j_mayer | spr_register(env, SPR_MMCR1, "MMCR1",
|
4502 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4503 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4504 | 082c6681 | j_mayer | 0x00000000);
|
4505 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4506 | 082c6681 | j_mayer | spr_register(env, SPR_PMC3, "PMC3",
|
4507 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4508 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4509 | 082c6681 | j_mayer | 0x00000000);
|
4510 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4511 | 082c6681 | j_mayer | spr_register(env, SPR_PMC4, "PMC4",
|
4512 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4513 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4514 | 082c6681 | j_mayer | 0x00000000);
|
4515 | 082c6681 | j_mayer | /* Time base */
|
4516 | 082c6681 | j_mayer | gen_tbl(env); |
4517 | 082c6681 | j_mayer | /* Hardware implementation registers */
|
4518 | 082c6681 | j_mayer | /* XXX : not implemented */
|
4519 | 082c6681 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4520 | 082c6681 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4521 | 082c6681 | j_mayer | &spr_read_generic, &spr_write_generic, |
4522 | 082c6681 | j_mayer | 0x00000000);
|
4523 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4524 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4525 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4526 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4527 | a750fc0b | j_mayer | 0x00000000);
|
4528 | a750fc0b | j_mayer | /* Memory management */
|
4529 | a750fc0b | j_mayer | gen_low_BATs(env); |
4530 | e1833e1f | j_mayer | init_excp_604(env); |
4531 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4532 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4533 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4534 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4535 | a750fc0b | j_mayer | } |
4536 | a750fc0b | j_mayer | |
4537 | bd928eba | j_mayer | /* PowerPC 740 */
|
4538 | bd928eba | j_mayer | #define POWERPC_INSNS_740 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4539 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4540 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4541 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4542 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4543 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4544 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4545 | bd928eba | j_mayer | #define POWERPC_MSRM_740 (0x000000000005FF77ULL) |
4546 | bd928eba | j_mayer | #define POWERPC_MMU_740 (POWERPC_MMU_32B)
|
4547 | bd928eba | j_mayer | #define POWERPC_EXCP_740 (POWERPC_EXCP_7x0)
|
4548 | bd928eba | j_mayer | #define POWERPC_INPUT_740 (PPC_FLAGS_INPUT_6xx)
|
4549 | bd928eba | j_mayer | #define POWERPC_BFDM_740 (bfd_mach_ppc_750)
|
4550 | bd928eba | j_mayer | #define POWERPC_FLAG_740 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4551 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4552 | bd928eba | j_mayer | #define check_pow_740 check_pow_hid0
|
4553 | a750fc0b | j_mayer | |
4554 | bd928eba | j_mayer | static void init_proc_740 (CPUPPCState *env) |
4555 | a750fc0b | j_mayer | { |
4556 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4557 | a750fc0b | j_mayer | gen_spr_7xx(env); |
4558 | a750fc0b | j_mayer | /* Time base */
|
4559 | a750fc0b | j_mayer | gen_tbl(env); |
4560 | a750fc0b | j_mayer | /* Thermal management */
|
4561 | a750fc0b | j_mayer | gen_spr_thrm(env); |
4562 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4563 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4564 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4565 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4566 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4567 | a750fc0b | j_mayer | 0x00000000);
|
4568 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4569 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4570 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4571 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4572 | a750fc0b | j_mayer | 0x00000000);
|
4573 | a750fc0b | j_mayer | /* Memory management */
|
4574 | a750fc0b | j_mayer | gen_low_BATs(env); |
4575 | e1833e1f | j_mayer | init_excp_7x0(env); |
4576 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4577 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4578 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4579 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4580 | a750fc0b | j_mayer | } |
4581 | a750fc0b | j_mayer | |
4582 | bd928eba | j_mayer | /* PowerPC 750 */
|
4583 | bd928eba | j_mayer | #define POWERPC_INSNS_750 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4584 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4585 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4586 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4587 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4588 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4589 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4590 | bd928eba | j_mayer | #define POWERPC_MSRM_750 (0x000000000005FF77ULL) |
4591 | bd928eba | j_mayer | #define POWERPC_MMU_750 (POWERPC_MMU_32B)
|
4592 | bd928eba | j_mayer | #define POWERPC_EXCP_750 (POWERPC_EXCP_7x0)
|
4593 | bd928eba | j_mayer | #define POWERPC_INPUT_750 (PPC_FLAGS_INPUT_6xx)
|
4594 | bd928eba | j_mayer | #define POWERPC_BFDM_750 (bfd_mach_ppc_750)
|
4595 | bd928eba | j_mayer | #define POWERPC_FLAG_750 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4596 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4597 | bd928eba | j_mayer | #define check_pow_750 check_pow_hid0
|
4598 | bd928eba | j_mayer | |
4599 | bd928eba | j_mayer | static void init_proc_750 (CPUPPCState *env) |
4600 | bd928eba | j_mayer | { |
4601 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4602 | bd928eba | j_mayer | gen_spr_7xx(env); |
4603 | bd928eba | j_mayer | /* XXX : not implemented */
|
4604 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4605 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4606 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4607 | bd928eba | j_mayer | 0x00000000);
|
4608 | bd928eba | j_mayer | /* Time base */
|
4609 | bd928eba | j_mayer | gen_tbl(env); |
4610 | bd928eba | j_mayer | /* Thermal management */
|
4611 | bd928eba | j_mayer | gen_spr_thrm(env); |
4612 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4613 | bd928eba | j_mayer | /* XXX : not implemented */
|
4614 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4615 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4616 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4617 | bd928eba | j_mayer | 0x00000000);
|
4618 | bd928eba | j_mayer | /* XXX : not implemented */
|
4619 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4620 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4621 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4622 | bd928eba | j_mayer | 0x00000000);
|
4623 | bd928eba | j_mayer | /* Memory management */
|
4624 | bd928eba | j_mayer | gen_low_BATs(env); |
4625 | bd928eba | j_mayer | /* XXX: high BATs are also present but are known to be bugged on
|
4626 | bd928eba | j_mayer | * die version 1.x
|
4627 | bd928eba | j_mayer | */
|
4628 | bd928eba | j_mayer | init_excp_7x0(env); |
4629 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4630 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4631 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4632 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4633 | bd928eba | j_mayer | } |
4634 | bd928eba | j_mayer | |
4635 | bd928eba | j_mayer | /* PowerPC 750 CL */
|
4636 | bd928eba | j_mayer | /* XXX: not implemented:
|
4637 | bd928eba | j_mayer | * cache lock instructions:
|
4638 | bd928eba | j_mayer | * dcbz_l
|
4639 | bd928eba | j_mayer | * floating point paired instructions
|
4640 | bd928eba | j_mayer | * psq_lux
|
4641 | bd928eba | j_mayer | * psq_lx
|
4642 | bd928eba | j_mayer | * psq_stux
|
4643 | bd928eba | j_mayer | * psq_stx
|
4644 | bd928eba | j_mayer | * ps_abs
|
4645 | bd928eba | j_mayer | * ps_add
|
4646 | bd928eba | j_mayer | * ps_cmpo0
|
4647 | bd928eba | j_mayer | * ps_cmpo1
|
4648 | bd928eba | j_mayer | * ps_cmpu0
|
4649 | bd928eba | j_mayer | * ps_cmpu1
|
4650 | bd928eba | j_mayer | * ps_div
|
4651 | bd928eba | j_mayer | * ps_madd
|
4652 | bd928eba | j_mayer | * ps_madds0
|
4653 | bd928eba | j_mayer | * ps_madds1
|
4654 | bd928eba | j_mayer | * ps_merge00
|
4655 | bd928eba | j_mayer | * ps_merge01
|
4656 | bd928eba | j_mayer | * ps_merge10
|
4657 | bd928eba | j_mayer | * ps_merge11
|
4658 | bd928eba | j_mayer | * ps_mr
|
4659 | bd928eba | j_mayer | * ps_msub
|
4660 | bd928eba | j_mayer | * ps_mul
|
4661 | bd928eba | j_mayer | * ps_muls0
|
4662 | bd928eba | j_mayer | * ps_muls1
|
4663 | bd928eba | j_mayer | * ps_nabs
|
4664 | bd928eba | j_mayer | * ps_neg
|
4665 | bd928eba | j_mayer | * ps_nmadd
|
4666 | bd928eba | j_mayer | * ps_nmsub
|
4667 | bd928eba | j_mayer | * ps_res
|
4668 | bd928eba | j_mayer | * ps_rsqrte
|
4669 | bd928eba | j_mayer | * ps_sel
|
4670 | bd928eba | j_mayer | * ps_sub
|
4671 | bd928eba | j_mayer | * ps_sum0
|
4672 | bd928eba | j_mayer | * ps_sum1
|
4673 | bd928eba | j_mayer | */
|
4674 | bd928eba | j_mayer | #define POWERPC_INSNS_750cl (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4675 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4676 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4677 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4678 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4679 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4680 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4681 | bd928eba | j_mayer | #define POWERPC_MSRM_750cl (0x000000000005FF77ULL) |
4682 | bd928eba | j_mayer | #define POWERPC_MMU_750cl (POWERPC_MMU_32B)
|
4683 | bd928eba | j_mayer | #define POWERPC_EXCP_750cl (POWERPC_EXCP_7x0)
|
4684 | bd928eba | j_mayer | #define POWERPC_INPUT_750cl (PPC_FLAGS_INPUT_6xx)
|
4685 | bd928eba | j_mayer | #define POWERPC_BFDM_750cl (bfd_mach_ppc_750)
|
4686 | bd928eba | j_mayer | #define POWERPC_FLAG_750cl (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4687 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4688 | bd928eba | j_mayer | #define check_pow_750cl check_pow_hid0
|
4689 | bd928eba | j_mayer | |
4690 | bd928eba | j_mayer | static void init_proc_750cl (CPUPPCState *env) |
4691 | bd928eba | j_mayer | { |
4692 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4693 | bd928eba | j_mayer | gen_spr_7xx(env); |
4694 | bd928eba | j_mayer | /* XXX : not implemented */
|
4695 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4696 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4697 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4698 | bd928eba | j_mayer | 0x00000000);
|
4699 | bd928eba | j_mayer | /* Time base */
|
4700 | bd928eba | j_mayer | gen_tbl(env); |
4701 | bd928eba | j_mayer | /* Thermal management */
|
4702 | bd928eba | j_mayer | /* Those registers are fake on 750CL */
|
4703 | bd928eba | j_mayer | spr_register(env, SPR_THRM1, "THRM1",
|
4704 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4705 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4706 | bd928eba | j_mayer | 0x00000000);
|
4707 | bd928eba | j_mayer | spr_register(env, SPR_THRM2, "THRM2",
|
4708 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4709 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4710 | bd928eba | j_mayer | 0x00000000);
|
4711 | bd928eba | j_mayer | spr_register(env, SPR_THRM3, "THRM3",
|
4712 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4713 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4714 | bd928eba | j_mayer | 0x00000000);
|
4715 | bd928eba | j_mayer | /* XXX: not implemented */
|
4716 | bd928eba | j_mayer | spr_register(env, SPR_750_TDCL, "TDCL",
|
4717 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4718 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4719 | bd928eba | j_mayer | 0x00000000);
|
4720 | bd928eba | j_mayer | spr_register(env, SPR_750_TDCH, "TDCH",
|
4721 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4722 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4723 | bd928eba | j_mayer | 0x00000000);
|
4724 | bd928eba | j_mayer | /* DMA */
|
4725 | bd928eba | j_mayer | /* XXX : not implemented */
|
4726 | bd928eba | j_mayer | spr_register(env, SPR_750_WPAR, "WPAR",
|
4727 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4728 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4729 | bd928eba | j_mayer | 0x00000000);
|
4730 | bd928eba | j_mayer | spr_register(env, SPR_750_DMAL, "DMAL",
|
4731 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4732 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4733 | bd928eba | j_mayer | 0x00000000);
|
4734 | bd928eba | j_mayer | spr_register(env, SPR_750_DMAU, "DMAU",
|
4735 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4736 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4737 | bd928eba | j_mayer | 0x00000000);
|
4738 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4739 | bd928eba | j_mayer | /* XXX : not implemented */
|
4740 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4741 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4742 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4743 | bd928eba | j_mayer | 0x00000000);
|
4744 | bd928eba | j_mayer | /* XXX : not implemented */
|
4745 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4746 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4747 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4748 | bd928eba | j_mayer | 0x00000000);
|
4749 | bd928eba | j_mayer | /* XXX : not implemented */
|
4750 | bd928eba | j_mayer | spr_register(env, SPR_750CL_HID2, "HID2",
|
4751 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4752 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4753 | bd928eba | j_mayer | 0x00000000);
|
4754 | bd928eba | j_mayer | /* XXX : not implemented */
|
4755 | bd928eba | j_mayer | spr_register(env, SPR_750CL_HID4, "HID4",
|
4756 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4757 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4758 | bd928eba | j_mayer | 0x00000000);
|
4759 | bd928eba | j_mayer | /* Quantization registers */
|
4760 | bd928eba | j_mayer | /* XXX : not implemented */
|
4761 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR0, "GQR0",
|
4762 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4763 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4764 | bd928eba | j_mayer | 0x00000000);
|
4765 | bd928eba | j_mayer | /* XXX : not implemented */
|
4766 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR1, "GQR1",
|
4767 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4768 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4769 | bd928eba | j_mayer | 0x00000000);
|
4770 | bd928eba | j_mayer | /* XXX : not implemented */
|
4771 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR2, "GQR2",
|
4772 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4773 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4774 | bd928eba | j_mayer | 0x00000000);
|
4775 | bd928eba | j_mayer | /* XXX : not implemented */
|
4776 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR3, "GQR3",
|
4777 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4778 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4779 | bd928eba | j_mayer | 0x00000000);
|
4780 | bd928eba | j_mayer | /* XXX : not implemented */
|
4781 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR4, "GQR4",
|
4782 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4783 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4784 | bd928eba | j_mayer | 0x00000000);
|
4785 | bd928eba | j_mayer | /* XXX : not implemented */
|
4786 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR5, "GQR5",
|
4787 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4788 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4789 | bd928eba | j_mayer | 0x00000000);
|
4790 | bd928eba | j_mayer | /* XXX : not implemented */
|
4791 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR6, "GQR6",
|
4792 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4793 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4794 | bd928eba | j_mayer | 0x00000000);
|
4795 | bd928eba | j_mayer | /* XXX : not implemented */
|
4796 | bd928eba | j_mayer | spr_register(env, SPR_750_GQR7, "GQR7",
|
4797 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4798 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4799 | bd928eba | j_mayer | 0x00000000);
|
4800 | bd928eba | j_mayer | /* Memory management */
|
4801 | bd928eba | j_mayer | gen_low_BATs(env); |
4802 | bd928eba | j_mayer | /* PowerPC 750cl has 8 DBATs and 8 IBATs */
|
4803 | bd928eba | j_mayer | gen_high_BATs(env); |
4804 | bd928eba | j_mayer | init_excp_750cl(env); |
4805 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4806 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4807 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4808 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4809 | bd928eba | j_mayer | } |
4810 | bd928eba | j_mayer | |
4811 | 4e777442 | j_mayer | /* PowerPC 750CX */
|
4812 | bd928eba | j_mayer | #define POWERPC_INSNS_750cx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4813 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4814 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4815 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4816 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4817 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4818 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4819 | bd928eba | j_mayer | #define POWERPC_MSRM_750cx (0x000000000005FF77ULL) |
4820 | bd928eba | j_mayer | #define POWERPC_MMU_750cx (POWERPC_MMU_32B)
|
4821 | bd928eba | j_mayer | #define POWERPC_EXCP_750cx (POWERPC_EXCP_7x0)
|
4822 | bd928eba | j_mayer | #define POWERPC_INPUT_750cx (PPC_FLAGS_INPUT_6xx)
|
4823 | bd928eba | j_mayer | #define POWERPC_BFDM_750cx (bfd_mach_ppc_750)
|
4824 | bd928eba | j_mayer | #define POWERPC_FLAG_750cx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4825 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4826 | bd928eba | j_mayer | #define check_pow_750cx check_pow_hid0
|
4827 | bd928eba | j_mayer | |
4828 | bd928eba | j_mayer | static void init_proc_750cx (CPUPPCState *env) |
4829 | bd928eba | j_mayer | { |
4830 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4831 | bd928eba | j_mayer | gen_spr_7xx(env); |
4832 | bd928eba | j_mayer | /* XXX : not implemented */
|
4833 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4834 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4835 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4836 | bd928eba | j_mayer | 0x00000000);
|
4837 | bd928eba | j_mayer | /* Time base */
|
4838 | bd928eba | j_mayer | gen_tbl(env); |
4839 | bd928eba | j_mayer | /* Thermal management */
|
4840 | bd928eba | j_mayer | gen_spr_thrm(env); |
4841 | bd928eba | j_mayer | /* This register is not implemented but is present for compatibility */
|
4842 | bd928eba | j_mayer | spr_register(env, SPR_SDA, "SDA",
|
4843 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4844 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4845 | bd928eba | j_mayer | 0x00000000);
|
4846 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4847 | bd928eba | j_mayer | /* XXX : not implemented */
|
4848 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4849 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4850 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4851 | bd928eba | j_mayer | 0x00000000);
|
4852 | bd928eba | j_mayer | /* XXX : not implemented */
|
4853 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4854 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4855 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4856 | bd928eba | j_mayer | 0x00000000);
|
4857 | bd928eba | j_mayer | /* Memory management */
|
4858 | bd928eba | j_mayer | gen_low_BATs(env); |
4859 | 4e777442 | j_mayer | /* PowerPC 750cx has 8 DBATs and 8 IBATs */
|
4860 | 4e777442 | j_mayer | gen_high_BATs(env); |
4861 | bd928eba | j_mayer | init_excp_750cx(env); |
4862 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4863 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4864 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4865 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4866 | bd928eba | j_mayer | } |
4867 | bd928eba | j_mayer | |
4868 | bd928eba | j_mayer | /* PowerPC 750FX */
|
4869 | 082c6681 | j_mayer | #define POWERPC_INSNS_750fx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4870 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4871 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4872 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4873 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4874 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4875 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4876 | 25ba3a68 | j_mayer | #define POWERPC_MSRM_750fx (0x000000000005FF77ULL) |
4877 | a750fc0b | j_mayer | #define POWERPC_MMU_750fx (POWERPC_MMU_32B)
|
4878 | a750fc0b | j_mayer | #define POWERPC_EXCP_750fx (POWERPC_EXCP_7x0)
|
4879 | a750fc0b | j_mayer | #define POWERPC_INPUT_750fx (PPC_FLAGS_INPUT_6xx)
|
4880 | 237c0af0 | j_mayer | #define POWERPC_BFDM_750fx (bfd_mach_ppc_750)
|
4881 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_750fx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4882 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4883 | 2f462816 | j_mayer | #define check_pow_750fx check_pow_hid0
|
4884 | a750fc0b | j_mayer | |
4885 | a750fc0b | j_mayer | static void init_proc_750fx (CPUPPCState *env) |
4886 | a750fc0b | j_mayer | { |
4887 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
4888 | a750fc0b | j_mayer | gen_spr_7xx(env); |
4889 | bd928eba | j_mayer | /* XXX : not implemented */
|
4890 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4891 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4892 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4893 | bd928eba | j_mayer | 0x00000000);
|
4894 | a750fc0b | j_mayer | /* Time base */
|
4895 | a750fc0b | j_mayer | gen_tbl(env); |
4896 | a750fc0b | j_mayer | /* Thermal management */
|
4897 | a750fc0b | j_mayer | gen_spr_thrm(env); |
4898 | bd928eba | j_mayer | /* XXX : not implemented */
|
4899 | bd928eba | j_mayer | spr_register(env, SPR_750_THRM4, "THRM4",
|
4900 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4901 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4902 | bd928eba | j_mayer | 0x00000000);
|
4903 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
4904 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4905 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4906 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4907 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4908 | a750fc0b | j_mayer | 0x00000000);
|
4909 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4910 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4911 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4912 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4913 | a750fc0b | j_mayer | 0x00000000);
|
4914 | a750fc0b | j_mayer | /* XXX : not implemented */
|
4915 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
4916 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4917 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
4918 | a750fc0b | j_mayer | 0x00000000);
|
4919 | a750fc0b | j_mayer | /* Memory management */
|
4920 | a750fc0b | j_mayer | gen_low_BATs(env); |
4921 | a750fc0b | j_mayer | /* PowerPC 750fx & 750gx has 8 DBATs and 8 IBATs */
|
4922 | a750fc0b | j_mayer | gen_high_BATs(env); |
4923 | bd928eba | j_mayer | init_excp_7x0(env); |
4924 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
4925 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
4926 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
4927 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
4928 | a750fc0b | j_mayer | } |
4929 | a750fc0b | j_mayer | |
4930 | bd928eba | j_mayer | /* PowerPC 750GX */
|
4931 | bd928eba | j_mayer | #define POWERPC_INSNS_750gx (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4932 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4933 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4934 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4935 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4936 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
4937 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
4938 | bd928eba | j_mayer | #define POWERPC_MSRM_750gx (0x000000000005FF77ULL) |
4939 | bd928eba | j_mayer | #define POWERPC_MMU_750gx (POWERPC_MMU_32B)
|
4940 | bd928eba | j_mayer | #define POWERPC_EXCP_750gx (POWERPC_EXCP_7x0)
|
4941 | bd928eba | j_mayer | #define POWERPC_INPUT_750gx (PPC_FLAGS_INPUT_6xx)
|
4942 | bd928eba | j_mayer | #define POWERPC_BFDM_750gx (bfd_mach_ppc_750)
|
4943 | bd928eba | j_mayer | #define POWERPC_FLAG_750gx (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
4944 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
4945 | bd928eba | j_mayer | #define check_pow_750gx check_pow_hid0
|
4946 | bd928eba | j_mayer | |
4947 | bd928eba | j_mayer | static void init_proc_750gx (CPUPPCState *env) |
4948 | bd928eba | j_mayer | { |
4949 | bd928eba | j_mayer | gen_spr_ne_601(env); |
4950 | bd928eba | j_mayer | gen_spr_7xx(env); |
4951 | bd928eba | j_mayer | /* XXX : not implemented (XXX: different from 750fx) */
|
4952 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
4953 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4954 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4955 | bd928eba | j_mayer | 0x00000000);
|
4956 | bd928eba | j_mayer | /* Time base */
|
4957 | bd928eba | j_mayer | gen_tbl(env); |
4958 | bd928eba | j_mayer | /* Thermal management */
|
4959 | bd928eba | j_mayer | gen_spr_thrm(env); |
4960 | bd928eba | j_mayer | /* XXX : not implemented */
|
4961 | bd928eba | j_mayer | spr_register(env, SPR_750_THRM4, "THRM4",
|
4962 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4963 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4964 | bd928eba | j_mayer | 0x00000000);
|
4965 | bd928eba | j_mayer | /* Hardware implementation registers */
|
4966 | bd928eba | j_mayer | /* XXX : not implemented (XXX: different from 750fx) */
|
4967 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
4968 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4969 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4970 | bd928eba | j_mayer | 0x00000000);
|
4971 | bd928eba | j_mayer | /* XXX : not implemented */
|
4972 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
4973 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4974 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4975 | bd928eba | j_mayer | 0x00000000);
|
4976 | bd928eba | j_mayer | /* XXX : not implemented (XXX: different from 750fx) */
|
4977 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
4978 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
4979 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
4980 | bd928eba | j_mayer | 0x00000000);
|
4981 | bd928eba | j_mayer | /* Memory management */
|
4982 | bd928eba | j_mayer | gen_low_BATs(env); |
4983 | bd928eba | j_mayer | /* PowerPC 750fx & 750gx has 8 DBATs and 8 IBATs */
|
4984 | bd928eba | j_mayer | gen_high_BATs(env); |
4985 | bd928eba | j_mayer | init_excp_7x0(env); |
4986 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
4987 | bd928eba | j_mayer | env->icache_line_size = 32;
|
4988 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
4989 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
4990 | bd928eba | j_mayer | } |
4991 | bd928eba | j_mayer | |
4992 | bd928eba | j_mayer | /* PowerPC 745 */
|
4993 | bd928eba | j_mayer | #define POWERPC_INSNS_745 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
4994 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
4995 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
4996 | bd928eba | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
4997 | bd928eba | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
4998 | bd928eba | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
4999 | bd928eba | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
5000 | bd928eba | j_mayer | #define POWERPC_MSRM_745 (0x000000000005FF77ULL) |
5001 | bd928eba | j_mayer | #define POWERPC_MMU_745 (POWERPC_MMU_SOFT_6xx)
|
5002 | bd928eba | j_mayer | #define POWERPC_EXCP_745 (POWERPC_EXCP_7x5)
|
5003 | bd928eba | j_mayer | #define POWERPC_INPUT_745 (PPC_FLAGS_INPUT_6xx)
|
5004 | bd928eba | j_mayer | #define POWERPC_BFDM_745 (bfd_mach_ppc_750)
|
5005 | bd928eba | j_mayer | #define POWERPC_FLAG_745 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
5006 | bd928eba | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
5007 | bd928eba | j_mayer | #define check_pow_745 check_pow_hid0
|
5008 | bd928eba | j_mayer | |
5009 | bd928eba | j_mayer | static void init_proc_745 (CPUPPCState *env) |
5010 | bd928eba | j_mayer | { |
5011 | bd928eba | j_mayer | gen_spr_ne_601(env); |
5012 | bd928eba | j_mayer | gen_spr_7xx(env); |
5013 | bd928eba | j_mayer | gen_spr_G2_755(env); |
5014 | bd928eba | j_mayer | /* Time base */
|
5015 | bd928eba | j_mayer | gen_tbl(env); |
5016 | bd928eba | j_mayer | /* Thermal management */
|
5017 | bd928eba | j_mayer | gen_spr_thrm(env); |
5018 | bd928eba | j_mayer | /* Hardware implementation registers */
|
5019 | bd928eba | j_mayer | /* XXX : not implemented */
|
5020 | bd928eba | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5021 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5022 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5023 | bd928eba | j_mayer | 0x00000000);
|
5024 | bd928eba | j_mayer | /* XXX : not implemented */
|
5025 | bd928eba | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5026 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5027 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5028 | bd928eba | j_mayer | 0x00000000);
|
5029 | bd928eba | j_mayer | /* XXX : not implemented */
|
5030 | bd928eba | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
5031 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5032 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5033 | bd928eba | j_mayer | 0x00000000);
|
5034 | bd928eba | j_mayer | /* Memory management */
|
5035 | bd928eba | j_mayer | gen_low_BATs(env); |
5036 | bd928eba | j_mayer | gen_high_BATs(env); |
5037 | bd928eba | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
5038 | bd928eba | j_mayer | init_excp_7x5(env); |
5039 | bd928eba | j_mayer | env->dcache_line_size = 32;
|
5040 | bd928eba | j_mayer | env->icache_line_size = 32;
|
5041 | bd928eba | j_mayer | /* Allocate hardware IRQ controller */
|
5042 | bd928eba | j_mayer | ppc6xx_irq_init(env); |
5043 | bd928eba | j_mayer | } |
5044 | bd928eba | j_mayer | |
5045 | bd928eba | j_mayer | /* PowerPC 755 */
|
5046 | bd928eba | j_mayer | #define POWERPC_INSNS_755 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5047 | bd928eba | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5048 | bd928eba | j_mayer | PPC_FLOAT_FRSQRTE | PPC_FLOAT_STFIWX | \ |
5049 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
5050 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5051 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | PPC_6xx_TLB | \ |
5052 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN) |
5053 | bd928eba | j_mayer | #define POWERPC_MSRM_755 (0x000000000005FF77ULL) |
5054 | bd928eba | j_mayer | #define POWERPC_MMU_755 (POWERPC_MMU_SOFT_6xx)
|
5055 | bd928eba | j_mayer | #define POWERPC_EXCP_755 (POWERPC_EXCP_7x5)
|
5056 | bd928eba | j_mayer | #define POWERPC_INPUT_755 (PPC_FLAGS_INPUT_6xx)
|
5057 | bd928eba | j_mayer | #define POWERPC_BFDM_755 (bfd_mach_ppc_750)
|
5058 | bd928eba | j_mayer | #define POWERPC_FLAG_755 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
5059 | 4018bae9 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
5060 | bd928eba | j_mayer | #define check_pow_755 check_pow_hid0
|
5061 | a750fc0b | j_mayer | |
5062 | bd928eba | j_mayer | static void init_proc_755 (CPUPPCState *env) |
5063 | a750fc0b | j_mayer | { |
5064 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5065 | bd928eba | j_mayer | gen_spr_7xx(env); |
5066 | a750fc0b | j_mayer | gen_spr_G2_755(env); |
5067 | a750fc0b | j_mayer | /* Time base */
|
5068 | a750fc0b | j_mayer | gen_tbl(env); |
5069 | a750fc0b | j_mayer | /* L2 cache control */
|
5070 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5071 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5072 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5073 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5074 | a750fc0b | j_mayer | 0x00000000);
|
5075 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5076 | a750fc0b | j_mayer | spr_register(env, SPR_L2PMCR, "L2PMCR",
|
5077 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5078 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5079 | a750fc0b | j_mayer | 0x00000000);
|
5080 | bd928eba | j_mayer | /* Thermal management */
|
5081 | bd928eba | j_mayer | gen_spr_thrm(env); |
5082 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5083 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5084 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5085 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5086 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5087 | a750fc0b | j_mayer | 0x00000000);
|
5088 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5089 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5090 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5091 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5092 | a750fc0b | j_mayer | 0x00000000);
|
5093 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5094 | a750fc0b | j_mayer | spr_register(env, SPR_HID2, "HID2",
|
5095 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5096 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5097 | a750fc0b | j_mayer | 0x00000000);
|
5098 | a750fc0b | j_mayer | /* Memory management */
|
5099 | a750fc0b | j_mayer | gen_low_BATs(env); |
5100 | a750fc0b | j_mayer | gen_high_BATs(env); |
5101 | a750fc0b | j_mayer | gen_6xx_7xx_soft_tlb(env, 64, 2); |
5102 | 7a3a6927 | j_mayer | init_excp_7x5(env); |
5103 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5104 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5105 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5106 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5107 | a750fc0b | j_mayer | } |
5108 | a750fc0b | j_mayer | |
5109 | a750fc0b | j_mayer | /* PowerPC 7400 (aka G4) */
|
5110 | 082c6681 | j_mayer | #define POWERPC_INSNS_7400 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5111 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5112 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5113 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5114 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5115 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5116 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5117 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5118 | 082c6681 | j_mayer | PPC_MEM_TLBIA | \ |
5119 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5120 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5121 | a750fc0b | j_mayer | #define POWERPC_MSRM_7400 (0x000000000205FF77ULL) |
5122 | a750fc0b | j_mayer | #define POWERPC_MMU_7400 (POWERPC_MMU_32B)
|
5123 | a750fc0b | j_mayer | #define POWERPC_EXCP_7400 (POWERPC_EXCP_74xx)
|
5124 | a750fc0b | j_mayer | #define POWERPC_INPUT_7400 (PPC_FLAGS_INPUT_6xx)
|
5125 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7400 (bfd_mach_ppc_7400)
|
5126 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7400 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5127 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5128 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5129 | 4e777442 | j_mayer | #define check_pow_7400 check_pow_hid0_74xx
|
5130 | a750fc0b | j_mayer | |
5131 | a750fc0b | j_mayer | static void init_proc_7400 (CPUPPCState *env) |
5132 | a750fc0b | j_mayer | { |
5133 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5134 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5135 | a750fc0b | j_mayer | /* Time base */
|
5136 | a750fc0b | j_mayer | gen_tbl(env); |
5137 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5138 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5139 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5140 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5141 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5142 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5143 | 4e777442 | j_mayer | 0x00000000);
|
5144 | 4e777442 | j_mayer | /* XXX: this seems not implemented on all revisions. */
|
5145 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5146 | 4e777442 | j_mayer | spr_register(env, SPR_MSSCR1, "MSSCR1",
|
5147 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5148 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5149 | 4e777442 | j_mayer | 0x00000000);
|
5150 | a750fc0b | j_mayer | /* Thermal management */
|
5151 | a750fc0b | j_mayer | gen_spr_thrm(env); |
5152 | a750fc0b | j_mayer | /* Memory management */
|
5153 | a750fc0b | j_mayer | gen_low_BATs(env); |
5154 | e1833e1f | j_mayer | init_excp_7400(env); |
5155 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5156 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5157 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5158 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5159 | a750fc0b | j_mayer | } |
5160 | a750fc0b | j_mayer | |
5161 | a750fc0b | j_mayer | /* PowerPC 7410 (aka G4) */
|
5162 | 082c6681 | j_mayer | #define POWERPC_INSNS_7410 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5163 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5164 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5165 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5166 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5167 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5168 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5169 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5170 | 082c6681 | j_mayer | PPC_MEM_TLBIA | \ |
5171 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5172 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5173 | a750fc0b | j_mayer | #define POWERPC_MSRM_7410 (0x000000000205FF77ULL) |
5174 | a750fc0b | j_mayer | #define POWERPC_MMU_7410 (POWERPC_MMU_32B)
|
5175 | a750fc0b | j_mayer | #define POWERPC_EXCP_7410 (POWERPC_EXCP_74xx)
|
5176 | a750fc0b | j_mayer | #define POWERPC_INPUT_7410 (PPC_FLAGS_INPUT_6xx)
|
5177 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7410 (bfd_mach_ppc_7400)
|
5178 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7410 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5179 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5180 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5181 | 4e777442 | j_mayer | #define check_pow_7410 check_pow_hid0_74xx
|
5182 | a750fc0b | j_mayer | |
5183 | a750fc0b | j_mayer | static void init_proc_7410 (CPUPPCState *env) |
5184 | a750fc0b | j_mayer | { |
5185 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5186 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5187 | a750fc0b | j_mayer | /* Time base */
|
5188 | a750fc0b | j_mayer | gen_tbl(env); |
5189 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5190 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5191 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5192 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5193 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5194 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5195 | 4e777442 | j_mayer | 0x00000000);
|
5196 | a750fc0b | j_mayer | /* Thermal management */
|
5197 | a750fc0b | j_mayer | gen_spr_thrm(env); |
5198 | a750fc0b | j_mayer | /* L2PMCR */
|
5199 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5200 | a750fc0b | j_mayer | spr_register(env, SPR_L2PMCR, "L2PMCR",
|
5201 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5202 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5203 | a750fc0b | j_mayer | 0x00000000);
|
5204 | a750fc0b | j_mayer | /* LDSTDB */
|
5205 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5206 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTDB, "LDSTDB",
|
5207 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5208 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5209 | a750fc0b | j_mayer | 0x00000000);
|
5210 | a750fc0b | j_mayer | /* Memory management */
|
5211 | a750fc0b | j_mayer | gen_low_BATs(env); |
5212 | e1833e1f | j_mayer | init_excp_7400(env); |
5213 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5214 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5215 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5216 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5217 | a750fc0b | j_mayer | } |
5218 | a750fc0b | j_mayer | |
5219 | a750fc0b | j_mayer | /* PowerPC 7440 (aka G4) */
|
5220 | 082c6681 | j_mayer | #define POWERPC_INSNS_7440 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5221 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5222 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5223 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5224 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5225 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5226 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5227 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5228 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5229 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5230 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5231 | a750fc0b | j_mayer | #define POWERPC_MSRM_7440 (0x000000000205FF77ULL) |
5232 | a750fc0b | j_mayer | #define POWERPC_MMU_7440 (POWERPC_MMU_SOFT_74xx)
|
5233 | a750fc0b | j_mayer | #define POWERPC_EXCP_7440 (POWERPC_EXCP_74xx)
|
5234 | a750fc0b | j_mayer | #define POWERPC_INPUT_7440 (PPC_FLAGS_INPUT_6xx)
|
5235 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7440 (bfd_mach_ppc_7400)
|
5236 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7440 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5237 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5238 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5239 | 4e777442 | j_mayer | #define check_pow_7440 check_pow_hid0_74xx
|
5240 | a750fc0b | j_mayer | |
5241 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5242 | a750fc0b | j_mayer | static void init_proc_7440 (CPUPPCState *env) |
5243 | a750fc0b | j_mayer | { |
5244 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5245 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5246 | a750fc0b | j_mayer | /* Time base */
|
5247 | a750fc0b | j_mayer | gen_tbl(env); |
5248 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5249 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5250 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5251 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5252 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5253 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5254 | 4e777442 | j_mayer | 0x00000000);
|
5255 | a750fc0b | j_mayer | /* LDSTCR */
|
5256 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5257 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5258 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5259 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5260 | a750fc0b | j_mayer | 0x00000000);
|
5261 | a750fc0b | j_mayer | /* ICTRL */
|
5262 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5263 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5264 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5265 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5266 | a750fc0b | j_mayer | 0x00000000);
|
5267 | a750fc0b | j_mayer | /* MSSSR0 */
|
5268 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5269 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5270 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5271 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5272 | a750fc0b | j_mayer | 0x00000000);
|
5273 | a750fc0b | j_mayer | /* PMC */
|
5274 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5275 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5276 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5277 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5278 | a750fc0b | j_mayer | 0x00000000);
|
5279 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5280 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5281 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5282 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5283 | a750fc0b | j_mayer | 0x00000000);
|
5284 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5285 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5286 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5287 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5288 | a750fc0b | j_mayer | 0x00000000);
|
5289 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5290 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5291 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5292 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5293 | a750fc0b | j_mayer | 0x00000000);
|
5294 | a750fc0b | j_mayer | /* Memory management */
|
5295 | a750fc0b | j_mayer | gen_low_BATs(env); |
5296 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5297 | 1c27f8fb | j_mayer | init_excp_7450(env); |
5298 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5299 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5300 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5301 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5302 | a750fc0b | j_mayer | } |
5303 | a750fc0b | j_mayer | |
5304 | a750fc0b | j_mayer | /* PowerPC 7450 (aka G4) */
|
5305 | 082c6681 | j_mayer | #define POWERPC_INSNS_7450 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5306 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5307 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5308 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5309 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5310 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5311 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5312 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5313 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5314 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5315 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5316 | a750fc0b | j_mayer | #define POWERPC_MSRM_7450 (0x000000000205FF77ULL) |
5317 | a750fc0b | j_mayer | #define POWERPC_MMU_7450 (POWERPC_MMU_SOFT_74xx)
|
5318 | a750fc0b | j_mayer | #define POWERPC_EXCP_7450 (POWERPC_EXCP_74xx)
|
5319 | a750fc0b | j_mayer | #define POWERPC_INPUT_7450 (PPC_FLAGS_INPUT_6xx)
|
5320 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7450 (bfd_mach_ppc_7400)
|
5321 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7450 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5322 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5323 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5324 | 4e777442 | j_mayer | #define check_pow_7450 check_pow_hid0_74xx
|
5325 | a750fc0b | j_mayer | |
5326 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5327 | a750fc0b | j_mayer | static void init_proc_7450 (CPUPPCState *env) |
5328 | a750fc0b | j_mayer | { |
5329 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5330 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5331 | a750fc0b | j_mayer | /* Time base */
|
5332 | a750fc0b | j_mayer | gen_tbl(env); |
5333 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5334 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5335 | a750fc0b | j_mayer | /* Level 3 cache control */
|
5336 | a750fc0b | j_mayer | gen_l3_ctrl(env); |
5337 | 4e777442 | j_mayer | /* L3ITCR1 */
|
5338 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5339 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR1, "L3ITCR1",
|
5340 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5341 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5342 | 4e777442 | j_mayer | 0x00000000);
|
5343 | 4e777442 | j_mayer | /* L3ITCR2 */
|
5344 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5345 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR2, "L3ITCR2",
|
5346 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5347 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5348 | 4e777442 | j_mayer | 0x00000000);
|
5349 | 4e777442 | j_mayer | /* L3ITCR3 */
|
5350 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5351 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR3, "L3ITCR3",
|
5352 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5353 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5354 | 4e777442 | j_mayer | 0x00000000);
|
5355 | 4e777442 | j_mayer | /* L3OHCR */
|
5356 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5357 | 4e777442 | j_mayer | spr_register(env, SPR_L3OHCR, "L3OHCR",
|
5358 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5359 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5360 | 4e777442 | j_mayer | 0x00000000);
|
5361 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5362 | 4e777442 | j_mayer | spr_register(env, SPR_UBAMR, "UBAMR",
|
5363 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5364 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5365 | 4e777442 | j_mayer | 0x00000000);
|
5366 | a750fc0b | j_mayer | /* LDSTCR */
|
5367 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5368 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5369 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5370 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5371 | a750fc0b | j_mayer | 0x00000000);
|
5372 | a750fc0b | j_mayer | /* ICTRL */
|
5373 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5374 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5375 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5376 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5377 | a750fc0b | j_mayer | 0x00000000);
|
5378 | a750fc0b | j_mayer | /* MSSSR0 */
|
5379 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5380 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5381 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5382 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5383 | a750fc0b | j_mayer | 0x00000000);
|
5384 | a750fc0b | j_mayer | /* PMC */
|
5385 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5386 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5387 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5388 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5389 | a750fc0b | j_mayer | 0x00000000);
|
5390 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5391 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5392 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5393 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5394 | a750fc0b | j_mayer | 0x00000000);
|
5395 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5396 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5397 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5398 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5399 | a750fc0b | j_mayer | 0x00000000);
|
5400 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5401 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5402 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5403 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5404 | a750fc0b | j_mayer | 0x00000000);
|
5405 | a750fc0b | j_mayer | /* Memory management */
|
5406 | a750fc0b | j_mayer | gen_low_BATs(env); |
5407 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5408 | e1833e1f | j_mayer | init_excp_7450(env); |
5409 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5410 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5411 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5412 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5413 | a750fc0b | j_mayer | } |
5414 | a750fc0b | j_mayer | |
5415 | a750fc0b | j_mayer | /* PowerPC 7445 (aka G4) */
|
5416 | 082c6681 | j_mayer | #define POWERPC_INSNS_7445 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5417 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5418 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5419 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5420 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5421 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5422 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5423 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5424 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5425 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5426 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5427 | a750fc0b | j_mayer | #define POWERPC_MSRM_7445 (0x000000000205FF77ULL) |
5428 | a750fc0b | j_mayer | #define POWERPC_MMU_7445 (POWERPC_MMU_SOFT_74xx)
|
5429 | a750fc0b | j_mayer | #define POWERPC_EXCP_7445 (POWERPC_EXCP_74xx)
|
5430 | a750fc0b | j_mayer | #define POWERPC_INPUT_7445 (PPC_FLAGS_INPUT_6xx)
|
5431 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7445 (bfd_mach_ppc_7400)
|
5432 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7445 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5433 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5434 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5435 | 4e777442 | j_mayer | #define check_pow_7445 check_pow_hid0_74xx
|
5436 | a750fc0b | j_mayer | |
5437 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5438 | a750fc0b | j_mayer | static void init_proc_7445 (CPUPPCState *env) |
5439 | a750fc0b | j_mayer | { |
5440 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5441 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5442 | a750fc0b | j_mayer | /* Time base */
|
5443 | a750fc0b | j_mayer | gen_tbl(env); |
5444 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5445 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5446 | a750fc0b | j_mayer | /* LDSTCR */
|
5447 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5448 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5449 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5450 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5451 | a750fc0b | j_mayer | 0x00000000);
|
5452 | a750fc0b | j_mayer | /* ICTRL */
|
5453 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5454 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5455 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5456 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5457 | a750fc0b | j_mayer | 0x00000000);
|
5458 | a750fc0b | j_mayer | /* MSSSR0 */
|
5459 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5460 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5461 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5462 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5463 | a750fc0b | j_mayer | 0x00000000);
|
5464 | a750fc0b | j_mayer | /* PMC */
|
5465 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5466 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5467 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5468 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5469 | a750fc0b | j_mayer | 0x00000000);
|
5470 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5471 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5472 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5473 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5474 | a750fc0b | j_mayer | 0x00000000);
|
5475 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5476 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5477 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5478 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5479 | a750fc0b | j_mayer | 0x00000000);
|
5480 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5481 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5482 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5483 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5484 | a750fc0b | j_mayer | 0x00000000);
|
5485 | a750fc0b | j_mayer | /* SPRGs */
|
5486 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5487 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5488 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5489 | a750fc0b | j_mayer | 0x00000000);
|
5490 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5491 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5492 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5493 | a750fc0b | j_mayer | 0x00000000);
|
5494 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5495 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5496 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5497 | a750fc0b | j_mayer | 0x00000000);
|
5498 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5499 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5500 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5501 | a750fc0b | j_mayer | 0x00000000);
|
5502 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5503 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5504 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5505 | a750fc0b | j_mayer | 0x00000000);
|
5506 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5507 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5508 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5509 | a750fc0b | j_mayer | 0x00000000);
|
5510 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5511 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5512 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5513 | a750fc0b | j_mayer | 0x00000000);
|
5514 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5515 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5516 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5517 | a750fc0b | j_mayer | 0x00000000);
|
5518 | a750fc0b | j_mayer | /* Memory management */
|
5519 | a750fc0b | j_mayer | gen_low_BATs(env); |
5520 | a750fc0b | j_mayer | gen_high_BATs(env); |
5521 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5522 | e1833e1f | j_mayer | init_excp_7450(env); |
5523 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5524 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5525 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5526 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5527 | a750fc0b | j_mayer | } |
5528 | a750fc0b | j_mayer | |
5529 | a750fc0b | j_mayer | /* PowerPC 7455 (aka G4) */
|
5530 | 082c6681 | j_mayer | #define POWERPC_INSNS_7455 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5531 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5532 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5533 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5534 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5535 | 082c6681 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5536 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5537 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5538 | 082c6681 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5539 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5540 | a750fc0b | j_mayer | PPC_ALTIVEC) |
5541 | a750fc0b | j_mayer | #define POWERPC_MSRM_7455 (0x000000000205FF77ULL) |
5542 | a750fc0b | j_mayer | #define POWERPC_MMU_7455 (POWERPC_MMU_SOFT_74xx)
|
5543 | a750fc0b | j_mayer | #define POWERPC_EXCP_7455 (POWERPC_EXCP_74xx)
|
5544 | a750fc0b | j_mayer | #define POWERPC_INPUT_7455 (PPC_FLAGS_INPUT_6xx)
|
5545 | 237c0af0 | j_mayer | #define POWERPC_BFDM_7455 (bfd_mach_ppc_7400)
|
5546 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_7455 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5547 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5548 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5549 | 4e777442 | j_mayer | #define check_pow_7455 check_pow_hid0_74xx
|
5550 | a750fc0b | j_mayer | |
5551 | 578bb252 | j_mayer | __attribute__ (( unused )) |
5552 | a750fc0b | j_mayer | static void init_proc_7455 (CPUPPCState *env) |
5553 | a750fc0b | j_mayer | { |
5554 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5555 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5556 | a750fc0b | j_mayer | /* Time base */
|
5557 | a750fc0b | j_mayer | gen_tbl(env); |
5558 | a750fc0b | j_mayer | /* 74xx specific SPR */
|
5559 | a750fc0b | j_mayer | gen_spr_74xx(env); |
5560 | a750fc0b | j_mayer | /* Level 3 cache control */
|
5561 | a750fc0b | j_mayer | gen_l3_ctrl(env); |
5562 | a750fc0b | j_mayer | /* LDSTCR */
|
5563 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5564 | a750fc0b | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5565 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5566 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5567 | a750fc0b | j_mayer | 0x00000000);
|
5568 | a750fc0b | j_mayer | /* ICTRL */
|
5569 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5570 | a750fc0b | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5571 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5572 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5573 | a750fc0b | j_mayer | 0x00000000);
|
5574 | a750fc0b | j_mayer | /* MSSSR0 */
|
5575 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5576 | a750fc0b | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5577 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5578 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5579 | a750fc0b | j_mayer | 0x00000000);
|
5580 | a750fc0b | j_mayer | /* PMC */
|
5581 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5582 | a750fc0b | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5583 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5584 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5585 | a750fc0b | j_mayer | 0x00000000);
|
5586 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5587 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5588 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5589 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5590 | a750fc0b | j_mayer | 0x00000000);
|
5591 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5592 | a750fc0b | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5593 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5594 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5595 | a750fc0b | j_mayer | 0x00000000);
|
5596 | 578bb252 | j_mayer | /* XXX : not implemented */
|
5597 | a750fc0b | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5598 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5599 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5600 | a750fc0b | j_mayer | 0x00000000);
|
5601 | a750fc0b | j_mayer | /* SPRGs */
|
5602 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5603 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5604 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5605 | a750fc0b | j_mayer | 0x00000000);
|
5606 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5607 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5608 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5609 | a750fc0b | j_mayer | 0x00000000);
|
5610 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5611 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5612 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5613 | a750fc0b | j_mayer | 0x00000000);
|
5614 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5615 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5616 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5617 | a750fc0b | j_mayer | 0x00000000);
|
5618 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5619 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5620 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5621 | a750fc0b | j_mayer | 0x00000000);
|
5622 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5623 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5624 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5625 | a750fc0b | j_mayer | 0x00000000);
|
5626 | a750fc0b | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5627 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5628 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5629 | a750fc0b | j_mayer | 0x00000000);
|
5630 | a750fc0b | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5631 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5632 | a750fc0b | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5633 | a750fc0b | j_mayer | 0x00000000);
|
5634 | a750fc0b | j_mayer | /* Memory management */
|
5635 | a750fc0b | j_mayer | gen_low_BATs(env); |
5636 | a750fc0b | j_mayer | gen_high_BATs(env); |
5637 | 578bb252 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5638 | e1833e1f | j_mayer | init_excp_7450(env); |
5639 | d63001d1 | j_mayer | env->dcache_line_size = 32;
|
5640 | d63001d1 | j_mayer | env->icache_line_size = 32;
|
5641 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5642 | a750fc0b | j_mayer | ppc6xx_irq_init(env); |
5643 | a750fc0b | j_mayer | } |
5644 | a750fc0b | j_mayer | |
5645 | 4e777442 | j_mayer | /* PowerPC 7457 (aka G4) */
|
5646 | 4e777442 | j_mayer | #define POWERPC_INSNS_7457 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5647 | 4e777442 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5648 | 4e777442 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5649 | 4e777442 | j_mayer | PPC_FLOAT_STFIWX | \ |
5650 | 4e777442 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | \ |
5651 | 4e777442 | j_mayer | PPC_CACHE_DCBA | PPC_CACHE_DCBZ | \ |
5652 | 4e777442 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5653 | 4e777442 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5654 | 4e777442 | j_mayer | PPC_MEM_TLBIA | PPC_74xx_TLB | \ |
5655 | 4e777442 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
5656 | 4e777442 | j_mayer | PPC_ALTIVEC) |
5657 | 4e777442 | j_mayer | #define POWERPC_MSRM_7457 (0x000000000205FF77ULL) |
5658 | 4e777442 | j_mayer | #define POWERPC_MMU_7457 (POWERPC_MMU_SOFT_74xx)
|
5659 | 4e777442 | j_mayer | #define POWERPC_EXCP_7457 (POWERPC_EXCP_74xx)
|
5660 | 4e777442 | j_mayer | #define POWERPC_INPUT_7457 (PPC_FLAGS_INPUT_6xx)
|
5661 | 4e777442 | j_mayer | #define POWERPC_BFDM_7457 (bfd_mach_ppc_7400)
|
5662 | 4e777442 | j_mayer | #define POWERPC_FLAG_7457 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5663 | 4e777442 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5664 | 4e777442 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5665 | 4e777442 | j_mayer | #define check_pow_7457 check_pow_hid0_74xx
|
5666 | 4e777442 | j_mayer | |
5667 | 4e777442 | j_mayer | __attribute__ (( unused )) |
5668 | 4e777442 | j_mayer | static void init_proc_7457 (CPUPPCState *env) |
5669 | 4e777442 | j_mayer | { |
5670 | 4e777442 | j_mayer | gen_spr_ne_601(env); |
5671 | 4e777442 | j_mayer | gen_spr_7xx(env); |
5672 | 4e777442 | j_mayer | /* Time base */
|
5673 | 4e777442 | j_mayer | gen_tbl(env); |
5674 | 4e777442 | j_mayer | /* 74xx specific SPR */
|
5675 | 4e777442 | j_mayer | gen_spr_74xx(env); |
5676 | 4e777442 | j_mayer | /* Level 3 cache control */
|
5677 | 4e777442 | j_mayer | gen_l3_ctrl(env); |
5678 | 4e777442 | j_mayer | /* L3ITCR1 */
|
5679 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5680 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR1, "L3ITCR1",
|
5681 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5682 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5683 | 4e777442 | j_mayer | 0x00000000);
|
5684 | 4e777442 | j_mayer | /* L3ITCR2 */
|
5685 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5686 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR2, "L3ITCR2",
|
5687 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5688 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5689 | 4e777442 | j_mayer | 0x00000000);
|
5690 | 4e777442 | j_mayer | /* L3ITCR3 */
|
5691 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5692 | 4e777442 | j_mayer | spr_register(env, SPR_L3ITCR3, "L3ITCR3",
|
5693 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5694 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5695 | 4e777442 | j_mayer | 0x00000000);
|
5696 | 4e777442 | j_mayer | /* L3OHCR */
|
5697 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5698 | 4e777442 | j_mayer | spr_register(env, SPR_L3OHCR, "L3OHCR",
|
5699 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5700 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5701 | 4e777442 | j_mayer | 0x00000000);
|
5702 | 4e777442 | j_mayer | /* LDSTCR */
|
5703 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5704 | 4e777442 | j_mayer | spr_register(env, SPR_LDSTCR, "LDSTCR",
|
5705 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5706 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5707 | 4e777442 | j_mayer | 0x00000000);
|
5708 | 4e777442 | j_mayer | /* ICTRL */
|
5709 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5710 | 4e777442 | j_mayer | spr_register(env, SPR_ICTRL, "ICTRL",
|
5711 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5712 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5713 | 4e777442 | j_mayer | 0x00000000);
|
5714 | 4e777442 | j_mayer | /* MSSSR0 */
|
5715 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5716 | 4e777442 | j_mayer | spr_register(env, SPR_MSSSR0, "MSSSR0",
|
5717 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5718 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5719 | 4e777442 | j_mayer | 0x00000000);
|
5720 | 4e777442 | j_mayer | /* PMC */
|
5721 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5722 | 4e777442 | j_mayer | spr_register(env, SPR_PMC5, "PMC5",
|
5723 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5724 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5725 | 4e777442 | j_mayer | 0x00000000);
|
5726 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5727 | 4e777442 | j_mayer | spr_register(env, SPR_UPMC5, "UPMC5",
|
5728 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5729 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5730 | 4e777442 | j_mayer | 0x00000000);
|
5731 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5732 | 4e777442 | j_mayer | spr_register(env, SPR_PMC6, "PMC6",
|
5733 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5734 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5735 | 4e777442 | j_mayer | 0x00000000);
|
5736 | 4e777442 | j_mayer | /* XXX : not implemented */
|
5737 | 4e777442 | j_mayer | spr_register(env, SPR_UPMC6, "UPMC6",
|
5738 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5739 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5740 | 4e777442 | j_mayer | 0x00000000);
|
5741 | 4e777442 | j_mayer | /* SPRGs */
|
5742 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG4, "SPRG4",
|
5743 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5744 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5745 | 4e777442 | j_mayer | 0x00000000);
|
5746 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG4, "USPRG4",
|
5747 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5748 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5749 | 4e777442 | j_mayer | 0x00000000);
|
5750 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG5, "SPRG5",
|
5751 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5752 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5753 | 4e777442 | j_mayer | 0x00000000);
|
5754 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG5, "USPRG5",
|
5755 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5756 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5757 | 4e777442 | j_mayer | 0x00000000);
|
5758 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG6, "SPRG6",
|
5759 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5760 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5761 | 4e777442 | j_mayer | 0x00000000);
|
5762 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG6, "USPRG6",
|
5763 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5764 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5765 | 4e777442 | j_mayer | 0x00000000);
|
5766 | 4e777442 | j_mayer | spr_register(env, SPR_SPRG7, "SPRG7",
|
5767 | 4e777442 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5768 | 4e777442 | j_mayer | &spr_read_generic, &spr_write_generic, |
5769 | 4e777442 | j_mayer | 0x00000000);
|
5770 | 4e777442 | j_mayer | spr_register(env, SPR_USPRG7, "USPRG7",
|
5771 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5772 | 4e777442 | j_mayer | &spr_read_ureg, SPR_NOACCESS, |
5773 | 4e777442 | j_mayer | 0x00000000);
|
5774 | 4e777442 | j_mayer | /* Memory management */
|
5775 | 4e777442 | j_mayer | gen_low_BATs(env); |
5776 | 4e777442 | j_mayer | gen_high_BATs(env); |
5777 | 4e777442 | j_mayer | gen_74xx_soft_tlb(env, 128, 2); |
5778 | 4e777442 | j_mayer | init_excp_7450(env); |
5779 | 4e777442 | j_mayer | env->dcache_line_size = 32;
|
5780 | 4e777442 | j_mayer | env->icache_line_size = 32;
|
5781 | 4e777442 | j_mayer | /* Allocate hardware IRQ controller */
|
5782 | 4e777442 | j_mayer | ppc6xx_irq_init(env); |
5783 | 4e777442 | j_mayer | } |
5784 | 4e777442 | j_mayer | |
5785 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
5786 | a750fc0b | j_mayer | /* PowerPC 970 */
|
5787 | 082c6681 | j_mayer | #define POWERPC_INSNS_970 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5788 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5789 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5790 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5791 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
5792 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5793 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5794 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
5795 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
5796 | a750fc0b | j_mayer | #define POWERPC_MSRM_970 (0x900000000204FF36ULL) |
5797 | 12de9a39 | j_mayer | #define POWERPC_MMU_970 (POWERPC_MMU_64B)
|
5798 | a750fc0b | j_mayer | //#define POWERPC_EXCP_970 (POWERPC_EXCP_970)
|
5799 | a750fc0b | j_mayer | #define POWERPC_INPUT_970 (PPC_FLAGS_INPUT_970)
|
5800 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970 (bfd_mach_ppc64)
|
5801 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970 (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5802 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5803 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5804 | a750fc0b | j_mayer | |
5805 | 417bf010 | j_mayer | #if defined(CONFIG_USER_ONLY)
|
5806 | 417bf010 | j_mayer | #define POWERPC970_HID5_INIT 0x00000080 |
5807 | 417bf010 | j_mayer | #else
|
5808 | 417bf010 | j_mayer | #define POWERPC970_HID5_INIT 0x00000000 |
5809 | 417bf010 | j_mayer | #endif
|
5810 | 417bf010 | j_mayer | |
5811 | 2f462816 | j_mayer | static int check_pow_970 (CPUPPCState *env) |
5812 | 2f462816 | j_mayer | { |
5813 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
5814 | 2f462816 | j_mayer | return 1; |
5815 | 2f462816 | j_mayer | |
5816 | 2f462816 | j_mayer | return 0; |
5817 | 2f462816 | j_mayer | } |
5818 | 2f462816 | j_mayer | |
5819 | a750fc0b | j_mayer | static void init_proc_970 (CPUPPCState *env) |
5820 | a750fc0b | j_mayer | { |
5821 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5822 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5823 | a750fc0b | j_mayer | /* Time base */
|
5824 | a750fc0b | j_mayer | gen_tbl(env); |
5825 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5826 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5827 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5828 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5829 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
5830 | d63001d1 | j_mayer | 0x60000000);
|
5831 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5832 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5833 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5834 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5835 | a750fc0b | j_mayer | 0x00000000);
|
5836 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5837 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
5838 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5839 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5840 | a750fc0b | j_mayer | 0x00000000);
|
5841 | e57448f1 | j_mayer | /* XXX : not implemented */
|
5842 | e57448f1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
5843 | e57448f1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5844 | e57448f1 | j_mayer | &spr_read_generic, &spr_write_generic, |
5845 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
5846 | bd928eba | j_mayer | /* XXX : not implemented */
|
5847 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5848 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5849 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5850 | bd928eba | j_mayer | 0x00000000);
|
5851 | a750fc0b | j_mayer | /* Memory management */
|
5852 | a750fc0b | j_mayer | /* XXX: not correct */
|
5853 | a750fc0b | j_mayer | gen_low_BATs(env); |
5854 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
5855 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
5856 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5857 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
5858 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
5859 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
5860 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
5861 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5862 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
5863 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
5864 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
5865 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5866 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
5867 | 12de9a39 | j_mayer | 0xFFF00000); /* XXX: This is a hack */ |
5868 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
5869 | 12de9a39 | j_mayer | env->slb_nr = 32;
|
5870 | f2e63a42 | j_mayer | #endif
|
5871 | e1833e1f | j_mayer | init_excp_970(env); |
5872 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
5873 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
5874 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5875 | a750fc0b | j_mayer | ppc970_irq_init(env); |
5876 | a750fc0b | j_mayer | } |
5877 | a750fc0b | j_mayer | |
5878 | a750fc0b | j_mayer | /* PowerPC 970FX (aka G5) */
|
5879 | 082c6681 | j_mayer | #define POWERPC_INSNS_970FX (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5880 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5881 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5882 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5883 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
5884 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5885 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5886 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
5887 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
5888 | a750fc0b | j_mayer | #define POWERPC_MSRM_970FX (0x800000000204FF36ULL) |
5889 | 12de9a39 | j_mayer | #define POWERPC_MMU_970FX (POWERPC_MMU_64B)
|
5890 | a750fc0b | j_mayer | #define POWERPC_EXCP_970FX (POWERPC_EXCP_970)
|
5891 | a750fc0b | j_mayer | #define POWERPC_INPUT_970FX (PPC_FLAGS_INPUT_970)
|
5892 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970FX (bfd_mach_ppc64)
|
5893 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970FX (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5894 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5895 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5896 | a750fc0b | j_mayer | |
5897 | 2f462816 | j_mayer | static int check_pow_970FX (CPUPPCState *env) |
5898 | 2f462816 | j_mayer | { |
5899 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
5900 | 2f462816 | j_mayer | return 1; |
5901 | 2f462816 | j_mayer | |
5902 | 2f462816 | j_mayer | return 0; |
5903 | 2f462816 | j_mayer | } |
5904 | 2f462816 | j_mayer | |
5905 | a750fc0b | j_mayer | static void init_proc_970FX (CPUPPCState *env) |
5906 | a750fc0b | j_mayer | { |
5907 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5908 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5909 | a750fc0b | j_mayer | /* Time base */
|
5910 | a750fc0b | j_mayer | gen_tbl(env); |
5911 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5912 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5913 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
5914 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5915 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
5916 | d63001d1 | j_mayer | 0x60000000);
|
5917 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5918 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
5919 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5920 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5921 | a750fc0b | j_mayer | 0x00000000);
|
5922 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5923 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
5924 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5925 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
5926 | a750fc0b | j_mayer | 0x00000000);
|
5927 | d63001d1 | j_mayer | /* XXX : not implemented */
|
5928 | d63001d1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
5929 | d63001d1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5930 | d63001d1 | j_mayer | &spr_read_generic, &spr_write_generic, |
5931 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
5932 | bd928eba | j_mayer | /* XXX : not implemented */
|
5933 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
5934 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5935 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
5936 | bd928eba | j_mayer | 0x00000000);
|
5937 | a750fc0b | j_mayer | /* Memory management */
|
5938 | a750fc0b | j_mayer | /* XXX: not correct */
|
5939 | a750fc0b | j_mayer | gen_low_BATs(env); |
5940 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
5941 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
5942 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5943 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
5944 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
5945 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
5946 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
5947 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5948 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
5949 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
5950 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
5951 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
5952 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
5953 | 12de9a39 | j_mayer | 0xFFF00000); /* XXX: This is a hack */ |
5954 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
5955 | 12de9a39 | j_mayer | env->slb_nr = 32;
|
5956 | f2e63a42 | j_mayer | #endif
|
5957 | e1833e1f | j_mayer | init_excp_970(env); |
5958 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
5959 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
5960 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
5961 | a750fc0b | j_mayer | ppc970_irq_init(env); |
5962 | a750fc0b | j_mayer | } |
5963 | a750fc0b | j_mayer | |
5964 | a750fc0b | j_mayer | /* PowerPC 970 GX */
|
5965 | 082c6681 | j_mayer | #define POWERPC_INSNS_970GX (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
5966 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
5967 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
5968 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
5969 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
5970 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
5971 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
5972 | a750fc0b | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
5973 | 12de9a39 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
5974 | a750fc0b | j_mayer | #define POWERPC_MSRM_970GX (0x800000000204FF36ULL) |
5975 | 12de9a39 | j_mayer | #define POWERPC_MMU_970GX (POWERPC_MMU_64B)
|
5976 | a750fc0b | j_mayer | #define POWERPC_EXCP_970GX (POWERPC_EXCP_970)
|
5977 | a750fc0b | j_mayer | #define POWERPC_INPUT_970GX (PPC_FLAGS_INPUT_970)
|
5978 | 237c0af0 | j_mayer | #define POWERPC_BFDM_970GX (bfd_mach_ppc64)
|
5979 | 25ba3a68 | j_mayer | #define POWERPC_FLAG_970GX (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
5980 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
5981 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
5982 | a750fc0b | j_mayer | |
5983 | 2f462816 | j_mayer | static int check_pow_970GX (CPUPPCState *env) |
5984 | 2f462816 | j_mayer | { |
5985 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x00600000) |
5986 | 2f462816 | j_mayer | return 1; |
5987 | 2f462816 | j_mayer | |
5988 | 2f462816 | j_mayer | return 0; |
5989 | 2f462816 | j_mayer | } |
5990 | 2f462816 | j_mayer | |
5991 | a750fc0b | j_mayer | static void init_proc_970GX (CPUPPCState *env) |
5992 | a750fc0b | j_mayer | { |
5993 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
5994 | a750fc0b | j_mayer | gen_spr_7xx(env); |
5995 | a750fc0b | j_mayer | /* Time base */
|
5996 | a750fc0b | j_mayer | gen_tbl(env); |
5997 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
5998 | a750fc0b | j_mayer | /* XXX : not implemented */
|
5999 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6000 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6001 | 06403421 | j_mayer | &spr_read_generic, &spr_write_clear, |
6002 | d63001d1 | j_mayer | 0x60000000);
|
6003 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6004 | a750fc0b | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
6005 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6006 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6007 | a750fc0b | j_mayer | 0x00000000);
|
6008 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6009 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
6010 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6011 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6012 | a750fc0b | j_mayer | 0x00000000);
|
6013 | d63001d1 | j_mayer | /* XXX : not implemented */
|
6014 | d63001d1 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
6015 | d63001d1 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6016 | d63001d1 | j_mayer | &spr_read_generic, &spr_write_generic, |
6017 | 417bf010 | j_mayer | POWERPC970_HID5_INIT); |
6018 | bd928eba | j_mayer | /* XXX : not implemented */
|
6019 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
6020 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6021 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
6022 | bd928eba | j_mayer | 0x00000000);
|
6023 | a750fc0b | j_mayer | /* Memory management */
|
6024 | a750fc0b | j_mayer | /* XXX: not correct */
|
6025 | a750fc0b | j_mayer | gen_low_BATs(env); |
6026 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6027 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
6028 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6029 | 12de9a39 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
6030 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6031 | 12de9a39 | j_mayer | /* XXX : not implemented */
|
6032 | 12de9a39 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
6033 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6034 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
6035 | 12de9a39 | j_mayer | 0x00000000); /* TOFIX */ |
6036 | 12de9a39 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
6037 | 12de9a39 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6038 | 12de9a39 | j_mayer | &spr_read_generic, &spr_write_generic, |
6039 | 12de9a39 | j_mayer | 0xFFF00000); /* XXX: This is a hack */ |
6040 | 12de9a39 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6041 | 12de9a39 | j_mayer | env->slb_nr = 32;
|
6042 | f2e63a42 | j_mayer | #endif
|
6043 | e1833e1f | j_mayer | init_excp_970(env); |
6044 | d63001d1 | j_mayer | env->dcache_line_size = 128;
|
6045 | d63001d1 | j_mayer | env->icache_line_size = 128;
|
6046 | a750fc0b | j_mayer | /* Allocate hardware IRQ controller */
|
6047 | a750fc0b | j_mayer | ppc970_irq_init(env); |
6048 | a750fc0b | j_mayer | } |
6049 | a750fc0b | j_mayer | |
6050 | 2f462816 | j_mayer | /* PowerPC 970 MP */
|
6051 | 082c6681 | j_mayer | #define POWERPC_INSNS_970MP (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6052 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6053 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6054 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6055 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZT | \ |
6056 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6057 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6058 | 2f462816 | j_mayer | PPC_64B | PPC_ALTIVEC | \ |
6059 | 2f462816 | j_mayer | PPC_SEGMENT_64B | PPC_SLBI) |
6060 | 2f462816 | j_mayer | #define POWERPC_MSRM_970MP (0x900000000204FF36ULL) |
6061 | 2f462816 | j_mayer | #define POWERPC_MMU_970MP (POWERPC_MMU_64B)
|
6062 | 2f462816 | j_mayer | #define POWERPC_EXCP_970MP (POWERPC_EXCP_970)
|
6063 | 2f462816 | j_mayer | #define POWERPC_INPUT_970MP (PPC_FLAGS_INPUT_970)
|
6064 | 2f462816 | j_mayer | #define POWERPC_BFDM_970MP (bfd_mach_ppc64)
|
6065 | 2f462816 | j_mayer | #define POWERPC_FLAG_970MP (POWERPC_FLAG_VRE | POWERPC_FLAG_SE | \
|
6066 | 4018bae9 | j_mayer | POWERPC_FLAG_BE | POWERPC_FLAG_PMM | \ |
6067 | 4018bae9 | j_mayer | POWERPC_FLAG_BUS_CLK) |
6068 | 2f462816 | j_mayer | |
6069 | 2f462816 | j_mayer | static int check_pow_970MP (CPUPPCState *env) |
6070 | 2f462816 | j_mayer | { |
6071 | 2f462816 | j_mayer | if (env->spr[SPR_HID0] & 0x01C00000) |
6072 | 2f462816 | j_mayer | return 1; |
6073 | 2f462816 | j_mayer | |
6074 | 2f462816 | j_mayer | return 0; |
6075 | 2f462816 | j_mayer | } |
6076 | 2f462816 | j_mayer | |
6077 | 2f462816 | j_mayer | static void init_proc_970MP (CPUPPCState *env) |
6078 | 2f462816 | j_mayer | { |
6079 | 2f462816 | j_mayer | gen_spr_ne_601(env); |
6080 | 2f462816 | j_mayer | gen_spr_7xx(env); |
6081 | 2f462816 | j_mayer | /* Time base */
|
6082 | 2f462816 | j_mayer | gen_tbl(env); |
6083 | 2f462816 | j_mayer | /* Hardware implementation registers */
|
6084 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6085 | 2f462816 | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6086 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6087 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_clear, |
6088 | 2f462816 | j_mayer | 0x60000000);
|
6089 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6090 | 2f462816 | j_mayer | spr_register(env, SPR_HID1, "HID1",
|
6091 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6092 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6093 | 2f462816 | j_mayer | 0x00000000);
|
6094 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6095 | bd928eba | j_mayer | spr_register(env, SPR_750FX_HID2, "HID2",
|
6096 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6097 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6098 | 2f462816 | j_mayer | 0x00000000);
|
6099 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6100 | 2f462816 | j_mayer | spr_register(env, SPR_970_HID5, "HID5",
|
6101 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6102 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6103 | 2f462816 | j_mayer | POWERPC970_HID5_INIT); |
6104 | bd928eba | j_mayer | /* XXX : not implemented */
|
6105 | bd928eba | j_mayer | spr_register(env, SPR_L2CR, "L2CR",
|
6106 | bd928eba | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6107 | bd928eba | j_mayer | &spr_read_generic, &spr_write_generic, |
6108 | bd928eba | j_mayer | 0x00000000);
|
6109 | 2f462816 | j_mayer | /* Memory management */
|
6110 | 2f462816 | j_mayer | /* XXX: not correct */
|
6111 | 2f462816 | j_mayer | gen_low_BATs(env); |
6112 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6113 | 2f462816 | j_mayer | spr_register(env, SPR_MMUCFG, "MMUCFG",
|
6114 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6115 | 2f462816 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
6116 | 2f462816 | j_mayer | 0x00000000); /* TOFIX */ |
6117 | 2f462816 | j_mayer | /* XXX : not implemented */
|
6118 | 2f462816 | j_mayer | spr_register(env, SPR_MMUCSR0, "MMUCSR0",
|
6119 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6120 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6121 | 2f462816 | j_mayer | 0x00000000); /* TOFIX */ |
6122 | 2f462816 | j_mayer | spr_register(env, SPR_HIOR, "SPR_HIOR",
|
6123 | 2f462816 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6124 | 2f462816 | j_mayer | &spr_read_generic, &spr_write_generic, |
6125 | 2f462816 | j_mayer | 0xFFF00000); /* XXX: This is a hack */ |
6126 | 2f462816 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
6127 | 2f462816 | j_mayer | env->slb_nr = 32;
|
6128 | 2f462816 | j_mayer | #endif
|
6129 | 2f462816 | j_mayer | init_excp_970(env); |
6130 | 2f462816 | j_mayer | env->dcache_line_size = 128;
|
6131 | 2f462816 | j_mayer | env->icache_line_size = 128;
|
6132 | 2f462816 | j_mayer | /* Allocate hardware IRQ controller */
|
6133 | 2f462816 | j_mayer | ppc970_irq_init(env); |
6134 | 2f462816 | j_mayer | } |
6135 | 2f462816 | j_mayer | |
6136 | a750fc0b | j_mayer | /* PowerPC 620 */
|
6137 | 082c6681 | j_mayer | #define POWERPC_INSNS_620 (PPC_INSNS_BASE | PPC_STRING | PPC_MFTB | \
|
6138 | 082c6681 | j_mayer | PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES | \ |
6139 | 082c6681 | j_mayer | PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE | \ |
6140 | 082c6681 | j_mayer | PPC_FLOAT_STFIWX | \ |
6141 | 082c6681 | j_mayer | PPC_CACHE | PPC_CACHE_ICBI | PPC_CACHE_DCBZ | \ |
6142 | 082c6681 | j_mayer | PPC_MEM_SYNC | PPC_MEM_EIEIO | \ |
6143 | 082c6681 | j_mayer | PPC_MEM_TLBIE | PPC_MEM_TLBSYNC | \ |
6144 | 082c6681 | j_mayer | PPC_SEGMENT | PPC_EXTERN | \ |
6145 | a750fc0b | j_mayer | PPC_64B | PPC_SLBI) |
6146 | add78955 | j_mayer | #define POWERPC_MSRM_620 (0x800000000005FF77ULL) |
6147 | add78955 | j_mayer | //#define POWERPC_MMU_620 (POWERPC_MMU_620)
|
6148 | a750fc0b | j_mayer | #define POWERPC_EXCP_620 (POWERPC_EXCP_970)
|
6149 | faadf50e | j_mayer | #define POWERPC_INPUT_620 (PPC_FLAGS_INPUT_6xx)
|
6150 | 237c0af0 | j_mayer | #define POWERPC_BFDM_620 (bfd_mach_ppc64)
|
6151 | 4018bae9 | j_mayer | #define POWERPC_FLAG_620 (POWERPC_FLAG_SE | POWERPC_FLAG_BE | \
|
6152 | add78955 | j_mayer | POWERPC_FLAG_PMM | POWERPC_FLAG_BUS_CLK) |
6153 | 2f462816 | j_mayer | #define check_pow_620 check_pow_nocheck /* Check this */ |
6154 | a750fc0b | j_mayer | |
6155 | 578bb252 | j_mayer | __attribute__ (( unused )) |
6156 | a750fc0b | j_mayer | static void init_proc_620 (CPUPPCState *env) |
6157 | a750fc0b | j_mayer | { |
6158 | a750fc0b | j_mayer | gen_spr_ne_601(env); |
6159 | a750fc0b | j_mayer | gen_spr_620(env); |
6160 | a750fc0b | j_mayer | /* Time base */
|
6161 | a750fc0b | j_mayer | gen_tbl(env); |
6162 | a750fc0b | j_mayer | /* Hardware implementation registers */
|
6163 | a750fc0b | j_mayer | /* XXX : not implemented */
|
6164 | a750fc0b | j_mayer | spr_register(env, SPR_HID0, "HID0",
|
6165 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
6166 | a750fc0b | j_mayer | &spr_read_generic, &spr_write_generic, |
6167 | a750fc0b | j_mayer | 0x00000000);
|
6168 | a750fc0b | j_mayer | /* Memory management */
|
6169 | a750fc0b | j_mayer | gen_low_BATs(env); |
6170 | e1833e1f | j_mayer | init_excp_620(env); |
6171 | d63001d1 | j_mayer | env->dcache_line_size = 64;
|
6172 | d63001d1 | j_mayer | env->icache_line_size = 64;
|
6173 | faadf50e | j_mayer | /* Allocate hardware IRQ controller */
|
6174 | faadf50e | j_mayer | ppc6xx_irq_init(env); |
6175 | a750fc0b | j_mayer | } |
6176 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
6177 | a750fc0b | j_mayer | |
6178 | a750fc0b | j_mayer | /* Default 32 bits PowerPC target will be 604 */
|
6179 | a750fc0b | j_mayer | #define CPU_POWERPC_PPC32 CPU_POWERPC_604
|
6180 | a750fc0b | j_mayer | #define POWERPC_INSNS_PPC32 POWERPC_INSNS_604
|
6181 | a750fc0b | j_mayer | #define POWERPC_MSRM_PPC32 POWERPC_MSRM_604
|
6182 | a750fc0b | j_mayer | #define POWERPC_MMU_PPC32 POWERPC_MMU_604
|
6183 | a750fc0b | j_mayer | #define POWERPC_EXCP_PPC32 POWERPC_EXCP_604
|
6184 | a750fc0b | j_mayer | #define POWERPC_INPUT_PPC32 POWERPC_INPUT_604
|
6185 | 237c0af0 | j_mayer | #define POWERPC_BFDM_PPC32 POWERPC_BFDM_604
|
6186 | d26bfc9a | j_mayer | #define POWERPC_FLAG_PPC32 POWERPC_FLAG_604
|
6187 | 2f462816 | j_mayer | #define check_pow_PPC32 check_pow_604
|
6188 | 2f462816 | j_mayer | #define init_proc_PPC32 init_proc_604
|
6189 | a750fc0b | j_mayer | |
6190 | a750fc0b | j_mayer | /* Default 64 bits PowerPC target will be 970 FX */
|
6191 | a750fc0b | j_mayer | #define CPU_POWERPC_PPC64 CPU_POWERPC_970FX
|
6192 | a750fc0b | j_mayer | #define POWERPC_INSNS_PPC64 POWERPC_INSNS_970FX
|
6193 | a750fc0b | j_mayer | #define POWERPC_MSRM_PPC64 POWERPC_MSRM_970FX
|
6194 | a750fc0b | j_mayer | #define POWERPC_MMU_PPC64 POWERPC_MMU_970FX
|
6195 | a750fc0b | j_mayer | #define POWERPC_EXCP_PPC64 POWERPC_EXCP_970FX
|
6196 | a750fc0b | j_mayer | #define POWERPC_INPUT_PPC64 POWERPC_INPUT_970FX
|
6197 | 237c0af0 | j_mayer | #define POWERPC_BFDM_PPC64 POWERPC_BFDM_970FX
|
6198 | d26bfc9a | j_mayer | #define POWERPC_FLAG_PPC64 POWERPC_FLAG_970FX
|
6199 | 2f462816 | j_mayer | #define check_pow_PPC64 check_pow_970FX
|
6200 | 2f462816 | j_mayer | #define init_proc_PPC64 init_proc_970FX
|
6201 | a750fc0b | j_mayer | |
6202 | a750fc0b | j_mayer | /* Default PowerPC target will be PowerPC 32 */
|
6203 | a750fc0b | j_mayer | #if defined (TARGET_PPC64) && 0 // XXX: TODO |
6204 | d12f4c38 | j_mayer | #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC64
|
6205 | d12f4c38 | j_mayer | #define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC64
|
6206 | d12f4c38 | j_mayer | #define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC64
|
6207 | d12f4c38 | j_mayer | #define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC64
|
6208 | d12f4c38 | j_mayer | #define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC64
|
6209 | d12f4c38 | j_mayer | #define POWERPC_INPUT_DEFAULT POWERPC_INPUT_PPC64
|
6210 | 237c0af0 | j_mayer | #define POWERPC_BFDM_DEFAULT POWERPC_BFDM_PPC64
|
6211 | d26bfc9a | j_mayer | #define POWERPC_FLAG_DEFAULT POWERPC_FLAG_PPC64
|
6212 | 2f462816 | j_mayer | #define check_pow_DEFAULT check_pow_PPC64
|
6213 | 2f462816 | j_mayer | #define init_proc_DEFAULT init_proc_PPC64
|
6214 | a750fc0b | j_mayer | #else
|
6215 | d12f4c38 | j_mayer | #define CPU_POWERPC_DEFAULT CPU_POWERPC_PPC32
|
6216 | d12f4c38 | j_mayer | #define POWERPC_INSNS_DEFAULT POWERPC_INSNS_PPC32
|
6217 | d12f4c38 | j_mayer | #define POWERPC_MSRM_DEFAULT POWERPC_MSRM_PPC32
|
6218 | d12f4c38 | j_mayer | #define POWERPC_MMU_DEFAULT POWERPC_MMU_PPC32
|
6219 | d12f4c38 | j_mayer | #define POWERPC_EXCP_DEFAULT POWERPC_EXCP_PPC32
|
6220 | d12f4c38 | j_mayer | #define POWERPC_INPUT_DEFAULT POWERPC_INPUT_PPC32
|
6221 | 237c0af0 | j_mayer | #define POWERPC_BFDM_DEFAULT POWERPC_BFDM_PPC32
|
6222 | d26bfc9a | j_mayer | #define POWERPC_FLAG_DEFAULT POWERPC_FLAG_PPC32
|
6223 | 2f462816 | j_mayer | #define check_pow_DEFAULT check_pow_PPC32
|
6224 | 2f462816 | j_mayer | #define init_proc_DEFAULT init_proc_PPC32
|
6225 | a750fc0b | j_mayer | #endif
|
6226 | a750fc0b | j_mayer | |
6227 | a750fc0b | j_mayer | /*****************************************************************************/
|
6228 | a750fc0b | j_mayer | /* PVR definitions for most known PowerPC */
|
6229 | a750fc0b | j_mayer | enum {
|
6230 | a750fc0b | j_mayer | /* PowerPC 401 family */
|
6231 | a750fc0b | j_mayer | /* Generic PowerPC 401 */
|
6232 | 80d11f44 | j_mayer | #define CPU_POWERPC_401 CPU_POWERPC_401G2
|
6233 | a750fc0b | j_mayer | /* PowerPC 401 cores */
|
6234 | 80d11f44 | j_mayer | CPU_POWERPC_401A1 = 0x00210000,
|
6235 | 80d11f44 | j_mayer | CPU_POWERPC_401B2 = 0x00220000,
|
6236 | a750fc0b | j_mayer | #if 0
|
6237 | 80d11f44 | j_mayer | CPU_POWERPC_401B3 = xxx,
|
6238 | a750fc0b | j_mayer | #endif
|
6239 | 80d11f44 | j_mayer | CPU_POWERPC_401C2 = 0x00230000,
|
6240 | 80d11f44 | j_mayer | CPU_POWERPC_401D2 = 0x00240000,
|
6241 | 80d11f44 | j_mayer | CPU_POWERPC_401E2 = 0x00250000,
|
6242 | 80d11f44 | j_mayer | CPU_POWERPC_401F2 = 0x00260000,
|
6243 | 80d11f44 | j_mayer | CPU_POWERPC_401G2 = 0x00270000,
|
6244 | a750fc0b | j_mayer | /* PowerPC 401 microcontrolers */
|
6245 | a750fc0b | j_mayer | #if 0
|
6246 | 80d11f44 | j_mayer | CPU_POWERPC_401GF = xxx,
|
6247 | a750fc0b | j_mayer | #endif
|
6248 | 80d11f44 | j_mayer | #define CPU_POWERPC_IOP480 CPU_POWERPC_401B2
|
6249 | a750fc0b | j_mayer | /* IBM Processor for Network Resources */
|
6250 | 80d11f44 | j_mayer | CPU_POWERPC_COBRA = 0x10100000, /* XXX: 405 ? */ |
6251 | a750fc0b | j_mayer | #if 0
|
6252 | 80d11f44 | j_mayer | CPU_POWERPC_XIPCHIP = xxx,
|
6253 | a750fc0b | j_mayer | #endif
|
6254 | a750fc0b | j_mayer | /* PowerPC 403 family */
|
6255 | a750fc0b | j_mayer | /* Generic PowerPC 403 */
|
6256 | 80d11f44 | j_mayer | #define CPU_POWERPC_403 CPU_POWERPC_403GC
|
6257 | a750fc0b | j_mayer | /* PowerPC 403 microcontrollers */
|
6258 | 80d11f44 | j_mayer | CPU_POWERPC_403GA = 0x00200011,
|
6259 | 80d11f44 | j_mayer | CPU_POWERPC_403GB = 0x00200100,
|
6260 | 80d11f44 | j_mayer | CPU_POWERPC_403GC = 0x00200200,
|
6261 | 80d11f44 | j_mayer | CPU_POWERPC_403GCX = 0x00201400,
|
6262 | a750fc0b | j_mayer | #if 0
|
6263 | 80d11f44 | j_mayer | CPU_POWERPC_403GP = xxx,
|
6264 | a750fc0b | j_mayer | #endif
|
6265 | a750fc0b | j_mayer | /* PowerPC 405 family */
|
6266 | a750fc0b | j_mayer | /* Generic PowerPC 405 */
|
6267 | 80d11f44 | j_mayer | #define CPU_POWERPC_405 CPU_POWERPC_405D4
|
6268 | a750fc0b | j_mayer | /* PowerPC 405 cores */
|
6269 | a750fc0b | j_mayer | #if 0
|
6270 | 80d11f44 | j_mayer | CPU_POWERPC_405A3 = xxx,
|
6271 | a750fc0b | j_mayer | #endif
|
6272 | a750fc0b | j_mayer | #if 0
|
6273 | 80d11f44 | j_mayer | CPU_POWERPC_405A4 = xxx,
|
6274 | a750fc0b | j_mayer | #endif
|
6275 | a750fc0b | j_mayer | #if 0
|
6276 | 80d11f44 | j_mayer | CPU_POWERPC_405B3 = xxx,
|
6277 | a750fc0b | j_mayer | #endif
|
6278 | a750fc0b | j_mayer | #if 0
|
6279 | 80d11f44 | j_mayer | CPU_POWERPC_405B4 = xxx,
|
6280 | a750fc0b | j_mayer | #endif
|
6281 | a750fc0b | j_mayer | #if 0
|
6282 | 80d11f44 | j_mayer | CPU_POWERPC_405C3 = xxx,
|
6283 | a750fc0b | j_mayer | #endif
|
6284 | a750fc0b | j_mayer | #if 0
|
6285 | 80d11f44 | j_mayer | CPU_POWERPC_405C4 = xxx,
|
6286 | a750fc0b | j_mayer | #endif
|
6287 | 80d11f44 | j_mayer | CPU_POWERPC_405D2 = 0x20010000,
|
6288 | a750fc0b | j_mayer | #if 0
|
6289 | 80d11f44 | j_mayer | CPU_POWERPC_405D3 = xxx,
|
6290 | a750fc0b | j_mayer | #endif
|
6291 | 80d11f44 | j_mayer | CPU_POWERPC_405D4 = 0x41810000,
|
6292 | a750fc0b | j_mayer | #if 0
|
6293 | 80d11f44 | j_mayer | CPU_POWERPC_405D5 = xxx,
|
6294 | a750fc0b | j_mayer | #endif
|
6295 | a750fc0b | j_mayer | #if 0
|
6296 | 80d11f44 | j_mayer | CPU_POWERPC_405E4 = xxx,
|
6297 | a750fc0b | j_mayer | #endif
|
6298 | a750fc0b | j_mayer | #if 0
|
6299 | 80d11f44 | j_mayer | CPU_POWERPC_405F4 = xxx,
|
6300 | a750fc0b | j_mayer | #endif
|
6301 | a750fc0b | j_mayer | #if 0
|
6302 | 80d11f44 | j_mayer | CPU_POWERPC_405F5 = xxx,
|
6303 | a750fc0b | j_mayer | #endif
|
6304 | a750fc0b | j_mayer | #if 0
|
6305 | 80d11f44 | j_mayer | CPU_POWERPC_405F6 = xxx,
|
6306 | a750fc0b | j_mayer | #endif
|
6307 | a750fc0b | j_mayer | /* PowerPC 405 microcontrolers */
|
6308 | a750fc0b | j_mayer | /* XXX: missing 0x200108a0 */
|
6309 | 80d11f44 | j_mayer | #define CPU_POWERPC_405CR CPU_POWERPC_405CRc
|
6310 | 80d11f44 | j_mayer | CPU_POWERPC_405CRa = 0x40110041,
|
6311 | 80d11f44 | j_mayer | CPU_POWERPC_405CRb = 0x401100C5,
|
6312 | 80d11f44 | j_mayer | CPU_POWERPC_405CRc = 0x40110145,
|
6313 | 80d11f44 | j_mayer | CPU_POWERPC_405EP = 0x51210950,
|
6314 | a750fc0b | j_mayer | #if 0
|
6315 | 80d11f44 | j_mayer | CPU_POWERPC_405EXr = xxx,
|
6316 | a750fc0b | j_mayer | #endif
|
6317 | 80d11f44 | j_mayer | CPU_POWERPC_405EZ = 0x41511460, /* 0x51210950 ? */ |
6318 | a750fc0b | j_mayer | #if 0
|
6319 | 80d11f44 | j_mayer | CPU_POWERPC_405FX = xxx,
|
6320 | 80d11f44 | j_mayer | #endif
|
6321 | 80d11f44 | j_mayer | #define CPU_POWERPC_405GP CPU_POWERPC_405GPd
|
6322 | 80d11f44 | j_mayer | CPU_POWERPC_405GPa = 0x40110000,
|
6323 | 80d11f44 | j_mayer | CPU_POWERPC_405GPb = 0x40110040,
|
6324 | 80d11f44 | j_mayer | CPU_POWERPC_405GPc = 0x40110082,
|
6325 | 80d11f44 | j_mayer | CPU_POWERPC_405GPd = 0x401100C4,
|
6326 | 80d11f44 | j_mayer | #define CPU_POWERPC_405GPe CPU_POWERPC_405CRc
|
6327 | 80d11f44 | j_mayer | CPU_POWERPC_405GPR = 0x50910951,
|
6328 | a750fc0b | j_mayer | #if 0
|
6329 | 80d11f44 | j_mayer | CPU_POWERPC_405H = xxx,
|
6330 | a750fc0b | j_mayer | #endif
|
6331 | a750fc0b | j_mayer | #if 0
|
6332 | 80d11f44 | j_mayer | CPU_POWERPC_405L = xxx,
|
6333 | a750fc0b | j_mayer | #endif
|
6334 | 80d11f44 | j_mayer | CPU_POWERPC_405LP = 0x41F10000,
|
6335 | a750fc0b | j_mayer | #if 0
|
6336 | 80d11f44 | j_mayer | CPU_POWERPC_405PM = xxx,
|
6337 | a750fc0b | j_mayer | #endif
|
6338 | a750fc0b | j_mayer | #if 0
|
6339 | 80d11f44 | j_mayer | CPU_POWERPC_405PS = xxx,
|
6340 | a750fc0b | j_mayer | #endif
|
6341 | a750fc0b | j_mayer | #if 0
|
6342 | 80d11f44 | j_mayer | CPU_POWERPC_405S = xxx,
|
6343 | a750fc0b | j_mayer | #endif
|
6344 | a750fc0b | j_mayer | /* IBM network processors */
|
6345 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405H = 0x414100C0,
|
6346 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405H2 = 0x41410140,
|
6347 | 80d11f44 | j_mayer | CPU_POWERPC_NPE405L = 0x416100C0,
|
6348 | 80d11f44 | j_mayer | CPU_POWERPC_NPE4GS3 = 0x40B10000,
|
6349 | a750fc0b | j_mayer | #if 0
|
6350 | 80d11f44 | j_mayer | CPU_POWERPC_NPCxx1 = xxx,
|
6351 | a750fc0b | j_mayer | #endif
|
6352 | a750fc0b | j_mayer | #if 0
|
6353 | 80d11f44 | j_mayer | CPU_POWERPC_NPR161 = xxx,
|
6354 | a750fc0b | j_mayer | #endif
|
6355 | a750fc0b | j_mayer | #if 0
|
6356 | 80d11f44 | j_mayer | CPU_POWERPC_LC77700 = xxx,
|
6357 | a750fc0b | j_mayer | #endif
|
6358 | a750fc0b | j_mayer | /* IBM STBxxx (PowerPC 401/403/405 core based microcontrollers) */
|
6359 | a750fc0b | j_mayer | #if 0
|
6360 | 80d11f44 | j_mayer | CPU_POWERPC_STB01000 = xxx,
|
6361 | a750fc0b | j_mayer | #endif
|
6362 | a750fc0b | j_mayer | #if 0
|
6363 | 80d11f44 | j_mayer | CPU_POWERPC_STB01010 = xxx,
|
6364 | a750fc0b | j_mayer | #endif
|
6365 | a750fc0b | j_mayer | #if 0
|
6366 | 80d11f44 | j_mayer | CPU_POWERPC_STB0210 = xxx, /* 401B3 */
|
6367 | a750fc0b | j_mayer | #endif
|
6368 | 80d11f44 | j_mayer | CPU_POWERPC_STB03 = 0x40310000, /* 0x40130000 ? */ |
6369 | a750fc0b | j_mayer | #if 0
|
6370 | 80d11f44 | j_mayer | CPU_POWERPC_STB043 = xxx,
|
6371 | a750fc0b | j_mayer | #endif
|
6372 | a750fc0b | j_mayer | #if 0
|
6373 | 80d11f44 | j_mayer | CPU_POWERPC_STB045 = xxx,
|
6374 | a750fc0b | j_mayer | #endif
|
6375 | 80d11f44 | j_mayer | CPU_POWERPC_STB04 = 0x41810000,
|
6376 | 80d11f44 | j_mayer | CPU_POWERPC_STB25 = 0x51510950,
|
6377 | a750fc0b | j_mayer | #if 0
|
6378 | 80d11f44 | j_mayer | CPU_POWERPC_STB130 = xxx,
|
6379 | a750fc0b | j_mayer | #endif
|
6380 | a750fc0b | j_mayer | /* Xilinx cores */
|
6381 | 80d11f44 | j_mayer | CPU_POWERPC_X2VP4 = 0x20010820,
|
6382 | 80d11f44 | j_mayer | #define CPU_POWERPC_X2VP7 CPU_POWERPC_X2VP4
|
6383 | 80d11f44 | j_mayer | CPU_POWERPC_X2VP20 = 0x20010860,
|
6384 | 80d11f44 | j_mayer | #define CPU_POWERPC_X2VP50 CPU_POWERPC_X2VP20
|
6385 | a750fc0b | j_mayer | #if 0
|
6386 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10310 = xxx,
|
6387 | a750fc0b | j_mayer | #endif
|
6388 | a750fc0b | j_mayer | #if 0
|
6389 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10311 = xxx,
|
6390 | a750fc0b | j_mayer | #endif
|
6391 | a750fc0b | j_mayer | #if 0
|
6392 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10320 = xxx,
|
6393 | a750fc0b | j_mayer | #endif
|
6394 | a750fc0b | j_mayer | #if 0
|
6395 | 80d11f44 | j_mayer | CPU_POWERPC_ZL10321 = xxx,
|
6396 | a750fc0b | j_mayer | #endif
|
6397 | a750fc0b | j_mayer | /* PowerPC 440 family */
|
6398 | a750fc0b | j_mayer | /* Generic PowerPC 440 */
|
6399 | 80d11f44 | j_mayer | #define CPU_POWERPC_440 CPU_POWERPC_440GXf
|
6400 | a750fc0b | j_mayer | /* PowerPC 440 cores */
|
6401 | a750fc0b | j_mayer | #if 0
|
6402 | 80d11f44 | j_mayer | CPU_POWERPC_440A4 = xxx,
|
6403 | a750fc0b | j_mayer | #endif
|
6404 | a750fc0b | j_mayer | #if 0
|
6405 | 80d11f44 | j_mayer | CPU_POWERPC_440A5 = xxx,
|
6406 | a750fc0b | j_mayer | #endif
|
6407 | a750fc0b | j_mayer | #if 0
|
6408 | 80d11f44 | j_mayer | CPU_POWERPC_440B4 = xxx,
|
6409 | a750fc0b | j_mayer | #endif
|
6410 | a750fc0b | j_mayer | #if 0
|
6411 | 80d11f44 | j_mayer | CPU_POWERPC_440F5 = xxx,
|
6412 | a750fc0b | j_mayer | #endif
|
6413 | a750fc0b | j_mayer | #if 0
|
6414 | 80d11f44 | j_mayer | CPU_POWERPC_440G5 = xxx,
|
6415 | a750fc0b | j_mayer | #endif
|
6416 | a750fc0b | j_mayer | #if 0
|
6417 | 80d11f44 | j_mayer | CPU_POWERPC_440H4 = xxx,
|
6418 | a750fc0b | j_mayer | #endif
|
6419 | a750fc0b | j_mayer | #if 0
|
6420 | 80d11f44 | j_mayer | CPU_POWERPC_440H6 = xxx,
|
6421 | a750fc0b | j_mayer | #endif
|
6422 | a750fc0b | j_mayer | /* PowerPC 440 microcontrolers */
|
6423 | 80d11f44 | j_mayer | #define CPU_POWERPC_440EP CPU_POWERPC_440EPb
|
6424 | 80d11f44 | j_mayer | CPU_POWERPC_440EPa = 0x42221850,
|
6425 | 80d11f44 | j_mayer | CPU_POWERPC_440EPb = 0x422218D3,
|
6426 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GP CPU_POWERPC_440GPc
|
6427 | 80d11f44 | j_mayer | CPU_POWERPC_440GPb = 0x40120440,
|
6428 | 80d11f44 | j_mayer | CPU_POWERPC_440GPc = 0x40120481,
|
6429 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GR CPU_POWERPC_440GRa
|
6430 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GRa CPU_POWERPC_440EPb
|
6431 | 80d11f44 | j_mayer | CPU_POWERPC_440GRX = 0x200008D0,
|
6432 | 80d11f44 | j_mayer | #define CPU_POWERPC_440EPX CPU_POWERPC_440GRX
|
6433 | 80d11f44 | j_mayer | #define CPU_POWERPC_440GX CPU_POWERPC_440GXf
|
6434 | 80d11f44 | j_mayer | CPU_POWERPC_440GXa = 0x51B21850,
|
6435 | 80d11f44 | j_mayer | CPU_POWERPC_440GXb = 0x51B21851,
|
6436 | 80d11f44 | j_mayer | CPU_POWERPC_440GXc = 0x51B21892,
|
6437 | 80d11f44 | j_mayer | CPU_POWERPC_440GXf = 0x51B21894,
|
6438 | a750fc0b | j_mayer | #if 0
|
6439 | 80d11f44 | j_mayer | CPU_POWERPC_440S = xxx,
|
6440 | a750fc0b | j_mayer | #endif
|
6441 | 80d11f44 | j_mayer | CPU_POWERPC_440SP = 0x53221850,
|
6442 | 80d11f44 | j_mayer | CPU_POWERPC_440SP2 = 0x53221891,
|
6443 | 80d11f44 | j_mayer | CPU_POWERPC_440SPE = 0x53421890,
|
6444 | a750fc0b | j_mayer | /* PowerPC 460 family */
|
6445 | a750fc0b | j_mayer | #if 0
|
6446 | a750fc0b | j_mayer | /* Generic PowerPC 464 */
|
6447 | 80d11f44 | j_mayer | #define CPU_POWERPC_464 CPU_POWERPC_464H90
|
6448 | a750fc0b | j_mayer | #endif
|
6449 | a750fc0b | j_mayer | /* PowerPC 464 microcontrolers */
|
6450 | a750fc0b | j_mayer | #if 0
|
6451 | 80d11f44 | j_mayer | CPU_POWERPC_464H90 = xxx,
|
6452 | a750fc0b | j_mayer | #endif
|
6453 | a750fc0b | j_mayer | #if 0
|
6454 | 80d11f44 | j_mayer | CPU_POWERPC_464H90FP = xxx,
|
6455 | a750fc0b | j_mayer | #endif
|
6456 | a750fc0b | j_mayer | /* Freescale embedded PowerPC cores */
|
6457 | c3e36823 | j_mayer | /* PowerPC MPC 5xx cores (aka RCPU) */
|
6458 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5xx = 0x00020020,
|
6459 | 80d11f44 | j_mayer | #define CPU_POWERPC_MGT560 CPU_POWERPC_MPC5xx
|
6460 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC509 CPU_POWERPC_MPC5xx
|
6461 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC533 CPU_POWERPC_MPC5xx
|
6462 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC534 CPU_POWERPC_MPC5xx
|
6463 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC555 CPU_POWERPC_MPC5xx
|
6464 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC556 CPU_POWERPC_MPC5xx
|
6465 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC560 CPU_POWERPC_MPC5xx
|
6466 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC561 CPU_POWERPC_MPC5xx
|
6467 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC562 CPU_POWERPC_MPC5xx
|
6468 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC563 CPU_POWERPC_MPC5xx
|
6469 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC564 CPU_POWERPC_MPC5xx
|
6470 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC565 CPU_POWERPC_MPC5xx
|
6471 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC566 CPU_POWERPC_MPC5xx
|
6472 | c3e36823 | j_mayer | /* PowerPC MPC 8xx cores (aka PowerQUICC) */
|
6473 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8xx = 0x00500000,
|
6474 | 80d11f44 | j_mayer | #define CPU_POWERPC_MGT823 CPU_POWERPC_MPC8xx
|
6475 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC821 CPU_POWERPC_MPC8xx
|
6476 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC823 CPU_POWERPC_MPC8xx
|
6477 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC850 CPU_POWERPC_MPC8xx
|
6478 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC852T CPU_POWERPC_MPC8xx
|
6479 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC855T CPU_POWERPC_MPC8xx
|
6480 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC857 CPU_POWERPC_MPC8xx
|
6481 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC859 CPU_POWERPC_MPC8xx
|
6482 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC860 CPU_POWERPC_MPC8xx
|
6483 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC862 CPU_POWERPC_MPC8xx
|
6484 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC866 CPU_POWERPC_MPC8xx
|
6485 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC870 CPU_POWERPC_MPC8xx
|
6486 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC875 CPU_POWERPC_MPC8xx
|
6487 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC880 CPU_POWERPC_MPC8xx
|
6488 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC885 CPU_POWERPC_MPC8xx
|
6489 | c3e36823 | j_mayer | /* G2 cores (aka PowerQUICC-II) */
|
6490 | 80d11f44 | j_mayer | CPU_POWERPC_G2 = 0x00810011,
|
6491 | 80d11f44 | j_mayer | CPU_POWERPC_G2H4 = 0x80811010,
|
6492 | 80d11f44 | j_mayer | CPU_POWERPC_G2gp = 0x80821010,
|
6493 | 80d11f44 | j_mayer | CPU_POWERPC_G2ls = 0x90810010,
|
6494 | 80d11f44 | j_mayer | CPU_POWERPC_MPC603 = 0x00810100,
|
6495 | 80d11f44 | j_mayer | CPU_POWERPC_G2_HIP3 = 0x00810101,
|
6496 | 80d11f44 | j_mayer | CPU_POWERPC_G2_HIP4 = 0x80811014,
|
6497 | c3e36823 | j_mayer | /* G2_LE core (aka PowerQUICC-II) */
|
6498 | 80d11f44 | j_mayer | CPU_POWERPC_G2LE = 0x80820010,
|
6499 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp = 0x80822010,
|
6500 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEls = 0xA0822010,
|
6501 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp1 = 0x80822011,
|
6502 | 80d11f44 | j_mayer | CPU_POWERPC_G2LEgp3 = 0x80822013,
|
6503 | 80d11f44 | j_mayer | /* MPC52xx microcontrollers */
|
6504 | c3e36823 | j_mayer | /* XXX: MPC 5121 ? */
|
6505 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC52xx CPU_POWERPC_MPC5200
|
6506 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200 CPU_POWERPC_MPC5200_v12
|
6507 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v10 CPU_POWERPC_G2LEgp1
|
6508 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v11 CPU_POWERPC_G2LEgp1
|
6509 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200_v12 CPU_POWERPC_G2LEgp1
|
6510 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B CPU_POWERPC_MPC5200B_v21
|
6511 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B_v20 CPU_POWERPC_G2LEgp1
|
6512 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5200B_v21 CPU_POWERPC_G2LEgp1
|
6513 | 80d11f44 | j_mayer | /* MPC82xx microcontrollers */
|
6514 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC82xx CPU_POWERPC_MPC8280
|
6515 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8240 CPU_POWERPC_MPC603
|
6516 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8241 CPU_POWERPC_G2_HIP4
|
6517 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8245 CPU_POWERPC_G2_HIP4
|
6518 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8247 CPU_POWERPC_G2LEgp3
|
6519 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8248 CPU_POWERPC_G2LEgp3
|
6520 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250 CPU_POWERPC_MPC8250_HiP4
|
6521 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250_HiP3 CPU_POWERPC_G2_HIP3
|
6522 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8250_HiP4 CPU_POWERPC_G2_HIP4
|
6523 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255 CPU_POWERPC_MPC8255_HiP4
|
6524 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255_HiP3 CPU_POWERPC_G2_HIP3
|
6525 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8255_HiP4 CPU_POWERPC_G2_HIP4
|
6526 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260 CPU_POWERPC_MPC8260_HiP4
|
6527 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260_HiP3 CPU_POWERPC_G2_HIP3
|
6528 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8260_HiP4 CPU_POWERPC_G2_HIP4
|
6529 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264 CPU_POWERPC_MPC8264_HiP4
|
6530 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264_HiP3 CPU_POWERPC_G2_HIP3
|
6531 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8264_HiP4 CPU_POWERPC_G2_HIP4
|
6532 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265 CPU_POWERPC_MPC8265_HiP4
|
6533 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265_HiP3 CPU_POWERPC_G2_HIP3
|
6534 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8265_HiP4 CPU_POWERPC_G2_HIP4
|
6535 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266 CPU_POWERPC_MPC8266_HiP4
|
6536 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266_HiP3 CPU_POWERPC_G2_HIP3
|
6537 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8266_HiP4 CPU_POWERPC_G2_HIP4
|
6538 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8270 CPU_POWERPC_G2LEgp3
|
6539 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8271 CPU_POWERPC_G2LEgp3
|
6540 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8272 CPU_POWERPC_G2LEgp3
|
6541 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8275 CPU_POWERPC_G2LEgp3
|
6542 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8280 CPU_POWERPC_G2LEgp3
|
6543 | a750fc0b | j_mayer | /* e200 family */
|
6544 | 80d11f44 | j_mayer | /* e200 cores */
|
6545 | 80d11f44 | j_mayer | #define CPU_POWERPC_e200 CPU_POWERPC_e200z6
|
6546 | a750fc0b | j_mayer | #if 0
|
6547 | 80d11f44 | j_mayer | CPU_POWERPC_e200z0 = xxx,
|
6548 | a750fc0b | j_mayer | #endif
|
6549 | a750fc0b | j_mayer | #if 0
|
6550 | 80d11f44 | j_mayer | CPU_POWERPC_e200z1 = xxx,
|
6551 | c3e36823 | j_mayer | #endif
|
6552 | c3e36823 | j_mayer | #if 0 /* ? */
|
6553 | 80d11f44 | j_mayer | CPU_POWERPC_e200z3 = 0x81120000,
|
6554 | 80d11f44 | j_mayer | #endif
|
6555 | 80d11f44 | j_mayer | CPU_POWERPC_e200z5 = 0x81000000,
|
6556 | 80d11f44 | j_mayer | CPU_POWERPC_e200z6 = 0x81120000,
|
6557 | 80d11f44 | j_mayer | /* MPC55xx microcontrollers */
|
6558 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC55xx CPU_POWERPC_MPC5567
|
6559 | 80d11f44 | j_mayer | #if 0
|
6560 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E CPU_POWERPC_MPC5514E_v1
|
6561 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E_v0 CPU_POWERPC_e200z0
|
6562 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514E_v1 CPU_POWERPC_e200z1
|
6563 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G CPU_POWERPC_MPC5514G_v1
|
6564 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G_v0 CPU_POWERPC_e200z0
|
6565 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5514G_v1 CPU_POWERPC_e200z1
|
6566 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5515S CPU_POWERPC_e200z1
|
6567 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E CPU_POWERPC_MPC5516E_v1
|
6568 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E_v0 CPU_POWERPC_e200z0
|
6569 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516E_v1 CPU_POWERPC_e200z1
|
6570 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G CPU_POWERPC_MPC5516G_v1
|
6571 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G_v0 CPU_POWERPC_e200z0
|
6572 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516G_v1 CPU_POWERPC_e200z1
|
6573 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5516S CPU_POWERPC_e200z1
|
6574 | 80d11f44 | j_mayer | #endif
|
6575 | 80d11f44 | j_mayer | #if 0
|
6576 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5533 CPU_POWERPC_e200z3
|
6577 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5534 CPU_POWERPC_e200z3
|
6578 | 80d11f44 | j_mayer | #endif
|
6579 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5553 CPU_POWERPC_e200z6
|
6580 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5554 CPU_POWERPC_e200z6
|
6581 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5561 CPU_POWERPC_e200z6
|
6582 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5565 CPU_POWERPC_e200z6
|
6583 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5566 CPU_POWERPC_e200z6
|
6584 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC5567 CPU_POWERPC_e200z6
|
6585 | a750fc0b | j_mayer | /* e300 family */
|
6586 | 80d11f44 | j_mayer | /* e300 cores */
|
6587 | 80d11f44 | j_mayer | #define CPU_POWERPC_e300 CPU_POWERPC_e300c3
|
6588 | 80d11f44 | j_mayer | CPU_POWERPC_e300c1 = 0x00830010,
|
6589 | 80d11f44 | j_mayer | CPU_POWERPC_e300c2 = 0x00840010,
|
6590 | 80d11f44 | j_mayer | CPU_POWERPC_e300c3 = 0x00850010,
|
6591 | 80d11f44 | j_mayer | CPU_POWERPC_e300c4 = 0x00860010,
|
6592 | 80d11f44 | j_mayer | /* MPC83xx microcontrollers */
|
6593 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8313 CPU_POWERPC_e300c3
|
6594 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8313E CPU_POWERPC_e300c3
|
6595 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8314 CPU_POWERPC_e300c3
|
6596 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8314E CPU_POWERPC_e300c3
|
6597 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8315 CPU_POWERPC_e300c3
|
6598 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8315E CPU_POWERPC_e300c3
|
6599 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8321 CPU_POWERPC_e300c2
|
6600 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8321E CPU_POWERPC_e300c2
|
6601 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8323 CPU_POWERPC_e300c2
|
6602 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8323E CPU_POWERPC_e300c2
|
6603 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8343A CPU_POWERPC_e300c1
|
6604 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8343EA CPU_POWERPC_e300c1
|
6605 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347A CPU_POWERPC_e300c1
|
6606 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347AT CPU_POWERPC_e300c1
|
6607 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347AP CPU_POWERPC_e300c1
|
6608 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347EA CPU_POWERPC_e300c1
|
6609 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347EAT CPU_POWERPC_e300c1
|
6610 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8347EAP CPU_POWERPC_e300c1
|
6611 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8349 CPU_POWERPC_e300c1
|
6612 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8349A CPU_POWERPC_e300c1
|
6613 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8349E CPU_POWERPC_e300c1
|
6614 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8349EA CPU_POWERPC_e300c1
|
6615 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8358E CPU_POWERPC_e300c1
|
6616 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8360E CPU_POWERPC_e300c1
|
6617 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8377 CPU_POWERPC_e300c4
|
6618 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8377E CPU_POWERPC_e300c4
|
6619 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8378 CPU_POWERPC_e300c4
|
6620 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8378E CPU_POWERPC_e300c4
|
6621 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8379 CPU_POWERPC_e300c4
|
6622 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8379E CPU_POWERPC_e300c4
|
6623 | a750fc0b | j_mayer | /* e500 family */
|
6624 | 80d11f44 | j_mayer | /* e500 cores */
|
6625 | 80d11f44 | j_mayer | #define CPU_POWERPC_e500 CPU_POWERPC_e500v2_v22
|
6626 | 80d11f44 | j_mayer | #define CPU_POWERPC_e500v2 CPU_POWERPC_e500v2_v22
|
6627 | 80d11f44 | j_mayer | CPU_POWERPC_e500_v10 = 0x80200010,
|
6628 | 80d11f44 | j_mayer | CPU_POWERPC_e500_v20 = 0x80200020,
|
6629 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v10 = 0x80210010,
|
6630 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v11 = 0x80210011,
|
6631 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v20 = 0x80210020,
|
6632 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v21 = 0x80210021,
|
6633 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v22 = 0x80210022,
|
6634 | 80d11f44 | j_mayer | CPU_POWERPC_e500v2_v30 = 0x80210030,
|
6635 | 80d11f44 | j_mayer | /* MPC85xx microcontrollers */
|
6636 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533 CPU_POWERPC_MPC8533_v11
|
6637 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533_v10 CPU_POWERPC_e500v2_v21
|
6638 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533_v11 CPU_POWERPC_e500v2_v22
|
6639 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E CPU_POWERPC_MPC8533E_v11
|
6640 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E_v10 CPU_POWERPC_e500v2_v21
|
6641 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8533E_v11 CPU_POWERPC_e500v2_v22
|
6642 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8540 CPU_POWERPC_MPC8540_v21
|
6643 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8540_v10 CPU_POWERPC_e500_v10
|
6644 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8540_v20 CPU_POWERPC_e500_v20
|
6645 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8540_v21 CPU_POWERPC_e500_v20
|
6646 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541 CPU_POWERPC_MPC8541_v11
|
6647 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541_v10 CPU_POWERPC_e500_v20
|
6648 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541_v11 CPU_POWERPC_e500_v20
|
6649 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541E CPU_POWERPC_MPC8541E_v11
|
6650 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541E_v10 CPU_POWERPC_e500_v20
|
6651 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8541E_v11 CPU_POWERPC_e500_v20
|
6652 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543 CPU_POWERPC_MPC8543_v21
|
6653 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v10 CPU_POWERPC_e500v2_v10
|
6654 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v11 CPU_POWERPC_e500v2_v11
|
6655 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v20 CPU_POWERPC_e500v2_v20
|
6656 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543_v21 CPU_POWERPC_e500v2_v21
|
6657 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E CPU_POWERPC_MPC8543E_v21
|
6658 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v10 CPU_POWERPC_e500v2_v10
|
6659 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v11 CPU_POWERPC_e500v2_v11
|
6660 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v20 CPU_POWERPC_e500v2_v20
|
6661 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8543E_v21 CPU_POWERPC_e500v2_v21
|
6662 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544 CPU_POWERPC_MPC8544_v11
|
6663 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544_v10 CPU_POWERPC_e500v2_v21
|
6664 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544_v11 CPU_POWERPC_e500v2_v22
|
6665 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E_v11 CPU_POWERPC_e500v2_v22
|
6666 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E CPU_POWERPC_MPC8544E_v11
|
6667 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8544E_v10 CPU_POWERPC_e500v2_v21
|
6668 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545 CPU_POWERPC_MPC8545_v21
|
6669 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v10 CPU_POWERPC_e500v2_v10
|
6670 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v20 CPU_POWERPC_e500v2_v20
|
6671 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545_v21 CPU_POWERPC_e500v2_v21
|
6672 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E CPU_POWERPC_MPC8545E_v21
|
6673 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v10 CPU_POWERPC_e500v2_v10
|
6674 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v20 CPU_POWERPC_e500v2_v20
|
6675 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8545E_v21 CPU_POWERPC_e500v2_v21
|
6676 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E CPU_POWERPC_MPC8545E_v21
|
6677 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v10 CPU_POWERPC_e500v2_v10
|
6678 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v20 CPU_POWERPC_e500v2_v20
|
6679 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8547E_v21 CPU_POWERPC_e500v2_v21
|
6680 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548 CPU_POWERPC_MPC8548_v21
|
6681 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v10 CPU_POWERPC_e500v2_v10
|
6682 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v11 CPU_POWERPC_e500v2_v11
|
6683 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v20 CPU_POWERPC_e500v2_v20
|
6684 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548_v21 CPU_POWERPC_e500v2_v21
|
6685 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E CPU_POWERPC_MPC8548E_v21
|
6686 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v10 CPU_POWERPC_e500v2_v10
|
6687 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v11 CPU_POWERPC_e500v2_v11
|
6688 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v20 CPU_POWERPC_e500v2_v20
|
6689 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8548E_v21 CPU_POWERPC_e500v2_v21
|
6690 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555 CPU_POWERPC_MPC8555_v11
|
6691 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555_v10 CPU_POWERPC_e500v2_v10
|
6692 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555_v11 CPU_POWERPC_e500v2_v11
|
6693 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E CPU_POWERPC_MPC8555E_v11
|
6694 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E_v10 CPU_POWERPC_e500v2_v10
|
6695 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8555E_v11 CPU_POWERPC_e500v2_v11
|
6696 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560 CPU_POWERPC_MPC8560_v21
|
6697 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v10 CPU_POWERPC_e500v2_v10
|
6698 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v20 CPU_POWERPC_e500v2_v20
|
6699 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8560_v21 CPU_POWERPC_e500v2_v21
|
6700 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8567 CPU_POWERPC_e500v2_v22
|
6701 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8567E CPU_POWERPC_e500v2_v22
|
6702 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8568 CPU_POWERPC_e500v2_v22
|
6703 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8568E CPU_POWERPC_e500v2_v22
|
6704 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8572 CPU_POWERPC_e500v2_v30
|
6705 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8572E CPU_POWERPC_e500v2_v30
|
6706 | a750fc0b | j_mayer | /* e600 family */
|
6707 | 80d11f44 | j_mayer | /* e600 cores */
|
6708 | 80d11f44 | j_mayer | CPU_POWERPC_e600 = 0x80040010,
|
6709 | 80d11f44 | j_mayer | /* MPC86xx microcontrollers */
|
6710 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8610 CPU_POWERPC_e600
|
6711 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8641 CPU_POWERPC_e600
|
6712 | 80d11f44 | j_mayer | #define CPU_POWERPC_MPC8641D CPU_POWERPC_e600
|
6713 | a750fc0b | j_mayer | /* PowerPC 6xx cores */
|
6714 | 80d11f44 | j_mayer | #define CPU_POWERPC_601 CPU_POWERPC_601_v2
|
6715 | 80d11f44 | j_mayer | CPU_POWERPC_601_v0 = 0x00010001,
|
6716 | 80d11f44 | j_mayer | CPU_POWERPC_601_v1 = 0x00010001,
|
6717 | bd928eba | j_mayer | #define CPU_POWERPC_601v CPU_POWERPC_601_v2
|
6718 | 80d11f44 | j_mayer | CPU_POWERPC_601_v2 = 0x00010002,
|
6719 | 80d11f44 | j_mayer | CPU_POWERPC_602 = 0x00050100,
|
6720 | 80d11f44 | j_mayer | CPU_POWERPC_603 = 0x00030100,
|
6721 | 80d11f44 | j_mayer | #define CPU_POWERPC_603E CPU_POWERPC_603E_v41
|
6722 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v11 = 0x00060101,
|
6723 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v12 = 0x00060102,
|
6724 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v13 = 0x00060103,
|
6725 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v14 = 0x00060104,
|
6726 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v22 = 0x00060202,
|
6727 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v3 = 0x00060300,
|
6728 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v4 = 0x00060400,
|
6729 | 80d11f44 | j_mayer | CPU_POWERPC_603E_v41 = 0x00060401,
|
6730 | 80d11f44 | j_mayer | CPU_POWERPC_603E7t = 0x00071201,
|
6731 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v = 0x00070100,
|
6732 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v1 = 0x00070101,
|
6733 | 80d11f44 | j_mayer | CPU_POWERPC_603E7v2 = 0x00070201,
|
6734 | 80d11f44 | j_mayer | CPU_POWERPC_603E7 = 0x00070200,
|
6735 | 80d11f44 | j_mayer | CPU_POWERPC_603P = 0x00070000,
|
6736 | 80d11f44 | j_mayer | #define CPU_POWERPC_603R CPU_POWERPC_603E7t
|
6737 | c3e36823 | j_mayer | /* XXX: missing 0x00040303 (604) */
|
6738 | 80d11f44 | j_mayer | CPU_POWERPC_604 = 0x00040103,
|
6739 | 80d11f44 | j_mayer | #define CPU_POWERPC_604E CPU_POWERPC_604E_v24
|
6740 | c3e36823 | j_mayer | /* XXX: missing 0x00091203 */
|
6741 | c3e36823 | j_mayer | /* XXX: missing 0x00092110 */
|
6742 | c3e36823 | j_mayer | /* XXX: missing 0x00092120 */
|
6743 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v10 = 0x00090100,
|
6744 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v22 = 0x00090202,
|
6745 | 80d11f44 | j_mayer | CPU_POWERPC_604E_v24 = 0x00090204,
|
6746 | c3e36823 | j_mayer | /* XXX: missing 0x000a0100 */
|
6747 | c3e36823 | j_mayer | /* XXX: missing 0x00093102 */
|
6748 | 80d11f44 | j_mayer | CPU_POWERPC_604R = 0x000a0101,
|
6749 | a750fc0b | j_mayer | #if 0
|
6750 | 80d11f44 | j_mayer | CPU_POWERPC_604EV = xxx, /* XXX: same as 604R ? */
|
6751 | a750fc0b | j_mayer | #endif
|
6752 | a750fc0b | j_mayer | /* PowerPC 740/750 cores (aka G3) */
|
6753 | a750fc0b | j_mayer | /* XXX: missing 0x00084202 */
|
6754 | 80d11f44 | j_mayer | #define CPU_POWERPC_7x0 CPU_POWERPC_7x0_v31
|
6755 | bd928eba | j_mayer | CPU_POWERPC_7x0_v10 = 0x00080100,
|
6756 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v20 = 0x00080200,
|
6757 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v21 = 0x00080201,
|
6758 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v22 = 0x00080202,
|
6759 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v30 = 0x00080300,
|
6760 | 80d11f44 | j_mayer | CPU_POWERPC_7x0_v31 = 0x00080301,
|
6761 | 80d11f44 | j_mayer | CPU_POWERPC_740E = 0x00080100,
|
6762 | bd928eba | j_mayer | CPU_POWERPC_750E = 0x00080200,
|
6763 | 80d11f44 | j_mayer | CPU_POWERPC_7x0P = 0x10080000,
|
6764 | a750fc0b | j_mayer | /* XXX: missing 0x00087010 (CL ?) */
|
6765 | bd928eba | j_mayer | #define CPU_POWERPC_750CL CPU_POWERPC_750CL_v20
|
6766 | bd928eba | j_mayer | CPU_POWERPC_750CL_v10 = 0x00087200,
|
6767 | bd928eba | j_mayer | CPU_POWERPC_750CL_v20 = 0x00087210, /* aka rev E */ |
6768 | 80d11f44 | j_mayer | #define CPU_POWERPC_750CX CPU_POWERPC_750CX_v22
|
6769 | bd928eba | j_mayer | CPU_POWERPC_750CX_v10 = 0x00082100,
|
6770 | bd928eba | j_mayer | CPU_POWERPC_750CX_v20 = 0x00082200,
|
6771 | 80d11f44 | j_mayer | CPU_POWERPC_750CX_v21 = 0x00082201,
|
6772 | 80d11f44 | j_mayer | CPU_POWERPC_750CX_v22 = 0x00082202,
|
6773 | 80d11f44 | j_mayer | #define CPU_POWERPC_750CXE CPU_POWERPC_750CXE_v31b
|
6774 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v21 = 0x00082211,
|
6775 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v22 = 0x00082212,
|
6776 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v23 = 0x00082213,
|
6777 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v24 = 0x00082214,
|
6778 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v24b = 0x00083214,
|
6779 | bd928eba | j_mayer | CPU_POWERPC_750CXE_v30 = 0x00082310,
|
6780 | bd928eba | j_mayer | CPU_POWERPC_750CXE_v31 = 0x00082311,
|
6781 | 80d11f44 | j_mayer | CPU_POWERPC_750CXE_v31b = 0x00083311,
|
6782 | 80d11f44 | j_mayer | CPU_POWERPC_750CXR = 0x00083410,
|
6783 | bd928eba | j_mayer | CPU_POWERPC_750FL = 0x70000203,
|
6784 | 80d11f44 | j_mayer | #define CPU_POWERPC_750FX CPU_POWERPC_750FX_v23
|
6785 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v10 = 0x70000100,
|
6786 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v20 = 0x70000200,
|
6787 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v21 = 0x70000201,
|
6788 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v22 = 0x70000202,
|
6789 | 80d11f44 | j_mayer | CPU_POWERPC_750FX_v23 = 0x70000203,
|
6790 | 80d11f44 | j_mayer | CPU_POWERPC_750GL = 0x70020102,
|
6791 | 80d11f44 | j_mayer | #define CPU_POWERPC_750GX CPU_POWERPC_750GX_v12
|
6792 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v10 = 0x70020100,
|
6793 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v11 = 0x70020101,
|
6794 | 80d11f44 | j_mayer | CPU_POWERPC_750GX_v12 = 0x70020102,
|
6795 | 80d11f44 | j_mayer | #define CPU_POWERPC_750L CPU_POWERPC_750L_v32 /* Aka LoneStar */ |
6796 | bd928eba | j_mayer | CPU_POWERPC_750L_v20 = 0x00088200,
|
6797 | bd928eba | j_mayer | CPU_POWERPC_750L_v21 = 0x00088201,
|
6798 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v22 = 0x00088202,
|
6799 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v30 = 0x00088300,
|
6800 | 80d11f44 | j_mayer | CPU_POWERPC_750L_v32 = 0x00088302,
|
6801 | a750fc0b | j_mayer | /* PowerPC 745/755 cores */
|
6802 | 80d11f44 | j_mayer | #define CPU_POWERPC_7x5 CPU_POWERPC_7x5_v28
|
6803 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v10 = 0x00083100,
|
6804 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v11 = 0x00083101,
|
6805 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v20 = 0x00083200,
|
6806 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v21 = 0x00083201,
|
6807 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v22 = 0x00083202, /* aka D */ |
6808 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v23 = 0x00083203, /* aka E */ |
6809 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v24 = 0x00083204,
|
6810 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v25 = 0x00083205,
|
6811 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v26 = 0x00083206,
|
6812 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v27 = 0x00083207,
|
6813 | 80d11f44 | j_mayer | CPU_POWERPC_7x5_v28 = 0x00083208,
|
6814 | a750fc0b | j_mayer | #if 0
|
6815 | 80d11f44 | j_mayer | CPU_POWERPC_7x5P = xxx,
|
6816 | a750fc0b | j_mayer | #endif
|
6817 | a750fc0b | j_mayer | /* PowerPC 74xx cores (aka G4) */
|
6818 | a750fc0b | j_mayer | /* XXX: missing 0x000C1101 */
|
6819 | 80d11f44 | j_mayer | #define CPU_POWERPC_7400 CPU_POWERPC_7400_v29
|
6820 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v10 = 0x000C0100,
|
6821 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v11 = 0x000C0101,
|
6822 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v20 = 0x000C0200,
|
6823 | 4e777442 | j_mayer | CPU_POWERPC_7400_v21 = 0x000C0201,
|
6824 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v22 = 0x000C0202,
|
6825 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v26 = 0x000C0206,
|
6826 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v27 = 0x000C0207,
|
6827 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v28 = 0x000C0208,
|
6828 | 80d11f44 | j_mayer | CPU_POWERPC_7400_v29 = 0x000C0209,
|
6829 | 80d11f44 | j_mayer | #define CPU_POWERPC_7410 CPU_POWERPC_7410_v14
|
6830 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v10 = 0x800C1100,
|
6831 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v11 = 0x800C1101,
|
6832 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v12 = 0x800C1102, /* aka C */ |
6833 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v13 = 0x800C1103, /* aka D */ |
6834 | 80d11f44 | j_mayer | CPU_POWERPC_7410_v14 = 0x800C1104, /* aka E */ |
6835 | 80d11f44 | j_mayer | #define CPU_POWERPC_7448 CPU_POWERPC_7448_v21
|
6836 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v10 = 0x80040100,
|
6837 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v11 = 0x80040101,
|
6838 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v20 = 0x80040200,
|
6839 | 80d11f44 | j_mayer | CPU_POWERPC_7448_v21 = 0x80040201,
|
6840 | 80d11f44 | j_mayer | #define CPU_POWERPC_7450 CPU_POWERPC_7450_v21
|
6841 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v10 = 0x80000100,
|
6842 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v11 = 0x80000101,
|
6843 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v12 = 0x80000102,
|
6844 | 4e777442 | j_mayer | CPU_POWERPC_7450_v20 = 0x80000200, /* aka A, B, C, D: 2.04 */ |
6845 | 80d11f44 | j_mayer | CPU_POWERPC_7450_v21 = 0x80000201, /* aka E */ |
6846 | 4e777442 | j_mayer | #define CPU_POWERPC_74x1 CPU_POWERPC_74x1_v23
|
6847 | 4e777442 | j_mayer | CPU_POWERPC_74x1_v23 = 0x80000203, /* aka G: 2.3 */ |
6848 | 4e777442 | j_mayer | /* XXX: this entry might be a bug in some documentation */
|
6849 | 4e777442 | j_mayer | CPU_POWERPC_74x1_v210 = 0x80000210, /* aka G: 2.3 ? */ |
6850 | 80d11f44 | j_mayer | #define CPU_POWERPC_74x5 CPU_POWERPC_74x5_v32
|
6851 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v10 = 0x80010100,
|
6852 | c3e36823 | j_mayer | /* XXX: missing 0x80010200 */
|
6853 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v21 = 0x80010201, /* aka C: 2.1 */ |
6854 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v32 = 0x80010302,
|
6855 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v33 = 0x80010303, /* aka F: 3.3 */ |
6856 | 80d11f44 | j_mayer | CPU_POWERPC_74x5_v34 = 0x80010304, /* aka G: 3.4 */ |
6857 | 80d11f44 | j_mayer | #define CPU_POWERPC_74x7 CPU_POWERPC_74x7_v12
|
6858 | 80d11f44 | j_mayer | CPU_POWERPC_74x7_v10 = 0x80020100, /* aka A: 1.0 */ |
6859 | 082c6681 | j_mayer | CPU_POWERPC_74x7_v11 = 0x80020101, /* aka B: 1.1 */ |
6860 | 80d11f44 | j_mayer | CPU_POWERPC_74x7_v12 = 0x80020102, /* aka C: 1.2 */ |
6861 | 082c6681 | j_mayer | #define CPU_POWERPC_74x7A CPU_POWERPC_74x7A_v12
|
6862 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v10 = 0x80030100, /* aka A: 1.0 */ |
6863 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v11 = 0x80030101, /* aka B: 1.1 */ |
6864 | 082c6681 | j_mayer | CPU_POWERPC_74x7A_v12 = 0x80030102, /* aka C: 1.2 */ |
6865 | a750fc0b | j_mayer | /* 64 bits PowerPC */
|
6866 | 00af685f | j_mayer | #if defined(TARGET_PPC64)
|
6867 | 80d11f44 | j_mayer | CPU_POWERPC_620 = 0x00140000,
|
6868 | 80d11f44 | j_mayer | CPU_POWERPC_630 = 0x00400000,
|
6869 | 80d11f44 | j_mayer | CPU_POWERPC_631 = 0x00410104,
|
6870 | 80d11f44 | j_mayer | CPU_POWERPC_POWER4 = 0x00350000,
|
6871 | 80d11f44 | j_mayer | CPU_POWERPC_POWER4P = 0x00380000,
|
6872 | c3e36823 | j_mayer | /* XXX: missing 0x003A0201 */
|
6873 | 80d11f44 | j_mayer | CPU_POWERPC_POWER5 = 0x003A0203,
|
6874 | 80d11f44 | j_mayer | #define CPU_POWERPC_POWER5GR CPU_POWERPC_POWER5
|
6875 | 80d11f44 | j_mayer | CPU_POWERPC_POWER5P = 0x003B0000,
|
6876 | 80d11f44 | j_mayer | #define CPU_POWERPC_POWER5GS CPU_POWERPC_POWER5P
|
6877 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6 = 0x003E0000,
|
6878 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6_5 = 0x0F000001, /* POWER6 in POWER5 mode */ |
6879 | 80d11f44 | j_mayer | CPU_POWERPC_POWER6A = 0x0F000002,
|
6880 | 80d11f44 | j_mayer | CPU_POWERPC_970 = 0x00390202,
|
6881 | 80d11f44 | j_mayer | #define CPU_POWERPC_970FX CPU_POWERPC_970FX_v31
|
6882 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v10 = 0x00391100,
|
6883 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v20 = 0x003C0200,
|
6884 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v21 = 0x003C0201,
|
6885 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v30 = 0x003C0300,
|
6886 | 80d11f44 | j_mayer | CPU_POWERPC_970FX_v31 = 0x003C0301,
|
6887 | 80d11f44 | j_mayer | CPU_POWERPC_970GX = 0x00450000,
|
6888 | 80d11f44 | j_mayer | #define CPU_POWERPC_970MP CPU_POWERPC_970MP_v11
|
6889 | 80d11f44 | j_mayer | CPU_POWERPC_970MP_v10 = 0x00440100,
|
6890 | 80d11f44 | j_mayer | CPU_POWERPC_970MP_v11 = 0x00440101,
|
6891 | 80d11f44 | j_mayer | #define CPU_POWERPC_CELL CPU_POWERPC_CELL_v32
|
6892 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v10 = 0x00700100,
|
6893 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v20 = 0x00700400,
|
6894 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v30 = 0x00700500,
|
6895 | 80d11f44 | j_mayer | CPU_POWERPC_CELL_v31 = 0x00700501,
|
6896 | 80d11f44 | j_mayer | #define CPU_POWERPC_CELL_v32 CPU_POWERPC_CELL_v31
|
6897 | 80d11f44 | j_mayer | CPU_POWERPC_RS64 = 0x00330000,
|
6898 | 80d11f44 | j_mayer | CPU_POWERPC_RS64II = 0x00340000,
|
6899 | 80d11f44 | j_mayer | CPU_POWERPC_RS64III = 0x00360000,
|
6900 | 80d11f44 | j_mayer | CPU_POWERPC_RS64IV = 0x00370000,
|
6901 | 00af685f | j_mayer | #endif /* defined(TARGET_PPC64) */ |
6902 | a750fc0b | j_mayer | /* Original POWER */
|
6903 | a750fc0b | j_mayer | /* XXX: should be POWER (RIOS), RSC3308, RSC4608,
|
6904 | a750fc0b | j_mayer | * POWER2 (RIOS2) & RSC2 (P2SC) here
|
6905 | a750fc0b | j_mayer | */
|
6906 | a750fc0b | j_mayer | #if 0
|
6907 | 80d11f44 | j_mayer | CPU_POWER = xxx, /* 0x20000 ? 0x30000 for RSC ? */
|
6908 | a750fc0b | j_mayer | #endif
|
6909 | a750fc0b | j_mayer | #if 0
|
6910 | 80d11f44 | j_mayer | CPU_POWER2 = xxx, /* 0x40000 ? */
|
6911 | a750fc0b | j_mayer | #endif
|
6912 | a750fc0b | j_mayer | /* PA Semi core */
|
6913 | 80d11f44 | j_mayer | CPU_POWERPC_PA6T = 0x00900000,
|
6914 | a750fc0b | j_mayer | }; |
6915 | a750fc0b | j_mayer | |
6916 | a750fc0b | j_mayer | /* System version register (used on MPC 8xxx) */
|
6917 | a750fc0b | j_mayer | enum {
|
6918 | 80d11f44 | j_mayer | POWERPC_SVR_NONE = 0x00000000,
|
6919 | 80d11f44 | j_mayer | #define POWERPC_SVR_52xx POWERPC_SVR_5200
|
6920 | 80d11f44 | j_mayer | #define POWERPC_SVR_5200 POWERPC_SVR_5200_v12
|
6921 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v10 = 0x80110010,
|
6922 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v11 = 0x80110011,
|
6923 | 80d11f44 | j_mayer | POWERPC_SVR_5200_v12 = 0x80110012,
|
6924 | 80d11f44 | j_mayer | #define POWERPC_SVR_5200B POWERPC_SVR_5200B_v21
|
6925 | 80d11f44 | j_mayer | POWERPC_SVR_5200B_v20 = 0x80110020,
|
6926 | 80d11f44 | j_mayer | POWERPC_SVR_5200B_v21 = 0x80110021,
|
6927 | 80d11f44 | j_mayer | #define POWERPC_SVR_55xx POWERPC_SVR_5567
|
6928 | c3e36823 | j_mayer | #if 0
|
6929 | 80d11f44 | j_mayer | POWERPC_SVR_5533 = xxx,
|
6930 | c3e36823 | j_mayer | #endif
|
6931 | c3e36823 | j_mayer | #if 0
|
6932 | 80d11f44 | j_mayer | POWERPC_SVR_5534 = xxx,
|
6933 | c3e36823 | j_mayer | #endif
|
6934 | c3e36823 | j_mayer | #if 0
|
6935 | 80d11f44 | j_mayer | POWERPC_SVR_5553 = xxx,
|
6936 | c3e36823 | j_mayer | #endif
|
6937 | c3e36823 | j_mayer | #if 0
|
6938 | 80d11f44 | j_mayer | POWERPC_SVR_5554 = xxx,
|
6939 | c3e36823 | j_mayer | #endif
|
6940 | c3e36823 | j_mayer | #if 0
|
6941 | 80d11f44 | j_mayer | POWERPC_SVR_5561 = xxx,
|
6942 | c3e36823 | j_mayer | #endif
|
6943 | c3e36823 | j_mayer | #if 0
|
6944 | 80d11f44 | j_mayer | POWERPC_SVR_5565 = xxx,
|
6945 | c3e36823 | j_mayer | #endif
|
6946 | c3e36823 | j_mayer | #if 0
|
6947 | 80d11f44 | j_mayer | POWERPC_SVR_5566 = xxx,
|
6948 | c3e36823 | j_mayer | #endif
|
6949 | c3e36823 | j_mayer | #if 0
|
6950 | 80d11f44 | j_mayer | POWERPC_SVR_5567 = xxx,
|
6951 | c3e36823 | j_mayer | #endif
|
6952 | c3e36823 | j_mayer | #if 0
|
6953 | 80d11f44 | j_mayer | POWERPC_SVR_8313 = xxx,
|
6954 | c3e36823 | j_mayer | #endif
|
6955 | c3e36823 | j_mayer | #if 0
|
6956 | 80d11f44 | j_mayer | POWERPC_SVR_8313E = xxx,
|
6957 | c3e36823 | j_mayer | #endif
|
6958 | c3e36823 | j_mayer | #if 0
|
6959 | 80d11f44 | j_mayer | POWERPC_SVR_8314 = xxx,
|
6960 | c3e36823 | j_mayer | #endif
|
6961 | c3e36823 | j_mayer | #if 0
|
6962 | 80d11f44 | j_mayer | POWERPC_SVR_8314E = xxx,
|
6963 | c3e36823 | j_mayer | #endif
|
6964 | c3e36823 | j_mayer | #if 0
|
6965 | 80d11f44 | j_mayer | POWERPC_SVR_8315 = xxx,
|
6966 | c3e36823 | j_mayer | #endif
|
6967 | c3e36823 | j_mayer | #if 0
|
6968 | 80d11f44 | j_mayer | POWERPC_SVR_8315E = xxx,
|
6969 | c3e36823 | j_mayer | #endif
|
6970 | c3e36823 | j_mayer | #if 0
|
6971 | 80d11f44 | j_mayer | POWERPC_SVR_8321 = xxx,
|
6972 | c3e36823 | j_mayer | #endif
|
6973 | c3e36823 | j_mayer | #if 0
|
6974 | 80d11f44 | j_mayer | POWERPC_SVR_8321E = xxx,
|
6975 | c3e36823 | j_mayer | #endif
|
6976 | c3e36823 | j_mayer | #if 0
|
6977 | 80d11f44 | j_mayer | POWERPC_SVR_8323 = xxx,
|
6978 | c3e36823 | j_mayer | #endif
|
6979 | c3e36823 | j_mayer | #if 0
|
6980 | 80d11f44 | j_mayer | POWERPC_SVR_8323E = xxx,
|
6981 | 80d11f44 | j_mayer | #endif
|
6982 | 80d11f44 | j_mayer | POWERPC_SVR_8343A = 0x80570030,
|
6983 | 80d11f44 | j_mayer | POWERPC_SVR_8343EA = 0x80560030,
|
6984 | 80d11f44 | j_mayer | #define POWERPC_SVR_8347A POWERPC_SVR_8347AT
|
6985 | 80d11f44 | j_mayer | POWERPC_SVR_8347AP = 0x80550030, /* PBGA package */ |
6986 | 80d11f44 | j_mayer | POWERPC_SVR_8347AT = 0x80530030, /* TBGA package */ |
6987 | 80d11f44 | j_mayer | #define POWERPC_SVR_8347EA POWERPC_SVR_8347EAT
|
6988 | 80d11f44 | j_mayer | POWERPC_SVR_8347EAP = 0x80540030, /* PBGA package */ |
6989 | 80d11f44 | j_mayer | POWERPC_SVR_8347EAT = 0x80520030, /* TBGA package */ |
6990 | 80d11f44 | j_mayer | POWERPC_SVR_8349 = 0x80510010,
|
6991 | 80d11f44 | j_mayer | POWERPC_SVR_8349A = 0x80510030,
|
6992 | 80d11f44 | j_mayer | POWERPC_SVR_8349E = 0x80500010,
|
6993 | 80d11f44 | j_mayer | POWERPC_SVR_8349EA = 0x80500030,
|
6994 | c3e36823 | j_mayer | #if 0
|
6995 | 80d11f44 | j_mayer | POWERPC_SVR_8358E = xxx,
|
6996 | c3e36823 | j_mayer | #endif
|
6997 | c3e36823 | j_mayer | #if 0
|
6998 | 80d11f44 | j_mayer | POWERPC_SVR_8360E = xxx,
|
6999 | 80d11f44 | j_mayer | #endif
|
7000 | 80d11f44 | j_mayer | #define POWERPC_SVR_E500 0x40000000 |
7001 | 80d11f44 | j_mayer | POWERPC_SVR_8377 = 0x80C70010 | POWERPC_SVR_E500,
|
7002 | 80d11f44 | j_mayer | POWERPC_SVR_8377E = 0x80C60010 | POWERPC_SVR_E500,
|
7003 | 80d11f44 | j_mayer | POWERPC_SVR_8378 = 0x80C50010 | POWERPC_SVR_E500,
|
7004 | 80d11f44 | j_mayer | POWERPC_SVR_8378E = 0x80C40010 | POWERPC_SVR_E500,
|
7005 | 80d11f44 | j_mayer | POWERPC_SVR_8379 = 0x80C30010 | POWERPC_SVR_E500,
|
7006 | 80d11f44 | j_mayer | POWERPC_SVR_8379E = 0x80C00010 | POWERPC_SVR_E500,
|
7007 | 80d11f44 | j_mayer | #define POWERPC_SVR_8533 POWERPC_SVR_8533_v11
|
7008 | 80d11f44 | j_mayer | POWERPC_SVR_8533_v10 = 0x80340010 | POWERPC_SVR_E500,
|
7009 | 80d11f44 | j_mayer | POWERPC_SVR_8533_v11 = 0x80340011 | POWERPC_SVR_E500,
|
7010 | 80d11f44 | j_mayer | #define POWERPC_SVR_8533E POWERPC_SVR_8533E_v11
|
7011 | 80d11f44 | j_mayer | POWERPC_SVR_8533E_v10 = 0x803C0010 | POWERPC_SVR_E500,
|
7012 | 80d11f44 | j_mayer | POWERPC_SVR_8533E_v11 = 0x803C0011 | POWERPC_SVR_E500,
|
7013 | 80d11f44 | j_mayer | #define POWERPC_SVR_8540 POWERPC_SVR_8540_v21
|
7014 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v10 = 0x80300010 | POWERPC_SVR_E500,
|
7015 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v20 = 0x80300020 | POWERPC_SVR_E500,
|
7016 | 80d11f44 | j_mayer | POWERPC_SVR_8540_v21 = 0x80300021 | POWERPC_SVR_E500,
|
7017 | 80d11f44 | j_mayer | #define POWERPC_SVR_8541 POWERPC_SVR_8541_v11
|
7018 | 80d11f44 | j_mayer | POWERPC_SVR_8541_v10 = 0x80720010 | POWERPC_SVR_E500,
|
7019 | 80d11f44 | j_mayer | POWERPC_SVR_8541_v11 = 0x80720011 | POWERPC_SVR_E500,
|
7020 | 80d11f44 | j_mayer | #define POWERPC_SVR_8541E POWERPC_SVR_8541E_v11
|
7021 | 80d11f44 | j_mayer | POWERPC_SVR_8541E_v10 = 0x807A0010 | POWERPC_SVR_E500,
|
7022 | 80d11f44 | j_mayer | POWERPC_SVR_8541E_v11 = 0x807A0011 | POWERPC_SVR_E500,
|
7023 | 80d11f44 | j_mayer | #define POWERPC_SVR_8543 POWERPC_SVR_8543_v21
|
7024 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v10 = 0x80320010 | POWERPC_SVR_E500,
|
7025 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v11 = 0x80320011 | POWERPC_SVR_E500,
|
7026 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v20 = 0x80320020 | POWERPC_SVR_E500,
|
7027 | 80d11f44 | j_mayer | POWERPC_SVR_8543_v21 = 0x80320021 | POWERPC_SVR_E500,
|
7028 | 80d11f44 | j_mayer | #define POWERPC_SVR_8543E POWERPC_SVR_8543E_v21
|
7029 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v10 = 0x803A0010 | POWERPC_SVR_E500,
|
7030 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v11 = 0x803A0011 | POWERPC_SVR_E500,
|
7031 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v20 = 0x803A0020 | POWERPC_SVR_E500,
|
7032 | 80d11f44 | j_mayer | POWERPC_SVR_8543E_v21 = 0x803A0021 | POWERPC_SVR_E500,
|
7033 | 80d11f44 | j_mayer | #define POWERPC_SVR_8544 POWERPC_SVR_8544_v11
|
7034 | 80d11f44 | j_mayer | POWERPC_SVR_8544_v10 = 0x80340110 | POWERPC_SVR_E500,
|
7035 | 80d11f44 | j_mayer | POWERPC_SVR_8544_v11 = 0x80340111 | POWERPC_SVR_E500,
|
7036 | 80d11f44 | j_mayer | #define POWERPC_SVR_8544E POWERPC_SVR_8544E_v11
|
7037 | 80d11f44 | j_mayer | POWERPC_SVR_8544E_v10 = 0x803C0110 | POWERPC_SVR_E500,
|
7038 | 80d11f44 | j_mayer | POWERPC_SVR_8544E_v11 = 0x803C0111 | POWERPC_SVR_E500,
|
7039 | 80d11f44 | j_mayer | #define POWERPC_SVR_8545 POWERPC_SVR_8545_v21
|
7040 | 80d11f44 | j_mayer | POWERPC_SVR_8545_v20 = 0x80310220 | POWERPC_SVR_E500,
|
7041 | 80d11f44 | j_mayer | POWERPC_SVR_8545_v21 = 0x80310221 | POWERPC_SVR_E500,
|
7042 | 80d11f44 | j_mayer | #define POWERPC_SVR_8545E POWERPC_SVR_8545E_v21
|
7043 | 80d11f44 | j_mayer | POWERPC_SVR_8545E_v20 = 0x80390220 | POWERPC_SVR_E500,
|
7044 | 80d11f44 | j_mayer | POWERPC_SVR_8545E_v21 = 0x80390221 | POWERPC_SVR_E500,
|
7045 | 80d11f44 | j_mayer | #define POWERPC_SVR_8547E POWERPC_SVR_8547E_v21
|
7046 | 80d11f44 | j_mayer | POWERPC_SVR_8547E_v20 = 0x80390120 | POWERPC_SVR_E500,
|
7047 | 80d11f44 | j_mayer | POWERPC_SVR_8547E_v21 = 0x80390121 | POWERPC_SVR_E500,
|
7048 | 80d11f44 | j_mayer | #define POWERPC_SVR_8548 POWERPC_SVR_8548_v21
|
7049 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v10 = 0x80310010 | POWERPC_SVR_E500,
|
7050 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v11 = 0x80310011 | POWERPC_SVR_E500,
|
7051 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v20 = 0x80310020 | POWERPC_SVR_E500,
|
7052 | 80d11f44 | j_mayer | POWERPC_SVR_8548_v21 = 0x80310021 | POWERPC_SVR_E500,
|
7053 | 80d11f44 | j_mayer | #define POWERPC_SVR_8548E POWERPC_SVR_8548E_v21
|
7054 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v10 = 0x80390010 | POWERPC_SVR_E500,
|
7055 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v11 = 0x80390011 | POWERPC_SVR_E500,
|
7056 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v20 = 0x80390020 | POWERPC_SVR_E500,
|
7057 | 80d11f44 | j_mayer | POWERPC_SVR_8548E_v21 = 0x80390021 | POWERPC_SVR_E500,
|
7058 | 80d11f44 | j_mayer | #define POWERPC_SVR_8555 POWERPC_SVR_8555_v11
|
7059 | 80d11f44 | j_mayer | POWERPC_SVR_8555_v10 = 0x80710010 | POWERPC_SVR_E500,
|
7060 | 80d11f44 | j_mayer | POWERPC_SVR_8555_v11 = 0x80710011 | POWERPC_SVR_E500,
|
7061 | 80d11f44 | j_mayer | #define POWERPC_SVR_8555E POWERPC_SVR_8555_v11
|
7062 | 80d11f44 | j_mayer | POWERPC_SVR_8555E_v10 = 0x80790010 | POWERPC_SVR_E500,
|
7063 | 80d11f44 | j_mayer | POWERPC_SVR_8555E_v11 = 0x80790011 | POWERPC_SVR_E500,
|
7064 | 80d11f44 | j_mayer | #define POWERPC_SVR_8560 POWERPC_SVR_8560_v21
|
7065 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v10 = 0x80700010 | POWERPC_SVR_E500,
|
7066 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v20 = 0x80700020 | POWERPC_SVR_E500,
|
7067 | 80d11f44 | j_mayer | POWERPC_SVR_8560_v21 = 0x80700021 | POWERPC_SVR_E500,
|
7068 | 80d11f44 | j_mayer | POWERPC_SVR_8567 = 0x80750111 | POWERPC_SVR_E500,
|
7069 | 80d11f44 | j_mayer | POWERPC_SVR_8567E = 0x807D0111 | POWERPC_SVR_E500,
|
7070 | 80d11f44 | j_mayer | POWERPC_SVR_8568 = 0x80750011 | POWERPC_SVR_E500,
|
7071 | 80d11f44 | j_mayer | POWERPC_SVR_8568E = 0x807D0011 | POWERPC_SVR_E500,
|
7072 | 80d11f44 | j_mayer | POWERPC_SVR_8572 = 0x80E00010 | POWERPC_SVR_E500,
|
7073 | 80d11f44 | j_mayer | POWERPC_SVR_8572E = 0x80E80010 | POWERPC_SVR_E500,
|
7074 | c3e36823 | j_mayer | #if 0
|
7075 | 80d11f44 | j_mayer | POWERPC_SVR_8610 = xxx,
|
7076 | c3e36823 | j_mayer | #endif
|
7077 | 80d11f44 | j_mayer | POWERPC_SVR_8641 = 0x80900021,
|
7078 | 80d11f44 | j_mayer | POWERPC_SVR_8641D = 0x80900121,
|
7079 | a750fc0b | j_mayer | }; |
7080 | a750fc0b | j_mayer | |
7081 | 3fc6c082 | bellard | /*****************************************************************************/
|
7082 | a750fc0b | j_mayer | /* PowerPC CPU definitions */
|
7083 | 80d11f44 | j_mayer | #define POWERPC_DEF_SVR(_name, _pvr, _svr, _type) \
|
7084 | a750fc0b | j_mayer | { \ |
7085 | a750fc0b | j_mayer | .name = _name, \ |
7086 | a750fc0b | j_mayer | .pvr = _pvr, \ |
7087 | 80d11f44 | j_mayer | .svr = _svr, \ |
7088 | a750fc0b | j_mayer | .insns_flags = glue(POWERPC_INSNS_,_type), \ |
7089 | a750fc0b | j_mayer | .msr_mask = glue(POWERPC_MSRM_,_type), \ |
7090 | a750fc0b | j_mayer | .mmu_model = glue(POWERPC_MMU_,_type), \ |
7091 | a750fc0b | j_mayer | .excp_model = glue(POWERPC_EXCP_,_type), \ |
7092 | a750fc0b | j_mayer | .bus_model = glue(POWERPC_INPUT_,_type), \ |
7093 | 237c0af0 | j_mayer | .bfd_mach = glue(POWERPC_BFDM_,_type), \ |
7094 | d26bfc9a | j_mayer | .flags = glue(POWERPC_FLAG_,_type), \ |
7095 | a750fc0b | j_mayer | .init_proc = &glue(init_proc_,_type), \ |
7096 | 2f462816 | j_mayer | .check_pow = &glue(check_pow_,_type), \ |
7097 | a750fc0b | j_mayer | } |
7098 | 80d11f44 | j_mayer | #define POWERPC_DEF(_name, _pvr, _type) \
|
7099 | 80d11f44 | j_mayer | POWERPC_DEF_SVR(_name, _pvr, POWERPC_SVR_NONE, _type) |
7100 | a750fc0b | j_mayer | |
7101 | ee4e83ed | j_mayer | static const ppc_def_t ppc_defs[] = { |
7102 | a750fc0b | j_mayer | /* Embedded PowerPC */
|
7103 | a750fc0b | j_mayer | /* PowerPC 401 family */
|
7104 | 2662a059 | j_mayer | /* Generic PowerPC 401 */
|
7105 | 80d11f44 | j_mayer | POWERPC_DEF("401", CPU_POWERPC_401, 401), |
7106 | a750fc0b | j_mayer | /* PowerPC 401 cores */
|
7107 | 2662a059 | j_mayer | /* PowerPC 401A1 */
|
7108 | 80d11f44 | j_mayer | POWERPC_DEF("401A1", CPU_POWERPC_401A1, 401), |
7109 | a750fc0b | j_mayer | /* PowerPC 401B2 */
|
7110 | 80d11f44 | j_mayer | POWERPC_DEF("401B2", CPU_POWERPC_401B2, 401x2), |
7111 | 2662a059 | j_mayer | #if defined (TODO)
|
7112 | a750fc0b | j_mayer | /* PowerPC 401B3 */
|
7113 | 80d11f44 | j_mayer | POWERPC_DEF("401B3", CPU_POWERPC_401B3, 401x3), |
7114 | a750fc0b | j_mayer | #endif
|
7115 | a750fc0b | j_mayer | /* PowerPC 401C2 */
|
7116 | 80d11f44 | j_mayer | POWERPC_DEF("401C2", CPU_POWERPC_401C2, 401x2), |
7117 | a750fc0b | j_mayer | /* PowerPC 401D2 */
|
7118 | 80d11f44 | j_mayer | POWERPC_DEF("401D2", CPU_POWERPC_401D2, 401x2), |
7119 | a750fc0b | j_mayer | /* PowerPC 401E2 */
|
7120 | 80d11f44 | j_mayer | POWERPC_DEF("401E2", CPU_POWERPC_401E2, 401x2), |
7121 | a750fc0b | j_mayer | /* PowerPC 401F2 */
|
7122 | 80d11f44 | j_mayer | POWERPC_DEF("401F2", CPU_POWERPC_401F2, 401x2), |
7123 | a750fc0b | j_mayer | /* PowerPC 401G2 */
|
7124 | a750fc0b | j_mayer | /* XXX: to be checked */
|
7125 | 80d11f44 | j_mayer | POWERPC_DEF("401G2", CPU_POWERPC_401G2, 401x2), |
7126 | a750fc0b | j_mayer | /* PowerPC 401 microcontrolers */
|
7127 | 2662a059 | j_mayer | #if defined (TODO)
|
7128 | a750fc0b | j_mayer | /* PowerPC 401GF */
|
7129 | 80d11f44 | j_mayer | POWERPC_DEF("401GF", CPU_POWERPC_401GF, 401), |
7130 | 3fc6c082 | bellard | #endif
|
7131 | a750fc0b | j_mayer | /* IOP480 (401 microcontroler) */
|
7132 | 80d11f44 | j_mayer | POWERPC_DEF("IOP480", CPU_POWERPC_IOP480, IOP480),
|
7133 | a750fc0b | j_mayer | /* IBM Processor for Network Resources */
|
7134 | 80d11f44 | j_mayer | POWERPC_DEF("Cobra", CPU_POWERPC_COBRA, 401), |
7135 | 3fc6c082 | bellard | #if defined (TODO)
|
7136 | 80d11f44 | j_mayer | POWERPC_DEF("Xipchip", CPU_POWERPC_XIPCHIP, 401), |
7137 | 3fc6c082 | bellard | #endif
|
7138 | a750fc0b | j_mayer | /* PowerPC 403 family */
|
7139 | a750fc0b | j_mayer | /* Generic PowerPC 403 */
|
7140 | 80d11f44 | j_mayer | POWERPC_DEF("403", CPU_POWERPC_403, 403), |
7141 | a750fc0b | j_mayer | /* PowerPC 403 microcontrolers */
|
7142 | a750fc0b | j_mayer | /* PowerPC 403 GA */
|
7143 | 80d11f44 | j_mayer | POWERPC_DEF("403GA", CPU_POWERPC_403GA, 403), |
7144 | a750fc0b | j_mayer | /* PowerPC 403 GB */
|
7145 | 80d11f44 | j_mayer | POWERPC_DEF("403GB", CPU_POWERPC_403GB, 403), |
7146 | a750fc0b | j_mayer | /* PowerPC 403 GC */
|
7147 | 80d11f44 | j_mayer | POWERPC_DEF("403GC", CPU_POWERPC_403GC, 403), |
7148 | a750fc0b | j_mayer | /* PowerPC 403 GCX */
|
7149 | 80d11f44 | j_mayer | POWERPC_DEF("403GCX", CPU_POWERPC_403GCX, 403GCX), |
7150 | 3fc6c082 | bellard | #if defined (TODO)
|
7151 | a750fc0b | j_mayer | /* PowerPC 403 GP */
|
7152 | 80d11f44 | j_mayer | POWERPC_DEF("403GP", CPU_POWERPC_403GP, 403), |
7153 | 3fc6c082 | bellard | #endif
|
7154 | a750fc0b | j_mayer | /* PowerPC 405 family */
|
7155 | a750fc0b | j_mayer | /* Generic PowerPC 405 */
|
7156 | 80d11f44 | j_mayer | POWERPC_DEF("405", CPU_POWERPC_405, 405), |
7157 | a750fc0b | j_mayer | /* PowerPC 405 cores */
|
7158 | 2662a059 | j_mayer | #if defined (TODO)
|
7159 | a750fc0b | j_mayer | /* PowerPC 405 A3 */
|
7160 | 80d11f44 | j_mayer | POWERPC_DEF("405A3", CPU_POWERPC_405A3, 405), |
7161 | 3a607854 | j_mayer | #endif
|
7162 | 3a607854 | j_mayer | #if defined (TODO)
|
7163 | a750fc0b | j_mayer | /* PowerPC 405 A4 */
|
7164 | 80d11f44 | j_mayer | POWERPC_DEF("405A4", CPU_POWERPC_405A4, 405), |
7165 | 3a607854 | j_mayer | #endif
|
7166 | 3a607854 | j_mayer | #if defined (TODO)
|
7167 | a750fc0b | j_mayer | /* PowerPC 405 B3 */
|
7168 | 80d11f44 | j_mayer | POWERPC_DEF("405B3", CPU_POWERPC_405B3, 405), |
7169 | 3fc6c082 | bellard | #endif
|
7170 | 3fc6c082 | bellard | #if defined (TODO)
|
7171 | a750fc0b | j_mayer | /* PowerPC 405 B4 */
|
7172 | 80d11f44 | j_mayer | POWERPC_DEF("405B4", CPU_POWERPC_405B4, 405), |
7173 | a750fc0b | j_mayer | #endif
|
7174 | a750fc0b | j_mayer | #if defined (TODO)
|
7175 | a750fc0b | j_mayer | /* PowerPC 405 C3 */
|
7176 | 80d11f44 | j_mayer | POWERPC_DEF("405C3", CPU_POWERPC_405C3, 405), |
7177 | a750fc0b | j_mayer | #endif
|
7178 | a750fc0b | j_mayer | #if defined (TODO)
|
7179 | a750fc0b | j_mayer | /* PowerPC 405 C4 */
|
7180 | 80d11f44 | j_mayer | POWERPC_DEF("405C4", CPU_POWERPC_405C4, 405), |
7181 | a750fc0b | j_mayer | #endif
|
7182 | a750fc0b | j_mayer | /* PowerPC 405 D2 */
|
7183 | 80d11f44 | j_mayer | POWERPC_DEF("405D2", CPU_POWERPC_405D2, 405), |
7184 | a750fc0b | j_mayer | #if defined (TODO)
|
7185 | a750fc0b | j_mayer | /* PowerPC 405 D3 */
|
7186 | 80d11f44 | j_mayer | POWERPC_DEF("405D3", CPU_POWERPC_405D3, 405), |
7187 | a750fc0b | j_mayer | #endif
|
7188 | a750fc0b | j_mayer | /* PowerPC 405 D4 */
|
7189 | 80d11f44 | j_mayer | POWERPC_DEF("405D4", CPU_POWERPC_405D4, 405), |
7190 | a750fc0b | j_mayer | #if defined (TODO)
|
7191 | a750fc0b | j_mayer | /* PowerPC 405 D5 */
|
7192 | 80d11f44 | j_mayer | POWERPC_DEF("405D5", CPU_POWERPC_405D5, 405), |
7193 | a750fc0b | j_mayer | #endif
|
7194 | a750fc0b | j_mayer | #if defined (TODO)
|
7195 | a750fc0b | j_mayer | /* PowerPC 405 E4 */
|
7196 | 80d11f44 | j_mayer | POWERPC_DEF("405E4", CPU_POWERPC_405E4, 405), |
7197 | a750fc0b | j_mayer | #endif
|
7198 | a750fc0b | j_mayer | #if defined (TODO)
|
7199 | a750fc0b | j_mayer | /* PowerPC 405 F4 */
|
7200 | 80d11f44 | j_mayer | POWERPC_DEF("405F4", CPU_POWERPC_405F4, 405), |
7201 | a750fc0b | j_mayer | #endif
|
7202 | a750fc0b | j_mayer | #if defined (TODO)
|
7203 | a750fc0b | j_mayer | /* PowerPC 405 F5 */
|
7204 | 80d11f44 | j_mayer | POWERPC_DEF("405F5", CPU_POWERPC_405F5, 405), |
7205 | a750fc0b | j_mayer | #endif
|
7206 | a750fc0b | j_mayer | #if defined (TODO)
|
7207 | a750fc0b | j_mayer | /* PowerPC 405 F6 */
|
7208 | 80d11f44 | j_mayer | POWERPC_DEF("405F6", CPU_POWERPC_405F6, 405), |
7209 | a750fc0b | j_mayer | #endif
|
7210 | a750fc0b | j_mayer | /* PowerPC 405 microcontrolers */
|
7211 | a750fc0b | j_mayer | /* PowerPC 405 CR */
|
7212 | 80d11f44 | j_mayer | POWERPC_DEF("405CR", CPU_POWERPC_405CR, 405), |
7213 | a750fc0b | j_mayer | /* PowerPC 405 CRa */
|
7214 | 80d11f44 | j_mayer | POWERPC_DEF("405CRa", CPU_POWERPC_405CRa, 405), |
7215 | a750fc0b | j_mayer | /* PowerPC 405 CRb */
|
7216 | 80d11f44 | j_mayer | POWERPC_DEF("405CRb", CPU_POWERPC_405CRb, 405), |
7217 | a750fc0b | j_mayer | /* PowerPC 405 CRc */
|
7218 | 80d11f44 | j_mayer | POWERPC_DEF("405CRc", CPU_POWERPC_405CRc, 405), |
7219 | a750fc0b | j_mayer | /* PowerPC 405 EP */
|
7220 | 80d11f44 | j_mayer | POWERPC_DEF("405EP", CPU_POWERPC_405EP, 405), |
7221 | a750fc0b | j_mayer | #if defined(TODO)
|
7222 | a750fc0b | j_mayer | /* PowerPC 405 EXr */
|
7223 | 80d11f44 | j_mayer | POWERPC_DEF("405EXr", CPU_POWERPC_405EXr, 405), |
7224 | a750fc0b | j_mayer | #endif
|
7225 | a750fc0b | j_mayer | /* PowerPC 405 EZ */
|
7226 | 80d11f44 | j_mayer | POWERPC_DEF("405EZ", CPU_POWERPC_405EZ, 405), |
7227 | a750fc0b | j_mayer | #if defined(TODO)
|
7228 | a750fc0b | j_mayer | /* PowerPC 405 FX */
|
7229 | 80d11f44 | j_mayer | POWERPC_DEF("405FX", CPU_POWERPC_405FX, 405), |
7230 | a750fc0b | j_mayer | #endif
|
7231 | a750fc0b | j_mayer | /* PowerPC 405 GP */
|
7232 | 80d11f44 | j_mayer | POWERPC_DEF("405GP", CPU_POWERPC_405GP, 405), |
7233 | a750fc0b | j_mayer | /* PowerPC 405 GPa */
|
7234 | 80d11f44 | j_mayer | POWERPC_DEF("405GPa", CPU_POWERPC_405GPa, 405), |
7235 | a750fc0b | j_mayer | /* PowerPC 405 GPb */
|
7236 | 80d11f44 | j_mayer | POWERPC_DEF("405GPb", CPU_POWERPC_405GPb, 405), |
7237 | a750fc0b | j_mayer | /* PowerPC 405 GPc */
|
7238 | 80d11f44 | j_mayer | POWERPC_DEF("405GPc", CPU_POWERPC_405GPc, 405), |
7239 | a750fc0b | j_mayer | /* PowerPC 405 GPd */
|
7240 | 80d11f44 | j_mayer | POWERPC_DEF("405GPd", CPU_POWERPC_405GPd, 405), |
7241 | a750fc0b | j_mayer | /* PowerPC 405 GPe */
|
7242 | 80d11f44 | j_mayer | POWERPC_DEF("405GPe", CPU_POWERPC_405GPe, 405), |
7243 | a750fc0b | j_mayer | /* PowerPC 405 GPR */
|
7244 | 80d11f44 | j_mayer | POWERPC_DEF("405GPR", CPU_POWERPC_405GPR, 405), |
7245 | a750fc0b | j_mayer | #if defined(TODO)
|
7246 | a750fc0b | j_mayer | /* PowerPC 405 H */
|
7247 | 80d11f44 | j_mayer | POWERPC_DEF("405H", CPU_POWERPC_405H, 405), |
7248 | a750fc0b | j_mayer | #endif
|
7249 | a750fc0b | j_mayer | #if defined(TODO)
|
7250 | a750fc0b | j_mayer | /* PowerPC 405 L */
|
7251 | 80d11f44 | j_mayer | POWERPC_DEF("405L", CPU_POWERPC_405L, 405), |
7252 | a750fc0b | j_mayer | #endif
|
7253 | a750fc0b | j_mayer | /* PowerPC 405 LP */
|
7254 | 80d11f44 | j_mayer | POWERPC_DEF("405LP", CPU_POWERPC_405LP, 405), |
7255 | a750fc0b | j_mayer | #if defined(TODO)
|
7256 | a750fc0b | j_mayer | /* PowerPC 405 PM */
|
7257 | 80d11f44 | j_mayer | POWERPC_DEF("405PM", CPU_POWERPC_405PM, 405), |
7258 | a750fc0b | j_mayer | #endif
|
7259 | a750fc0b | j_mayer | #if defined(TODO)
|
7260 | a750fc0b | j_mayer | /* PowerPC 405 PS */
|
7261 | 80d11f44 | j_mayer | POWERPC_DEF("405PS", CPU_POWERPC_405PS, 405), |
7262 | a750fc0b | j_mayer | #endif
|
7263 | a750fc0b | j_mayer | #if defined(TODO)
|
7264 | a750fc0b | j_mayer | /* PowerPC 405 S */
|
7265 | 80d11f44 | j_mayer | POWERPC_DEF("405S", CPU_POWERPC_405S, 405), |
7266 | a750fc0b | j_mayer | #endif
|
7267 | a750fc0b | j_mayer | /* Npe405 H */
|
7268 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405H", CPU_POWERPC_NPE405H, 405), |
7269 | a750fc0b | j_mayer | /* Npe405 H2 */
|
7270 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405H2", CPU_POWERPC_NPE405H2, 405), |
7271 | a750fc0b | j_mayer | /* Npe405 L */
|
7272 | 80d11f44 | j_mayer | POWERPC_DEF("Npe405L", CPU_POWERPC_NPE405L, 405), |
7273 | a750fc0b | j_mayer | /* Npe4GS3 */
|
7274 | 80d11f44 | j_mayer | POWERPC_DEF("Npe4GS3", CPU_POWERPC_NPE4GS3, 405), |
7275 | a750fc0b | j_mayer | #if defined (TODO)
|
7276 | 80d11f44 | j_mayer | POWERPC_DEF("Npcxx1", CPU_POWERPC_NPCxx1, 405), |
7277 | a750fc0b | j_mayer | #endif
|
7278 | a750fc0b | j_mayer | #if defined (TODO)
|
7279 | 80d11f44 | j_mayer | POWERPC_DEF("Npr161", CPU_POWERPC_NPR161, 405), |
7280 | a750fc0b | j_mayer | #endif
|
7281 | a750fc0b | j_mayer | #if defined (TODO)
|
7282 | a750fc0b | j_mayer | /* PowerPC LC77700 (Sanyo) */
|
7283 | 80d11f44 | j_mayer | POWERPC_DEF("LC77700", CPU_POWERPC_LC77700, 405), |
7284 | a750fc0b | j_mayer | #endif
|
7285 | a750fc0b | j_mayer | /* PowerPC 401/403/405 based set-top-box microcontrolers */
|
7286 | a750fc0b | j_mayer | #if defined (TODO)
|
7287 | a750fc0b | j_mayer | /* STB010000 */
|
7288 | 80d11f44 | j_mayer | POWERPC_DEF("STB01000", CPU_POWERPC_STB01000, 401x2), |
7289 | a750fc0b | j_mayer | #endif
|
7290 | a750fc0b | j_mayer | #if defined (TODO)
|
7291 | a750fc0b | j_mayer | /* STB01010 */
|
7292 | 80d11f44 | j_mayer | POWERPC_DEF("STB01010", CPU_POWERPC_STB01010, 401x2), |
7293 | a750fc0b | j_mayer | #endif
|
7294 | a750fc0b | j_mayer | #if defined (TODO)
|
7295 | a750fc0b | j_mayer | /* STB0210 */
|
7296 | 80d11f44 | j_mayer | POWERPC_DEF("STB0210", CPU_POWERPC_STB0210, 401x3), |
7297 | a750fc0b | j_mayer | #endif
|
7298 | a750fc0b | j_mayer | /* STB03xx */
|
7299 | 80d11f44 | j_mayer | POWERPC_DEF("STB03", CPU_POWERPC_STB03, 405), |
7300 | a750fc0b | j_mayer | #if defined (TODO)
|
7301 | a750fc0b | j_mayer | /* STB043x */
|
7302 | 80d11f44 | j_mayer | POWERPC_DEF("STB043", CPU_POWERPC_STB043, 405), |
7303 | a750fc0b | j_mayer | #endif
|
7304 | a750fc0b | j_mayer | #if defined (TODO)
|
7305 | a750fc0b | j_mayer | /* STB045x */
|
7306 | 80d11f44 | j_mayer | POWERPC_DEF("STB045", CPU_POWERPC_STB045, 405), |
7307 | a750fc0b | j_mayer | #endif
|
7308 | a750fc0b | j_mayer | /* STB04xx */
|
7309 | 80d11f44 | j_mayer | POWERPC_DEF("STB04", CPU_POWERPC_STB04, 405), |
7310 | a750fc0b | j_mayer | /* STB25xx */
|
7311 | 80d11f44 | j_mayer | POWERPC_DEF("STB25", CPU_POWERPC_STB25, 405), |
7312 | a750fc0b | j_mayer | #if defined (TODO)
|
7313 | a750fc0b | j_mayer | /* STB130 */
|
7314 | 80d11f44 | j_mayer | POWERPC_DEF("STB130", CPU_POWERPC_STB130, 405), |
7315 | a750fc0b | j_mayer | #endif
|
7316 | a750fc0b | j_mayer | /* Xilinx PowerPC 405 cores */
|
7317 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp4", CPU_POWERPC_X2VP4, 405), |
7318 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp7", CPU_POWERPC_X2VP7, 405), |
7319 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp20", CPU_POWERPC_X2VP20, 405), |
7320 | 80d11f44 | j_mayer | POWERPC_DEF("x2vp50", CPU_POWERPC_X2VP50, 405), |
7321 | a750fc0b | j_mayer | #if defined (TODO)
|
7322 | a750fc0b | j_mayer | /* Zarlink ZL10310 */
|
7323 | 80d11f44 | j_mayer | POWERPC_DEF("zl10310", CPU_POWERPC_ZL10310, 405), |
7324 | a750fc0b | j_mayer | #endif
|
7325 | a750fc0b | j_mayer | #if defined (TODO)
|
7326 | a750fc0b | j_mayer | /* Zarlink ZL10311 */
|
7327 | 80d11f44 | j_mayer | POWERPC_DEF("zl10311", CPU_POWERPC_ZL10311, 405), |
7328 | a750fc0b | j_mayer | #endif
|
7329 | a750fc0b | j_mayer | #if defined (TODO)
|
7330 | a750fc0b | j_mayer | /* Zarlink ZL10320 */
|
7331 | 80d11f44 | j_mayer | POWERPC_DEF("zl10320", CPU_POWERPC_ZL10320, 405), |
7332 | a750fc0b | j_mayer | #endif
|
7333 | a750fc0b | j_mayer | #if defined (TODO)
|
7334 | a750fc0b | j_mayer | /* Zarlink ZL10321 */
|
7335 | 80d11f44 | j_mayer | POWERPC_DEF("zl10321", CPU_POWERPC_ZL10321, 405), |
7336 | a750fc0b | j_mayer | #endif
|
7337 | a750fc0b | j_mayer | /* PowerPC 440 family */
|
7338 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7339 | a750fc0b | j_mayer | /* Generic PowerPC 440 */
|
7340 | 80d11f44 | j_mayer | POWERPC_DEF("440", CPU_POWERPC_440, 440GP), |
7341 | 80d11f44 | j_mayer | #endif
|
7342 | a750fc0b | j_mayer | /* PowerPC 440 cores */
|
7343 | a750fc0b | j_mayer | #if defined (TODO)
|
7344 | a750fc0b | j_mayer | /* PowerPC 440 A4 */
|
7345 | 80d11f44 | j_mayer | POWERPC_DEF("440A4", CPU_POWERPC_440A4, 440x4), |
7346 | a750fc0b | j_mayer | #endif
|
7347 | a750fc0b | j_mayer | #if defined (TODO)
|
7348 | a750fc0b | j_mayer | /* PowerPC 440 A5 */
|
7349 | 80d11f44 | j_mayer | POWERPC_DEF("440A5", CPU_POWERPC_440A5, 440x5), |
7350 | a750fc0b | j_mayer | #endif
|
7351 | a750fc0b | j_mayer | #if defined (TODO)
|
7352 | a750fc0b | j_mayer | /* PowerPC 440 B4 */
|
7353 | 80d11f44 | j_mayer | POWERPC_DEF("440B4", CPU_POWERPC_440B4, 440x4), |
7354 | a750fc0b | j_mayer | #endif
|
7355 | a750fc0b | j_mayer | #if defined (TODO)
|
7356 | a750fc0b | j_mayer | /* PowerPC 440 G4 */
|
7357 | 80d11f44 | j_mayer | POWERPC_DEF("440G4", CPU_POWERPC_440G4, 440x4), |
7358 | a750fc0b | j_mayer | #endif
|
7359 | a750fc0b | j_mayer | #if defined (TODO)
|
7360 | a750fc0b | j_mayer | /* PowerPC 440 F5 */
|
7361 | 80d11f44 | j_mayer | POWERPC_DEF("440F5", CPU_POWERPC_440F5, 440x5), |
7362 | a750fc0b | j_mayer | #endif
|
7363 | a750fc0b | j_mayer | #if defined (TODO)
|
7364 | a750fc0b | j_mayer | /* PowerPC 440 G5 */
|
7365 | 80d11f44 | j_mayer | POWERPC_DEF("440G5", CPU_POWERPC_440G5, 440x5), |
7366 | a750fc0b | j_mayer | #endif
|
7367 | a750fc0b | j_mayer | #if defined (TODO)
|
7368 | a750fc0b | j_mayer | /* PowerPC 440H4 */
|
7369 | 80d11f44 | j_mayer | POWERPC_DEF("440H4", CPU_POWERPC_440H4, 440x4), |
7370 | a750fc0b | j_mayer | #endif
|
7371 | a750fc0b | j_mayer | #if defined (TODO)
|
7372 | a750fc0b | j_mayer | /* PowerPC 440H6 */
|
7373 | 80d11f44 | j_mayer | POWERPC_DEF("440H6", CPU_POWERPC_440H6, 440Gx5), |
7374 | a750fc0b | j_mayer | #endif
|
7375 | a750fc0b | j_mayer | /* PowerPC 440 microcontrolers */
|
7376 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7377 | a750fc0b | j_mayer | /* PowerPC 440 EP */
|
7378 | 80d11f44 | j_mayer | POWERPC_DEF("440EP", CPU_POWERPC_440EP, 440EP), |
7379 | 80d11f44 | j_mayer | #endif
|
7380 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7381 | a750fc0b | j_mayer | /* PowerPC 440 EPa */
|
7382 | 80d11f44 | j_mayer | POWERPC_DEF("440EPa", CPU_POWERPC_440EPa, 440EP), |
7383 | 80d11f44 | j_mayer | #endif
|
7384 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7385 | a750fc0b | j_mayer | /* PowerPC 440 EPb */
|
7386 | 80d11f44 | j_mayer | POWERPC_DEF("440EPb", CPU_POWERPC_440EPb, 440EP), |
7387 | 80d11f44 | j_mayer | #endif
|
7388 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7389 | a750fc0b | j_mayer | /* PowerPC 440 EPX */
|
7390 | 80d11f44 | j_mayer | POWERPC_DEF("440EPX", CPU_POWERPC_440EPX, 440EP), |
7391 | 80d11f44 | j_mayer | #endif
|
7392 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7393 | a750fc0b | j_mayer | /* PowerPC 440 GP */
|
7394 | 80d11f44 | j_mayer | POWERPC_DEF("440GP", CPU_POWERPC_440GP, 440GP), |
7395 | 80d11f44 | j_mayer | #endif
|
7396 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7397 | a750fc0b | j_mayer | /* PowerPC 440 GPb */
|
7398 | 80d11f44 | j_mayer | POWERPC_DEF("440GPb", CPU_POWERPC_440GPb, 440GP), |
7399 | 80d11f44 | j_mayer | #endif
|
7400 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7401 | a750fc0b | j_mayer | /* PowerPC 440 GPc */
|
7402 | 80d11f44 | j_mayer | POWERPC_DEF("440GPc", CPU_POWERPC_440GPc, 440GP), |
7403 | 80d11f44 | j_mayer | #endif
|
7404 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7405 | a750fc0b | j_mayer | /* PowerPC 440 GR */
|
7406 | 80d11f44 | j_mayer | POWERPC_DEF("440GR", CPU_POWERPC_440GR, 440x5), |
7407 | 80d11f44 | j_mayer | #endif
|
7408 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7409 | a750fc0b | j_mayer | /* PowerPC 440 GRa */
|
7410 | 80d11f44 | j_mayer | POWERPC_DEF("440GRa", CPU_POWERPC_440GRa, 440x5), |
7411 | 80d11f44 | j_mayer | #endif
|
7412 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7413 | a750fc0b | j_mayer | /* PowerPC 440 GRX */
|
7414 | 80d11f44 | j_mayer | POWERPC_DEF("440GRX", CPU_POWERPC_440GRX, 440x5), |
7415 | 80d11f44 | j_mayer | #endif
|
7416 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7417 | a750fc0b | j_mayer | /* PowerPC 440 GX */
|
7418 | 80d11f44 | j_mayer | POWERPC_DEF("440GX", CPU_POWERPC_440GX, 440EP), |
7419 | 80d11f44 | j_mayer | #endif
|
7420 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7421 | a750fc0b | j_mayer | /* PowerPC 440 GXa */
|
7422 | 80d11f44 | j_mayer | POWERPC_DEF("440GXa", CPU_POWERPC_440GXa, 440EP), |
7423 | 80d11f44 | j_mayer | #endif
|
7424 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7425 | a750fc0b | j_mayer | /* PowerPC 440 GXb */
|
7426 | 80d11f44 | j_mayer | POWERPC_DEF("440GXb", CPU_POWERPC_440GXb, 440EP), |
7427 | 80d11f44 | j_mayer | #endif
|
7428 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7429 | a750fc0b | j_mayer | /* PowerPC 440 GXc */
|
7430 | 80d11f44 | j_mayer | POWERPC_DEF("440GXc", CPU_POWERPC_440GXc, 440EP), |
7431 | 80d11f44 | j_mayer | #endif
|
7432 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7433 | a750fc0b | j_mayer | /* PowerPC 440 GXf */
|
7434 | 80d11f44 | j_mayer | POWERPC_DEF("440GXf", CPU_POWERPC_440GXf, 440EP), |
7435 | 80d11f44 | j_mayer | #endif
|
7436 | a750fc0b | j_mayer | #if defined(TODO)
|
7437 | a750fc0b | j_mayer | /* PowerPC 440 S */
|
7438 | 80d11f44 | j_mayer | POWERPC_DEF("440S", CPU_POWERPC_440S, 440), |
7439 | a750fc0b | j_mayer | #endif
|
7440 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7441 | a750fc0b | j_mayer | /* PowerPC 440 SP */
|
7442 | 80d11f44 | j_mayer | POWERPC_DEF("440SP", CPU_POWERPC_440SP, 440EP), |
7443 | 80d11f44 | j_mayer | #endif
|
7444 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7445 | a750fc0b | j_mayer | /* PowerPC 440 SP2 */
|
7446 | 80d11f44 | j_mayer | POWERPC_DEF("440SP2", CPU_POWERPC_440SP2, 440EP), |
7447 | 80d11f44 | j_mayer | #endif
|
7448 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7449 | a750fc0b | j_mayer | /* PowerPC 440 SPE */
|
7450 | 80d11f44 | j_mayer | POWERPC_DEF("440SPE", CPU_POWERPC_440SPE, 440EP), |
7451 | 80d11f44 | j_mayer | #endif
|
7452 | a750fc0b | j_mayer | /* PowerPC 460 family */
|
7453 | a750fc0b | j_mayer | #if defined (TODO)
|
7454 | a750fc0b | j_mayer | /* Generic PowerPC 464 */
|
7455 | 80d11f44 | j_mayer | POWERPC_DEF("464", CPU_POWERPC_464, 460), |
7456 | a750fc0b | j_mayer | #endif
|
7457 | a750fc0b | j_mayer | /* PowerPC 464 microcontrolers */
|
7458 | a750fc0b | j_mayer | #if defined (TODO)
|
7459 | a750fc0b | j_mayer | /* PowerPC 464H90 */
|
7460 | 80d11f44 | j_mayer | POWERPC_DEF("464H90", CPU_POWERPC_464H90, 460), |
7461 | a750fc0b | j_mayer | #endif
|
7462 | a750fc0b | j_mayer | #if defined (TODO)
|
7463 | a750fc0b | j_mayer | /* PowerPC 464H90F */
|
7464 | 80d11f44 | j_mayer | POWERPC_DEF("464H90F", CPU_POWERPC_464H90F, 460F), |
7465 | a750fc0b | j_mayer | #endif
|
7466 | a750fc0b | j_mayer | /* Freescale embedded PowerPC cores */
|
7467 | 80d11f44 | j_mayer | /* MPC5xx family (aka RCPU) */
|
7468 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7469 | 80d11f44 | j_mayer | /* Generic MPC5xx core */
|
7470 | 80d11f44 | j_mayer | POWERPC_DEF("MPC5xx", CPU_POWERPC_MPC5xx, MPC5xx),
|
7471 | 80d11f44 | j_mayer | #endif
|
7472 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7473 | 80d11f44 | j_mayer | /* Codename for MPC5xx core */
|
7474 | 80d11f44 | j_mayer | POWERPC_DEF("RCPU", CPU_POWERPC_MPC5xx, MPC5xx),
|
7475 | 80d11f44 | j_mayer | #endif
|
7476 | 80d11f44 | j_mayer | /* MPC5xx microcontrollers */
|
7477 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7478 | 80d11f44 | j_mayer | /* MGT560 */
|
7479 | 80d11f44 | j_mayer | POWERPC_DEF("MGT560", CPU_POWERPC_MGT560, MPC5xx),
|
7480 | 80d11f44 | j_mayer | #endif
|
7481 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7482 | 80d11f44 | j_mayer | /* MPC509 */
|
7483 | 80d11f44 | j_mayer | POWERPC_DEF("MPC509", CPU_POWERPC_MPC509, MPC5xx),
|
7484 | 80d11f44 | j_mayer | #endif
|
7485 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7486 | 80d11f44 | j_mayer | /* MPC533 */
|
7487 | 80d11f44 | j_mayer | POWERPC_DEF("MPC533", CPU_POWERPC_MPC533, MPC5xx),
|
7488 | 80d11f44 | j_mayer | #endif
|
7489 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7490 | 80d11f44 | j_mayer | /* MPC534 */
|
7491 | 80d11f44 | j_mayer | POWERPC_DEF("MPC534", CPU_POWERPC_MPC534, MPC5xx),
|
7492 | 80d11f44 | j_mayer | #endif
|
7493 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7494 | 80d11f44 | j_mayer | /* MPC555 */
|
7495 | 80d11f44 | j_mayer | POWERPC_DEF("MPC555", CPU_POWERPC_MPC555, MPC5xx),
|
7496 | 80d11f44 | j_mayer | #endif
|
7497 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7498 | 80d11f44 | j_mayer | /* MPC556 */
|
7499 | 80d11f44 | j_mayer | POWERPC_DEF("MPC556", CPU_POWERPC_MPC556, MPC5xx),
|
7500 | 80d11f44 | j_mayer | #endif
|
7501 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7502 | 80d11f44 | j_mayer | /* MPC560 */
|
7503 | 80d11f44 | j_mayer | POWERPC_DEF("MPC560", CPU_POWERPC_MPC560, MPC5xx),
|
7504 | 80d11f44 | j_mayer | #endif
|
7505 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7506 | 80d11f44 | j_mayer | /* MPC561 */
|
7507 | 80d11f44 | j_mayer | POWERPC_DEF("MPC561", CPU_POWERPC_MPC561, MPC5xx),
|
7508 | 80d11f44 | j_mayer | #endif
|
7509 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7510 | 80d11f44 | j_mayer | /* MPC562 */
|
7511 | 80d11f44 | j_mayer | POWERPC_DEF("MPC562", CPU_POWERPC_MPC562, MPC5xx),
|
7512 | 80d11f44 | j_mayer | #endif
|
7513 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7514 | 80d11f44 | j_mayer | /* MPC563 */
|
7515 | 80d11f44 | j_mayer | POWERPC_DEF("MPC563", CPU_POWERPC_MPC563, MPC5xx),
|
7516 | 80d11f44 | j_mayer | #endif
|
7517 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7518 | 80d11f44 | j_mayer | /* MPC564 */
|
7519 | 80d11f44 | j_mayer | POWERPC_DEF("MPC564", CPU_POWERPC_MPC564, MPC5xx),
|
7520 | 80d11f44 | j_mayer | #endif
|
7521 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7522 | 80d11f44 | j_mayer | /* MPC565 */
|
7523 | 80d11f44 | j_mayer | POWERPC_DEF("MPC565", CPU_POWERPC_MPC565, MPC5xx),
|
7524 | 80d11f44 | j_mayer | #endif
|
7525 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7526 | 80d11f44 | j_mayer | /* MPC566 */
|
7527 | 80d11f44 | j_mayer | POWERPC_DEF("MPC566", CPU_POWERPC_MPC566, MPC5xx),
|
7528 | 80d11f44 | j_mayer | #endif
|
7529 | 80d11f44 | j_mayer | /* MPC8xx family (aka PowerQUICC) */
|
7530 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7531 | 80d11f44 | j_mayer | /* Generic MPC8xx core */
|
7532 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8xx", CPU_POWERPC_MPC8xx, MPC8xx),
|
7533 | 80d11f44 | j_mayer | #endif
|
7534 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7535 | 80d11f44 | j_mayer | /* Codename for MPC8xx core */
|
7536 | 80d11f44 | j_mayer | POWERPC_DEF("PowerQUICC", CPU_POWERPC_MPC8xx, MPC8xx),
|
7537 | 80d11f44 | j_mayer | #endif
|
7538 | 80d11f44 | j_mayer | /* MPC8xx microcontrollers */
|
7539 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7540 | 80d11f44 | j_mayer | /* MGT823 */
|
7541 | 80d11f44 | j_mayer | POWERPC_DEF("MGT823", CPU_POWERPC_MGT823, MPC8xx),
|
7542 | 80d11f44 | j_mayer | #endif
|
7543 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7544 | 80d11f44 | j_mayer | /* MPC821 */
|
7545 | 80d11f44 | j_mayer | POWERPC_DEF("MPC821", CPU_POWERPC_MPC821, MPC8xx),
|
7546 | 80d11f44 | j_mayer | #endif
|
7547 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7548 | 80d11f44 | j_mayer | /* MPC823 */
|
7549 | 80d11f44 | j_mayer | POWERPC_DEF("MPC823", CPU_POWERPC_MPC823, MPC8xx),
|
7550 | 80d11f44 | j_mayer | #endif
|
7551 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7552 | 80d11f44 | j_mayer | /* MPC850 */
|
7553 | 80d11f44 | j_mayer | POWERPC_DEF("MPC850", CPU_POWERPC_MPC850, MPC8xx),
|
7554 | 80d11f44 | j_mayer | #endif
|
7555 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7556 | 80d11f44 | j_mayer | /* MPC852T */
|
7557 | 80d11f44 | j_mayer | POWERPC_DEF("MPC852T", CPU_POWERPC_MPC852T, MPC8xx),
|
7558 | 80d11f44 | j_mayer | #endif
|
7559 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7560 | 80d11f44 | j_mayer | /* MPC855T */
|
7561 | 80d11f44 | j_mayer | POWERPC_DEF("MPC855T", CPU_POWERPC_MPC855T, MPC8xx),
|
7562 | 80d11f44 | j_mayer | #endif
|
7563 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7564 | 80d11f44 | j_mayer | /* MPC857 */
|
7565 | 80d11f44 | j_mayer | POWERPC_DEF("MPC857", CPU_POWERPC_MPC857, MPC8xx),
|
7566 | 80d11f44 | j_mayer | #endif
|
7567 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7568 | 80d11f44 | j_mayer | /* MPC859 */
|
7569 | 80d11f44 | j_mayer | POWERPC_DEF("MPC859", CPU_POWERPC_MPC859, MPC8xx),
|
7570 | 80d11f44 | j_mayer | #endif
|
7571 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7572 | 80d11f44 | j_mayer | /* MPC860 */
|
7573 | 80d11f44 | j_mayer | POWERPC_DEF("MPC860", CPU_POWERPC_MPC860, MPC8xx),
|
7574 | 80d11f44 | j_mayer | #endif
|
7575 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7576 | 80d11f44 | j_mayer | /* MPC862 */
|
7577 | 80d11f44 | j_mayer | POWERPC_DEF("MPC862", CPU_POWERPC_MPC862, MPC8xx),
|
7578 | 80d11f44 | j_mayer | #endif
|
7579 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7580 | 80d11f44 | j_mayer | /* MPC866 */
|
7581 | 80d11f44 | j_mayer | POWERPC_DEF("MPC866", CPU_POWERPC_MPC866, MPC8xx),
|
7582 | 80d11f44 | j_mayer | #endif
|
7583 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7584 | 80d11f44 | j_mayer | /* MPC870 */
|
7585 | 80d11f44 | j_mayer | POWERPC_DEF("MPC870", CPU_POWERPC_MPC870, MPC8xx),
|
7586 | 80d11f44 | j_mayer | #endif
|
7587 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7588 | 80d11f44 | j_mayer | /* MPC875 */
|
7589 | 80d11f44 | j_mayer | POWERPC_DEF("MPC875", CPU_POWERPC_MPC875, MPC8xx),
|
7590 | 80d11f44 | j_mayer | #endif
|
7591 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7592 | 80d11f44 | j_mayer | /* MPC880 */
|
7593 | 80d11f44 | j_mayer | POWERPC_DEF("MPC880", CPU_POWERPC_MPC880, MPC8xx),
|
7594 | 80d11f44 | j_mayer | #endif
|
7595 | 80d11f44 | j_mayer | #if defined(TODO_USER_ONLY)
|
7596 | 80d11f44 | j_mayer | /* MPC885 */
|
7597 | 80d11f44 | j_mayer | POWERPC_DEF("MPC885", CPU_POWERPC_MPC885, MPC8xx),
|
7598 | 80d11f44 | j_mayer | #endif
|
7599 | 80d11f44 | j_mayer | /* MPC82xx family (aka PowerQUICC-II) */
|
7600 | 80d11f44 | j_mayer | /* Generic MPC52xx core */
|
7601 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC52xx",
|
7602 | 80d11f44 | j_mayer | CPU_POWERPC_MPC52xx, POWERPC_SVR_52xx, G2LE), |
7603 | 80d11f44 | j_mayer | /* Generic MPC82xx core */
|
7604 | 80d11f44 | j_mayer | POWERPC_DEF("MPC82xx", CPU_POWERPC_MPC82xx, G2),
|
7605 | 80d11f44 | j_mayer | /* Codename for MPC82xx */
|
7606 | 80d11f44 | j_mayer | POWERPC_DEF("PowerQUICC-II", CPU_POWERPC_MPC82xx, G2),
|
7607 | 80d11f44 | j_mayer | /* PowerPC G2 core */
|
7608 | 80d11f44 | j_mayer | POWERPC_DEF("G2", CPU_POWERPC_G2, G2),
|
7609 | 80d11f44 | j_mayer | /* PowerPC G2 H4 core */
|
7610 | 80d11f44 | j_mayer | POWERPC_DEF("G2H4", CPU_POWERPC_G2H4, G2),
|
7611 | 80d11f44 | j_mayer | /* PowerPC G2 GP core */
|
7612 | 80d11f44 | j_mayer | POWERPC_DEF("G2GP", CPU_POWERPC_G2gp, G2),
|
7613 | 80d11f44 | j_mayer | /* PowerPC G2 LS core */
|
7614 | 80d11f44 | j_mayer | POWERPC_DEF("G2LS", CPU_POWERPC_G2ls, G2),
|
7615 | 80d11f44 | j_mayer | /* PowerPC G2 HiP3 core */
|
7616 | 80d11f44 | j_mayer | POWERPC_DEF("G2HiP3", CPU_POWERPC_G2_HIP3, G2),
|
7617 | 80d11f44 | j_mayer | /* PowerPC G2 HiP4 core */
|
7618 | 80d11f44 | j_mayer | POWERPC_DEF("G2HiP4", CPU_POWERPC_G2_HIP4, G2),
|
7619 | 80d11f44 | j_mayer | /* PowerPC MPC603 core */
|
7620 | 80d11f44 | j_mayer | POWERPC_DEF("MPC603", CPU_POWERPC_MPC603, 603E), |
7621 | 80d11f44 | j_mayer | /* PowerPC G2le core (same as G2 plus little-endian mode support) */
|
7622 | 80d11f44 | j_mayer | POWERPC_DEF("G2le", CPU_POWERPC_G2LE, G2LE),
|
7623 | 80d11f44 | j_mayer | /* PowerPC G2LE GP core */
|
7624 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP", CPU_POWERPC_G2LEgp, G2LE),
|
7625 | 80d11f44 | j_mayer | /* PowerPC G2LE LS core */
|
7626 | 80d11f44 | j_mayer | POWERPC_DEF("G2leLS", CPU_POWERPC_G2LEls, G2LE),
|
7627 | 80d11f44 | j_mayer | /* PowerPC G2LE GP1 core */
|
7628 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP1", CPU_POWERPC_G2LEgp1, G2LE),
|
7629 | 80d11f44 | j_mayer | /* PowerPC G2LE GP3 core */
|
7630 | 80d11f44 | j_mayer | POWERPC_DEF("G2leGP3", CPU_POWERPC_G2LEgp1, G2LE),
|
7631 | 80d11f44 | j_mayer | /* PowerPC MPC603 microcontrollers */
|
7632 | 80d11f44 | j_mayer | /* MPC8240 */
|
7633 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8240", CPU_POWERPC_MPC8240, 603E), |
7634 | 80d11f44 | j_mayer | /* PowerPC G2 microcontrollers */
|
7635 | 082c6681 | j_mayer | #if defined(TODO)
|
7636 | 80d11f44 | j_mayer | /* MPC5121 */
|
7637 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5121",
|
7638 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5121, POWERPC_SVR_5121, G2LE), |
7639 | 80d11f44 | j_mayer | #endif
|
7640 | 80d11f44 | j_mayer | /* MPC5200 */
|
7641 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200",
|
7642 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200, POWERPC_SVR_5200, G2LE), |
7643 | 80d11f44 | j_mayer | /* MPC5200 v1.0 */
|
7644 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v10",
|
7645 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v10, POWERPC_SVR_5200_v10, G2LE), |
7646 | 80d11f44 | j_mayer | /* MPC5200 v1.1 */
|
7647 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v11",
|
7648 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v11, POWERPC_SVR_5200_v11, G2LE), |
7649 | 80d11f44 | j_mayer | /* MPC5200 v1.2 */
|
7650 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200_v12",
|
7651 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200_v12, POWERPC_SVR_5200_v12, G2LE), |
7652 | 80d11f44 | j_mayer | /* MPC5200B */
|
7653 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B",
|
7654 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B, POWERPC_SVR_5200B, G2LE), |
7655 | 80d11f44 | j_mayer | /* MPC5200B v2.0 */
|
7656 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B_v20",
|
7657 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B_v20, POWERPC_SVR_5200B_v20, G2LE), |
7658 | 80d11f44 | j_mayer | /* MPC5200B v2.1 */
|
7659 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5200B_v21",
|
7660 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5200B_v21, POWERPC_SVR_5200B_v21, G2LE), |
7661 | 80d11f44 | j_mayer | /* MPC8241 */
|
7662 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8241", CPU_POWERPC_MPC8241, G2),
|
7663 | 80d11f44 | j_mayer | /* MPC8245 */
|
7664 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8245", CPU_POWERPC_MPC8245, G2),
|
7665 | 80d11f44 | j_mayer | /* MPC8247 */
|
7666 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8247", CPU_POWERPC_MPC8247, G2LE),
|
7667 | 80d11f44 | j_mayer | /* MPC8248 */
|
7668 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8248", CPU_POWERPC_MPC8248, G2LE),
|
7669 | 80d11f44 | j_mayer | /* MPC8250 */
|
7670 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250", CPU_POWERPC_MPC8250, G2),
|
7671 | 80d11f44 | j_mayer | /* MPC8250 HiP3 */
|
7672 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250_HiP3", CPU_POWERPC_MPC8250_HiP3, G2),
|
7673 | 80d11f44 | j_mayer | /* MPC8250 HiP4 */
|
7674 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8250_HiP4", CPU_POWERPC_MPC8250_HiP4, G2),
|
7675 | 80d11f44 | j_mayer | /* MPC8255 */
|
7676 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255", CPU_POWERPC_MPC8255, G2),
|
7677 | 80d11f44 | j_mayer | /* MPC8255 HiP3 */
|
7678 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255_HiP3", CPU_POWERPC_MPC8255_HiP3, G2),
|
7679 | 80d11f44 | j_mayer | /* MPC8255 HiP4 */
|
7680 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8255_HiP4", CPU_POWERPC_MPC8255_HiP4, G2),
|
7681 | 80d11f44 | j_mayer | /* MPC8260 */
|
7682 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260", CPU_POWERPC_MPC8260, G2),
|
7683 | 80d11f44 | j_mayer | /* MPC8260 HiP3 */
|
7684 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260_HiP3", CPU_POWERPC_MPC8260_HiP3, G2),
|
7685 | 80d11f44 | j_mayer | /* MPC8260 HiP4 */
|
7686 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8260_HiP4", CPU_POWERPC_MPC8260_HiP4, G2),
|
7687 | 80d11f44 | j_mayer | /* MPC8264 */
|
7688 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264", CPU_POWERPC_MPC8264, G2),
|
7689 | 80d11f44 | j_mayer | /* MPC8264 HiP3 */
|
7690 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264_HiP3", CPU_POWERPC_MPC8264_HiP3, G2),
|
7691 | 80d11f44 | j_mayer | /* MPC8264 HiP4 */
|
7692 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8264_HiP4", CPU_POWERPC_MPC8264_HiP4, G2),
|
7693 | 80d11f44 | j_mayer | /* MPC8265 */
|
7694 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265", CPU_POWERPC_MPC8265, G2),
|
7695 | 80d11f44 | j_mayer | /* MPC8265 HiP3 */
|
7696 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265_HiP3", CPU_POWERPC_MPC8265_HiP3, G2),
|
7697 | 80d11f44 | j_mayer | /* MPC8265 HiP4 */
|
7698 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8265_HiP4", CPU_POWERPC_MPC8265_HiP4, G2),
|
7699 | 80d11f44 | j_mayer | /* MPC8266 */
|
7700 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266", CPU_POWERPC_MPC8266, G2),
|
7701 | 80d11f44 | j_mayer | /* MPC8266 HiP3 */
|
7702 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266_HiP3", CPU_POWERPC_MPC8266_HiP3, G2),
|
7703 | 80d11f44 | j_mayer | /* MPC8266 HiP4 */
|
7704 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8266_HiP4", CPU_POWERPC_MPC8266_HiP4, G2),
|
7705 | 80d11f44 | j_mayer | /* MPC8270 */
|
7706 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8270", CPU_POWERPC_MPC8270, G2LE),
|
7707 | 80d11f44 | j_mayer | /* MPC8271 */
|
7708 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8271", CPU_POWERPC_MPC8271, G2LE),
|
7709 | 80d11f44 | j_mayer | /* MPC8272 */
|
7710 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8272", CPU_POWERPC_MPC8272, G2LE),
|
7711 | 80d11f44 | j_mayer | /* MPC8275 */
|
7712 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8275", CPU_POWERPC_MPC8275, G2LE),
|
7713 | 80d11f44 | j_mayer | /* MPC8280 */
|
7714 | 80d11f44 | j_mayer | POWERPC_DEF("MPC8280", CPU_POWERPC_MPC8280, G2LE),
|
7715 | a750fc0b | j_mayer | /* e200 family */
|
7716 | a750fc0b | j_mayer | /* Generic PowerPC e200 core */
|
7717 | 80d11f44 | j_mayer | POWERPC_DEF("e200", CPU_POWERPC_e200, e200),
|
7718 | 80d11f44 | j_mayer | /* Generic MPC55xx core */
|
7719 | 80d11f44 | j_mayer | #if defined (TODO)
|
7720 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC55xx",
|
7721 | 80d11f44 | j_mayer | CPU_POWERPC_MPC55xx, POWERPC_SVR_55xx, e200), |
7722 | a750fc0b | j_mayer | #endif
|
7723 | a750fc0b | j_mayer | #if defined (TODO)
|
7724 | 80d11f44 | j_mayer | /* PowerPC e200z0 core */
|
7725 | 80d11f44 | j_mayer | POWERPC_DEF("e200z0", CPU_POWERPC_e200z0, e200),
|
7726 | a750fc0b | j_mayer | #endif
|
7727 | a750fc0b | j_mayer | #if defined (TODO)
|
7728 | 80d11f44 | j_mayer | /* PowerPC e200z1 core */
|
7729 | 80d11f44 | j_mayer | POWERPC_DEF("e200z1", CPU_POWERPC_e200z1, e200),
|
7730 | 80d11f44 | j_mayer | #endif
|
7731 | 80d11f44 | j_mayer | #if defined (TODO)
|
7732 | 80d11f44 | j_mayer | /* PowerPC e200z3 core */
|
7733 | 80d11f44 | j_mayer | POWERPC_DEF("e200z3", CPU_POWERPC_e200z3, e200),
|
7734 | 80d11f44 | j_mayer | #endif
|
7735 | 80d11f44 | j_mayer | /* PowerPC e200z5 core */
|
7736 | 80d11f44 | j_mayer | POWERPC_DEF("e200z5", CPU_POWERPC_e200z5, e200),
|
7737 | a750fc0b | j_mayer | /* PowerPC e200z6 core */
|
7738 | 80d11f44 | j_mayer | POWERPC_DEF("e200z6", CPU_POWERPC_e200z6, e200),
|
7739 | 80d11f44 | j_mayer | /* PowerPC e200 microcontrollers */
|
7740 | 80d11f44 | j_mayer | #if defined (TODO)
|
7741 | 80d11f44 | j_mayer | /* MPC5514E */
|
7742 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E",
|
7743 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E, POWERPC_SVR_5514E, e200), |
7744 | a750fc0b | j_mayer | #endif
|
7745 | a750fc0b | j_mayer | #if defined (TODO)
|
7746 | 80d11f44 | j_mayer | /* MPC5514E v0 */
|
7747 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E_v0",
|
7748 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E_v0, POWERPC_SVR_5514E_v0, e200), |
7749 | a750fc0b | j_mayer | #endif
|
7750 | a750fc0b | j_mayer | #if defined (TODO)
|
7751 | 80d11f44 | j_mayer | /* MPC5514E v1 */
|
7752 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514E_v1",
|
7753 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514E_v1, POWERPC_SVR_5514E_v1, e200), |
7754 | a750fc0b | j_mayer | #endif
|
7755 | a750fc0b | j_mayer | #if defined (TODO)
|
7756 | 80d11f44 | j_mayer | /* MPC5514G */
|
7757 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G",
|
7758 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G, POWERPC_SVR_5514G, e200), |
7759 | a750fc0b | j_mayer | #endif
|
7760 | a750fc0b | j_mayer | #if defined (TODO)
|
7761 | 80d11f44 | j_mayer | /* MPC5514G v0 */
|
7762 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G_v0",
|
7763 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G_v0, POWERPC_SVR_5514G_v0, e200), |
7764 | a750fc0b | j_mayer | #endif
|
7765 | a750fc0b | j_mayer | #if defined (TODO)
|
7766 | 80d11f44 | j_mayer | /* MPC5514G v1 */
|
7767 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5514G_v1",
|
7768 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5514G_v1, POWERPC_SVR_5514G_v1, e200), |
7769 | a750fc0b | j_mayer | #endif
|
7770 | a750fc0b | j_mayer | #if defined (TODO)
|
7771 | 80d11f44 | j_mayer | /* MPC5515S */
|
7772 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5515S",
|
7773 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5515S, POWERPC_SVR_5515S, e200), |
7774 | a750fc0b | j_mayer | #endif
|
7775 | a750fc0b | j_mayer | #if defined (TODO)
|
7776 | 80d11f44 | j_mayer | /* MPC5516E */
|
7777 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E",
|
7778 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E, POWERPC_SVR_5516E, e200), |
7779 | a750fc0b | j_mayer | #endif
|
7780 | a750fc0b | j_mayer | #if defined (TODO)
|
7781 | 80d11f44 | j_mayer | /* MPC5516E v0 */
|
7782 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E_v0",
|
7783 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E_v0, POWERPC_SVR_5516E_v0, e200), |
7784 | a750fc0b | j_mayer | #endif
|
7785 | a750fc0b | j_mayer | #if defined (TODO)
|
7786 | 80d11f44 | j_mayer | /* MPC5516E v1 */
|
7787 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516E_v1",
|
7788 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516E_v1, POWERPC_SVR_5516E_v1, e200), |
7789 | a750fc0b | j_mayer | #endif
|
7790 | a750fc0b | j_mayer | #if defined (TODO)
|
7791 | 80d11f44 | j_mayer | /* MPC5516G */
|
7792 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G",
|
7793 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G, POWERPC_SVR_5516G, e200), |
7794 | a750fc0b | j_mayer | #endif
|
7795 | a750fc0b | j_mayer | #if defined (TODO)
|
7796 | 80d11f44 | j_mayer | /* MPC5516G v0 */
|
7797 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G_v0",
|
7798 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G_v0, POWERPC_SVR_5516G_v0, e200), |
7799 | a750fc0b | j_mayer | #endif
|
7800 | a750fc0b | j_mayer | #if defined (TODO)
|
7801 | 80d11f44 | j_mayer | /* MPC5516G v1 */
|
7802 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516G_v1",
|
7803 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516G_v1, POWERPC_SVR_5516G_v1, e200), |
7804 | a750fc0b | j_mayer | #endif
|
7805 | a750fc0b | j_mayer | #if defined (TODO)
|
7806 | 80d11f44 | j_mayer | /* MPC5516S */
|
7807 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5516S",
|
7808 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5516S, POWERPC_SVR_5516S, e200), |
7809 | a750fc0b | j_mayer | #endif
|
7810 | a750fc0b | j_mayer | #if defined (TODO)
|
7811 | 80d11f44 | j_mayer | /* MPC5533 */
|
7812 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5533",
|
7813 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5533, POWERPC_SVR_5533, e200), |
7814 | a750fc0b | j_mayer | #endif
|
7815 | a750fc0b | j_mayer | #if defined (TODO)
|
7816 | 80d11f44 | j_mayer | /* MPC5534 */
|
7817 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5534",
|
7818 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5534, POWERPC_SVR_5534, e200), |
7819 | a750fc0b | j_mayer | #endif
|
7820 | 80d11f44 | j_mayer | #if defined (TODO)
|
7821 | 80d11f44 | j_mayer | /* MPC5553 */
|
7822 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5553",
|
7823 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5553, POWERPC_SVR_5553, e200), |
7824 | 80d11f44 | j_mayer | #endif
|
7825 | 80d11f44 | j_mayer | #if defined (TODO)
|
7826 | 80d11f44 | j_mayer | /* MPC5554 */
|
7827 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5554",
|
7828 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5554, POWERPC_SVR_5554, e200), |
7829 | 80d11f44 | j_mayer | #endif
|
7830 | 80d11f44 | j_mayer | #if defined (TODO)
|
7831 | 80d11f44 | j_mayer | /* MPC5561 */
|
7832 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5561",
|
7833 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5561, POWERPC_SVR_5561, e200), |
7834 | 80d11f44 | j_mayer | #endif
|
7835 | 80d11f44 | j_mayer | #if defined (TODO)
|
7836 | 80d11f44 | j_mayer | /* MPC5565 */
|
7837 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5565",
|
7838 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5565, POWERPC_SVR_5565, e200), |
7839 | 80d11f44 | j_mayer | #endif
|
7840 | 80d11f44 | j_mayer | #if defined (TODO)
|
7841 | 80d11f44 | j_mayer | /* MPC5566 */
|
7842 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5566",
|
7843 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5566, POWERPC_SVR_5566, e200), |
7844 | 80d11f44 | j_mayer | #endif
|
7845 | 80d11f44 | j_mayer | #if defined (TODO)
|
7846 | 80d11f44 | j_mayer | /* MPC5567 */
|
7847 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC5567",
|
7848 | 80d11f44 | j_mayer | CPU_POWERPC_MPC5567, POWERPC_SVR_5567, e200), |
7849 | 80d11f44 | j_mayer | #endif
|
7850 | 80d11f44 | j_mayer | /* e300 family */
|
7851 | 80d11f44 | j_mayer | /* Generic PowerPC e300 core */
|
7852 | 80d11f44 | j_mayer | POWERPC_DEF("e300", CPU_POWERPC_e300, e300),
|
7853 | 80d11f44 | j_mayer | /* PowerPC e300c1 core */
|
7854 | 80d11f44 | j_mayer | POWERPC_DEF("e300c1", CPU_POWERPC_e300c1, e300),
|
7855 | 80d11f44 | j_mayer | /* PowerPC e300c2 core */
|
7856 | 80d11f44 | j_mayer | POWERPC_DEF("e300c2", CPU_POWERPC_e300c2, e300),
|
7857 | 80d11f44 | j_mayer | /* PowerPC e300c3 core */
|
7858 | 80d11f44 | j_mayer | POWERPC_DEF("e300c3", CPU_POWERPC_e300c3, e300),
|
7859 | 80d11f44 | j_mayer | /* PowerPC e300c4 core */
|
7860 | 80d11f44 | j_mayer | POWERPC_DEF("e300c4", CPU_POWERPC_e300c4, e300),
|
7861 | 80d11f44 | j_mayer | /* PowerPC e300 microcontrollers */
|
7862 | 80d11f44 | j_mayer | #if defined (TODO)
|
7863 | 80d11f44 | j_mayer | /* MPC8313 */
|
7864 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8313",
|
7865 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8313, POWERPC_SVR_8313, e300), |
7866 | 80d11f44 | j_mayer | #endif
|
7867 | 80d11f44 | j_mayer | #if defined (TODO)
|
7868 | 80d11f44 | j_mayer | /* MPC8313E */
|
7869 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8313E",
|
7870 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8313E, POWERPC_SVR_8313E, e300), |
7871 | 80d11f44 | j_mayer | #endif
|
7872 | 80d11f44 | j_mayer | #if defined (TODO)
|
7873 | 80d11f44 | j_mayer | /* MPC8314 */
|
7874 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8314",
|
7875 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8314, POWERPC_SVR_8314, e300), |
7876 | 80d11f44 | j_mayer | #endif
|
7877 | 80d11f44 | j_mayer | #if defined (TODO)
|
7878 | 80d11f44 | j_mayer | /* MPC8314E */
|
7879 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8314E",
|
7880 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8314E, POWERPC_SVR_8314E, e300), |
7881 | 80d11f44 | j_mayer | #endif
|
7882 | 80d11f44 | j_mayer | #if defined (TODO)
|
7883 | 80d11f44 | j_mayer | /* MPC8315 */
|
7884 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8315",
|
7885 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8315, POWERPC_SVR_8315, e300), |
7886 | 80d11f44 | j_mayer | #endif
|
7887 | 80d11f44 | j_mayer | #if defined (TODO)
|
7888 | 80d11f44 | j_mayer | /* MPC8315E */
|
7889 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8315E",
|
7890 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8315E, POWERPC_SVR_8315E, e300), |
7891 | 80d11f44 | j_mayer | #endif
|
7892 | 80d11f44 | j_mayer | #if defined (TODO)
|
7893 | 80d11f44 | j_mayer | /* MPC8321 */
|
7894 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8321",
|
7895 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8321, POWERPC_SVR_8321, e300), |
7896 | 80d11f44 | j_mayer | #endif
|
7897 | 80d11f44 | j_mayer | #if defined (TODO)
|
7898 | 80d11f44 | j_mayer | /* MPC8321E */
|
7899 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8321E",
|
7900 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8321E, POWERPC_SVR_8321E, e300), |
7901 | 80d11f44 | j_mayer | #endif
|
7902 | 80d11f44 | j_mayer | #if defined (TODO)
|
7903 | 80d11f44 | j_mayer | /* MPC8323 */
|
7904 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8323",
|
7905 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8323, POWERPC_SVR_8323, e300), |
7906 | 80d11f44 | j_mayer | #endif
|
7907 | 80d11f44 | j_mayer | #if defined (TODO)
|
7908 | 80d11f44 | j_mayer | /* MPC8323E */
|
7909 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8323E",
|
7910 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8323E, POWERPC_SVR_8323E, e300), |
7911 | 80d11f44 | j_mayer | #endif
|
7912 | 80d11f44 | j_mayer | /* MPC8343A */
|
7913 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8343A",
|
7914 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8343A, POWERPC_SVR_8343A, e300), |
7915 | 80d11f44 | j_mayer | /* MPC8343EA */
|
7916 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8343EA",
|
7917 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8343EA, POWERPC_SVR_8343EA, e300), |
7918 | 80d11f44 | j_mayer | /* MPC8347A */
|
7919 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347A",
|
7920 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347A, POWERPC_SVR_8347A, e300), |
7921 | 80d11f44 | j_mayer | /* MPC8347AT */
|
7922 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347AT",
|
7923 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347AT, POWERPC_SVR_8347AT, e300), |
7924 | 80d11f44 | j_mayer | /* MPC8347AP */
|
7925 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347AP",
|
7926 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347AP, POWERPC_SVR_8347AP, e300), |
7927 | 80d11f44 | j_mayer | /* MPC8347EA */
|
7928 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EA",
|
7929 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347EA, POWERPC_SVR_8347EA, e300), |
7930 | 80d11f44 | j_mayer | /* MPC8347EAT */
|
7931 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EAT",
|
7932 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347EAT, POWERPC_SVR_8347EAT, e300), |
7933 | 80d11f44 | j_mayer | /* MPC8343EAP */
|
7934 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8347EAP",
|
7935 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8347EAP, POWERPC_SVR_8347EAP, e300), |
7936 | 80d11f44 | j_mayer | /* MPC8349 */
|
7937 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349",
|
7938 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8349, POWERPC_SVR_8349, e300), |
7939 | 80d11f44 | j_mayer | /* MPC8349A */
|
7940 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349A",
|
7941 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8349A, POWERPC_SVR_8349A, e300), |
7942 | 80d11f44 | j_mayer | /* MPC8349E */
|
7943 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349E",
|
7944 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8349E, POWERPC_SVR_8349E, e300), |
7945 | 80d11f44 | j_mayer | /* MPC8349EA */
|
7946 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8349EA",
|
7947 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8349EA, POWERPC_SVR_8349EA, e300), |
7948 | 80d11f44 | j_mayer | #if defined (TODO)
|
7949 | 80d11f44 | j_mayer | /* MPC8358E */
|
7950 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8358E",
|
7951 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8358E, POWERPC_SVR_8358E, e300), |
7952 | 80d11f44 | j_mayer | #endif
|
7953 | 80d11f44 | j_mayer | #if defined (TODO)
|
7954 | 80d11f44 | j_mayer | /* MPC8360E */
|
7955 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8360E",
|
7956 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8360E, POWERPC_SVR_8360E, e300), |
7957 | 80d11f44 | j_mayer | #endif
|
7958 | 80d11f44 | j_mayer | /* MPC8377 */
|
7959 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8377",
|
7960 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8377, POWERPC_SVR_8377, e300), |
7961 | 80d11f44 | j_mayer | /* MPC8377E */
|
7962 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8377E",
|
7963 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8377E, POWERPC_SVR_8377E, e300), |
7964 | 80d11f44 | j_mayer | /* MPC8378 */
|
7965 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8378",
|
7966 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8378, POWERPC_SVR_8378, e300), |
7967 | 80d11f44 | j_mayer | /* MPC8378E */
|
7968 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8378E",
|
7969 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8378E, POWERPC_SVR_8378E, e300), |
7970 | 80d11f44 | j_mayer | /* MPC8379 */
|
7971 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8379",
|
7972 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8379, POWERPC_SVR_8379, e300), |
7973 | 80d11f44 | j_mayer | /* MPC8379E */
|
7974 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8379E",
|
7975 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8379E, POWERPC_SVR_8379E, e300), |
7976 | 80d11f44 | j_mayer | /* e500 family */
|
7977 | 80d11f44 | j_mayer | /* PowerPC e500 core */
|
7978 | 80d11f44 | j_mayer | POWERPC_DEF("e500", CPU_POWERPC_e500, e500),
|
7979 | 80d11f44 | j_mayer | /* PowerPC e500 v1.0 core */
|
7980 | 80d11f44 | j_mayer | POWERPC_DEF("e500_v10", CPU_POWERPC_e500_v10, e500),
|
7981 | 80d11f44 | j_mayer | /* PowerPC e500 v2.0 core */
|
7982 | 80d11f44 | j_mayer | POWERPC_DEF("e500_v20", CPU_POWERPC_e500_v20, e500),
|
7983 | 80d11f44 | j_mayer | /* PowerPC e500v2 core */
|
7984 | 80d11f44 | j_mayer | POWERPC_DEF("e500v2", CPU_POWERPC_e500v2, e500),
|
7985 | 80d11f44 | j_mayer | /* PowerPC e500v2 v1.0 core */
|
7986 | 80d11f44 | j_mayer | POWERPC_DEF("e500v2_v10", CPU_POWERPC_e500v2_v10, e500),
|
7987 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.0 core */
|
7988 | 80d11f44 | j_mayer | POWERPC_DEF("e500v2_v20", CPU_POWERPC_e500v2_v20, e500),
|
7989 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.1 core */
|
7990 | 80d11f44 | j_mayer | POWERPC_DEF("e500v2_v21", CPU_POWERPC_e500v2_v21, e500),
|
7991 | 80d11f44 | j_mayer | /* PowerPC e500v2 v2.2 core */
|
7992 | 80d11f44 | j_mayer | POWERPC_DEF("e500v2_v22", CPU_POWERPC_e500v2_v22, e500),
|
7993 | 80d11f44 | j_mayer | /* PowerPC e500v2 v3.0 core */
|
7994 | 80d11f44 | j_mayer | POWERPC_DEF("e500v2_v30", CPU_POWERPC_e500v2_v30, e500),
|
7995 | 80d11f44 | j_mayer | /* PowerPC e500 microcontrollers */
|
7996 | 80d11f44 | j_mayer | /* MPC8533 */
|
7997 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533",
|
7998 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8533, POWERPC_SVR_8533, e500), |
7999 | 80d11f44 | j_mayer | /* MPC8533 v1.0 */
|
8000 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533_v10",
|
8001 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8533_v10, POWERPC_SVR_8533_v10, e500), |
8002 | 80d11f44 | j_mayer | /* MPC8533 v1.1 */
|
8003 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533_v11",
|
8004 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8533_v11, POWERPC_SVR_8533_v11, e500), |
8005 | 80d11f44 | j_mayer | /* MPC8533E */
|
8006 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E",
|
8007 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8533E, POWERPC_SVR_8533E, e500), |
8008 | 80d11f44 | j_mayer | /* MPC8533E v1.0 */
|
8009 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E_v10",
|
8010 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8533E_v10, POWERPC_SVR_8533E_v10, e500), |
8011 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8533E_v11",
|
8012 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8533E_v11, POWERPC_SVR_8533E_v11, e500), |
8013 | 80d11f44 | j_mayer | /* MPC8540 */
|
8014 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540",
|
8015 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8540, POWERPC_SVR_8540, e500), |
8016 | 80d11f44 | j_mayer | /* MPC8540 v1.0 */
|
8017 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v10",
|
8018 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8540_v10, POWERPC_SVR_8540_v10, e500), |
8019 | 80d11f44 | j_mayer | /* MPC8540 v2.0 */
|
8020 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v20",
|
8021 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8540_v20, POWERPC_SVR_8540_v20, e500), |
8022 | 80d11f44 | j_mayer | /* MPC8540 v2.1 */
|
8023 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8540_v21",
|
8024 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8540_v21, POWERPC_SVR_8540_v21, e500), |
8025 | 80d11f44 | j_mayer | /* MPC8541 */
|
8026 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541",
|
8027 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8541, POWERPC_SVR_8541, e500), |
8028 | 80d11f44 | j_mayer | /* MPC8541 v1.0 */
|
8029 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541_v10",
|
8030 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8541_v10, POWERPC_SVR_8541_v10, e500), |
8031 | 80d11f44 | j_mayer | /* MPC8541 v1.1 */
|
8032 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541_v11",
|
8033 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8541_v11, POWERPC_SVR_8541_v11, e500), |
8034 | 80d11f44 | j_mayer | /* MPC8541E */
|
8035 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E",
|
8036 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8541E, POWERPC_SVR_8541E, e500), |
8037 | 80d11f44 | j_mayer | /* MPC8541E v1.0 */
|
8038 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E_v10",
|
8039 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8541E_v10, POWERPC_SVR_8541E_v10, e500), |
8040 | 80d11f44 | j_mayer | /* MPC8541E v1.1 */
|
8041 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8541E_v11",
|
8042 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8541E_v11, POWERPC_SVR_8541E_v11, e500), |
8043 | 80d11f44 | j_mayer | /* MPC8543 */
|
8044 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543",
|
8045 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543, POWERPC_SVR_8543, e500), |
8046 | 80d11f44 | j_mayer | /* MPC8543 v1.0 */
|
8047 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v10",
|
8048 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543_v10, POWERPC_SVR_8543_v10, e500), |
8049 | 80d11f44 | j_mayer | /* MPC8543 v1.1 */
|
8050 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v11",
|
8051 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543_v11, POWERPC_SVR_8543_v11, e500), |
8052 | 80d11f44 | j_mayer | /* MPC8543 v2.0 */
|
8053 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v20",
|
8054 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543_v20, POWERPC_SVR_8543_v20, e500), |
8055 | 80d11f44 | j_mayer | /* MPC8543 v2.1 */
|
8056 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543_v21",
|
8057 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543_v21, POWERPC_SVR_8543_v21, e500), |
8058 | 80d11f44 | j_mayer | /* MPC8543E */
|
8059 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E",
|
8060 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543E, POWERPC_SVR_8543E, e500), |
8061 | 80d11f44 | j_mayer | /* MPC8543E v1.0 */
|
8062 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v10",
|
8063 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543E_v10, POWERPC_SVR_8543E_v10, e500), |
8064 | 80d11f44 | j_mayer | /* MPC8543E v1.1 */
|
8065 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v11",
|
8066 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543E_v11, POWERPC_SVR_8543E_v11, e500), |
8067 | 80d11f44 | j_mayer | /* MPC8543E v2.0 */
|
8068 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v20",
|
8069 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543E_v20, POWERPC_SVR_8543E_v20, e500), |
8070 | 80d11f44 | j_mayer | /* MPC8543E v2.1 */
|
8071 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8543E_v21",
|
8072 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8543E_v21, POWERPC_SVR_8543E_v21, e500), |
8073 | 80d11f44 | j_mayer | /* MPC8544 */
|
8074 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544",
|
8075 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8544, POWERPC_SVR_8544, e500), |
8076 | 80d11f44 | j_mayer | /* MPC8544 v1.0 */
|
8077 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544_v10",
|
8078 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8544_v10, POWERPC_SVR_8544_v10, e500), |
8079 | 80d11f44 | j_mayer | /* MPC8544 v1.1 */
|
8080 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544_v11",
|
8081 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8544_v11, POWERPC_SVR_8544_v11, e500), |
8082 | 80d11f44 | j_mayer | /* MPC8544E */
|
8083 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E",
|
8084 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8544E, POWERPC_SVR_8544E, e500), |
8085 | 80d11f44 | j_mayer | /* MPC8544E v1.0 */
|
8086 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E_v10",
|
8087 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8544E_v10, POWERPC_SVR_8544E_v10, e500), |
8088 | 80d11f44 | j_mayer | /* MPC8544E v1.1 */
|
8089 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8544E_v11",
|
8090 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8544E_v11, POWERPC_SVR_8544E_v11, e500), |
8091 | 80d11f44 | j_mayer | /* MPC8545 */
|
8092 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545",
|
8093 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8545, POWERPC_SVR_8545, e500), |
8094 | 80d11f44 | j_mayer | /* MPC8545 v2.0 */
|
8095 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545_v20",
|
8096 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8545_v20, POWERPC_SVR_8545_v20, e500), |
8097 | 80d11f44 | j_mayer | /* MPC8545 v2.1 */
|
8098 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545_v21",
|
8099 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8545_v21, POWERPC_SVR_8545_v21, e500), |
8100 | 80d11f44 | j_mayer | /* MPC8545E */
|
8101 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E",
|
8102 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8545E, POWERPC_SVR_8545E, e500), |
8103 | 80d11f44 | j_mayer | /* MPC8545E v2.0 */
|
8104 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E_v20",
|
8105 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8545E_v20, POWERPC_SVR_8545E_v20, e500), |
8106 | 80d11f44 | j_mayer | /* MPC8545E v2.1 */
|
8107 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8545E_v21",
|
8108 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8545E_v21, POWERPC_SVR_8545E_v21, e500), |
8109 | 80d11f44 | j_mayer | /* MPC8547E */
|
8110 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E",
|
8111 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8547E, POWERPC_SVR_8547E, e500), |
8112 | 80d11f44 | j_mayer | /* MPC8547E v2.0 */
|
8113 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E_v20",
|
8114 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8547E_v20, POWERPC_SVR_8547E_v20, e500), |
8115 | 80d11f44 | j_mayer | /* MPC8547E v2.1 */
|
8116 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8547E_v21",
|
8117 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8547E_v21, POWERPC_SVR_8547E_v21, e500), |
8118 | 80d11f44 | j_mayer | /* MPC8548 */
|
8119 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548",
|
8120 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548, POWERPC_SVR_8548, e500), |
8121 | 80d11f44 | j_mayer | /* MPC8548 v1.0 */
|
8122 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v10",
|
8123 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548_v10, POWERPC_SVR_8548_v10, e500), |
8124 | 80d11f44 | j_mayer | /* MPC8548 v1.1 */
|
8125 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v11",
|
8126 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548_v11, POWERPC_SVR_8548_v11, e500), |
8127 | 80d11f44 | j_mayer | /* MPC8548 v2.0 */
|
8128 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v20",
|
8129 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548_v20, POWERPC_SVR_8548_v20, e500), |
8130 | 80d11f44 | j_mayer | /* MPC8548 v2.1 */
|
8131 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548_v21",
|
8132 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548_v21, POWERPC_SVR_8548_v21, e500), |
8133 | 80d11f44 | j_mayer | /* MPC8548E */
|
8134 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E",
|
8135 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548E, POWERPC_SVR_8548E, e500), |
8136 | 80d11f44 | j_mayer | /* MPC8548E v1.0 */
|
8137 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v10",
|
8138 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548E_v10, POWERPC_SVR_8548E_v10, e500), |
8139 | 80d11f44 | j_mayer | /* MPC8548E v1.1 */
|
8140 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v11",
|
8141 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548E_v11, POWERPC_SVR_8548E_v11, e500), |
8142 | 80d11f44 | j_mayer | /* MPC8548E v2.0 */
|
8143 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v20",
|
8144 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548E_v20, POWERPC_SVR_8548E_v20, e500), |
8145 | 80d11f44 | j_mayer | /* MPC8548E v2.1 */
|
8146 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8548E_v21",
|
8147 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8548E_v21, POWERPC_SVR_8548E_v21, e500), |
8148 | 80d11f44 | j_mayer | /* MPC8555 */
|
8149 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555",
|
8150 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8555, POWERPC_SVR_8555, e500), |
8151 | 80d11f44 | j_mayer | /* MPC8555 v1.0 */
|
8152 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555_v10",
|
8153 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8555_v10, POWERPC_SVR_8555_v10, e500), |
8154 | 80d11f44 | j_mayer | /* MPC8555 v1.1 */
|
8155 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555_v11",
|
8156 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8555_v11, POWERPC_SVR_8555_v11, e500), |
8157 | 80d11f44 | j_mayer | /* MPC8555E */
|
8158 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E",
|
8159 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8555E, POWERPC_SVR_8555E, e500), |
8160 | 80d11f44 | j_mayer | /* MPC8555E v1.0 */
|
8161 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E_v10",
|
8162 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8555E_v10, POWERPC_SVR_8555E_v10, e500), |
8163 | 80d11f44 | j_mayer | /* MPC8555E v1.1 */
|
8164 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8555E_v11",
|
8165 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8555E_v11, POWERPC_SVR_8555E_v11, e500), |
8166 | 80d11f44 | j_mayer | /* MPC8560 */
|
8167 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560",
|
8168 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8560, POWERPC_SVR_8560, e500), |
8169 | 80d11f44 | j_mayer | /* MPC8560 v1.0 */
|
8170 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v10",
|
8171 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8560_v10, POWERPC_SVR_8560_v10, e500), |
8172 | 80d11f44 | j_mayer | /* MPC8560 v2.0 */
|
8173 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v20",
|
8174 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8560_v20, POWERPC_SVR_8560_v20, e500), |
8175 | 80d11f44 | j_mayer | /* MPC8560 v2.1 */
|
8176 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8560_v21",
|
8177 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8560_v21, POWERPC_SVR_8560_v21, e500), |
8178 | 80d11f44 | j_mayer | /* MPC8567 */
|
8179 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8567",
|
8180 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8567, POWERPC_SVR_8567, e500), |
8181 | 80d11f44 | j_mayer | /* MPC8567E */
|
8182 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8567E",
|
8183 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8567E, POWERPC_SVR_8567E, e500), |
8184 | 80d11f44 | j_mayer | /* MPC8568 */
|
8185 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8568",
|
8186 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8568, POWERPC_SVR_8568, e500), |
8187 | 80d11f44 | j_mayer | /* MPC8568E */
|
8188 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8568E",
|
8189 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8568E, POWERPC_SVR_8568E, e500), |
8190 | 80d11f44 | j_mayer | /* MPC8572 */
|
8191 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8572",
|
8192 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8572, POWERPC_SVR_8572, e500), |
8193 | 80d11f44 | j_mayer | /* MPC8572E */
|
8194 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8572E",
|
8195 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8572E, POWERPC_SVR_8572E, e500), |
8196 | 80d11f44 | j_mayer | /* e600 family */
|
8197 | 80d11f44 | j_mayer | /* PowerPC e600 core */
|
8198 | 80d11f44 | j_mayer | POWERPC_DEF("e600", CPU_POWERPC_e600, 7400), |
8199 | 80d11f44 | j_mayer | /* PowerPC e600 microcontrollers */
|
8200 | 80d11f44 | j_mayer | #if defined (TODO)
|
8201 | 80d11f44 | j_mayer | /* MPC8610 */
|
8202 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8610",
|
8203 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8610, POWERPC_SVR_8610, 7400),
|
8204 | 80d11f44 | j_mayer | #endif
|
8205 | 80d11f44 | j_mayer | /* MPC8641 */
|
8206 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8641",
|
8207 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8641, POWERPC_SVR_8641, 7400),
|
8208 | 80d11f44 | j_mayer | /* MPC8641D */
|
8209 | 80d11f44 | j_mayer | POWERPC_DEF_SVR("MPC8641D",
|
8210 | 80d11f44 | j_mayer | CPU_POWERPC_MPC8641D, POWERPC_SVR_8641D, 7400),
|
8211 | a750fc0b | j_mayer | /* 32 bits "classic" PowerPC */
|
8212 | a750fc0b | j_mayer | /* PowerPC 6xx family */
|
8213 | a750fc0b | j_mayer | /* PowerPC 601 */
|
8214 | bd928eba | j_mayer | POWERPC_DEF("601", CPU_POWERPC_601, 601v), |
8215 | c3e36823 | j_mayer | /* PowerPC 601v0 */
|
8216 | 082c6681 | j_mayer | POWERPC_DEF("601_v0", CPU_POWERPC_601_v0, 601), |
8217 | c3e36823 | j_mayer | /* PowerPC 601v1 */
|
8218 | 082c6681 | j_mayer | POWERPC_DEF("601_v1", CPU_POWERPC_601_v1, 601), |
8219 | 082c6681 | j_mayer | /* PowerPC 601v */
|
8220 | bd928eba | j_mayer | POWERPC_DEF("601v", CPU_POWERPC_601v, 601v), |
8221 | a750fc0b | j_mayer | /* PowerPC 601v2 */
|
8222 | 082c6681 | j_mayer | POWERPC_DEF("601_v2", CPU_POWERPC_601_v2, 601v), |
8223 | a750fc0b | j_mayer | /* PowerPC 602 */
|
8224 | 80d11f44 | j_mayer | POWERPC_DEF("602", CPU_POWERPC_602, 602), |
8225 | a750fc0b | j_mayer | /* PowerPC 603 */
|
8226 | 80d11f44 | j_mayer | POWERPC_DEF("603", CPU_POWERPC_603, 603), |
8227 | a750fc0b | j_mayer | /* Code name for PowerPC 603 */
|
8228 | 80d11f44 | j_mayer | POWERPC_DEF("Vanilla", CPU_POWERPC_603, 603), |
8229 | 082c6681 | j_mayer | /* PowerPC 603e (aka PID6) */
|
8230 | 80d11f44 | j_mayer | POWERPC_DEF("603e", CPU_POWERPC_603E, 603E), |
8231 | a750fc0b | j_mayer | /* Code name for PowerPC 603e */
|
8232 | 80d11f44 | j_mayer | POWERPC_DEF("Stretch", CPU_POWERPC_603E, 603E), |
8233 | a750fc0b | j_mayer | /* PowerPC 603e v1.1 */
|
8234 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.1", CPU_POWERPC_603E_v11, 603E), |
8235 | a750fc0b | j_mayer | /* PowerPC 603e v1.2 */
|
8236 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.2", CPU_POWERPC_603E_v12, 603E), |
8237 | a750fc0b | j_mayer | /* PowerPC 603e v1.3 */
|
8238 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.3", CPU_POWERPC_603E_v13, 603E), |
8239 | a750fc0b | j_mayer | /* PowerPC 603e v1.4 */
|
8240 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v1.4", CPU_POWERPC_603E_v14, 603E), |
8241 | a750fc0b | j_mayer | /* PowerPC 603e v2.2 */
|
8242 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v2.2", CPU_POWERPC_603E_v22, 603E), |
8243 | a750fc0b | j_mayer | /* PowerPC 603e v3 */
|
8244 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v3", CPU_POWERPC_603E_v3, 603E), |
8245 | a750fc0b | j_mayer | /* PowerPC 603e v4 */
|
8246 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v4", CPU_POWERPC_603E_v4, 603E), |
8247 | a750fc0b | j_mayer | /* PowerPC 603e v4.1 */
|
8248 | 80d11f44 | j_mayer | POWERPC_DEF("603e_v4.1", CPU_POWERPC_603E_v41, 603E), |
8249 | 082c6681 | j_mayer | /* PowerPC 603e (aka PID7) */
|
8250 | 80d11f44 | j_mayer | POWERPC_DEF("603e7", CPU_POWERPC_603E7, 603E), |
8251 | a750fc0b | j_mayer | /* PowerPC 603e7t */
|
8252 | 80d11f44 | j_mayer | POWERPC_DEF("603e7t", CPU_POWERPC_603E7t, 603E), |
8253 | a750fc0b | j_mayer | /* PowerPC 603e7v */
|
8254 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v", CPU_POWERPC_603E7v, 603E), |
8255 | a750fc0b | j_mayer | /* Code name for PowerPC 603ev */
|
8256 | 80d11f44 | j_mayer | POWERPC_DEF("Vaillant", CPU_POWERPC_603E7v, 603E), |
8257 | a750fc0b | j_mayer | /* PowerPC 603e7v1 */
|
8258 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v1", CPU_POWERPC_603E7v1, 603E), |
8259 | a750fc0b | j_mayer | /* PowerPC 603e7v2 */
|
8260 | 80d11f44 | j_mayer | POWERPC_DEF("603e7v2", CPU_POWERPC_603E7v2, 603E), |
8261 | 082c6681 | j_mayer | /* PowerPC 603p (aka PID7v) */
|
8262 | 082c6681 | j_mayer | POWERPC_DEF("603p", CPU_POWERPC_603P, 603E), |
8263 | 082c6681 | j_mayer | /* PowerPC 603r (aka PID7t) */
|
8264 | 80d11f44 | j_mayer | POWERPC_DEF("603r", CPU_POWERPC_603R, 603E), |
8265 | a750fc0b | j_mayer | /* Code name for PowerPC 603r */
|
8266 | 80d11f44 | j_mayer | POWERPC_DEF("Goldeneye", CPU_POWERPC_603R, 603E), |
8267 | a750fc0b | j_mayer | /* PowerPC 604 */
|
8268 | 80d11f44 | j_mayer | POWERPC_DEF("604", CPU_POWERPC_604, 604), |
8269 | 082c6681 | j_mayer | /* PowerPC 604e (aka PID9) */
|
8270 | 082c6681 | j_mayer | POWERPC_DEF("604e", CPU_POWERPC_604E, 604E), |
8271 | 082c6681 | j_mayer | /* Code name for PowerPC 604e */
|
8272 | 082c6681 | j_mayer | POWERPC_DEF("Sirocco", CPU_POWERPC_604E, 604E), |
8273 | a750fc0b | j_mayer | /* PowerPC 604e v1.0 */
|
8274 | 082c6681 | j_mayer | POWERPC_DEF("604e_v1.0", CPU_POWERPC_604E_v10, 604E), |
8275 | a750fc0b | j_mayer | /* PowerPC 604e v2.2 */
|
8276 | 082c6681 | j_mayer | POWERPC_DEF("604e_v2.2", CPU_POWERPC_604E_v22, 604E), |
8277 | a750fc0b | j_mayer | /* PowerPC 604e v2.4 */
|
8278 | 082c6681 | j_mayer | POWERPC_DEF("604e_v2.4", CPU_POWERPC_604E_v24, 604E), |
8279 | 082c6681 | j_mayer | /* PowerPC 604r (aka PIDA) */
|
8280 | 082c6681 | j_mayer | POWERPC_DEF("604r", CPU_POWERPC_604R, 604E), |
8281 | 082c6681 | j_mayer | /* Code name for PowerPC 604r */
|
8282 | 082c6681 | j_mayer | POWERPC_DEF("Mach5", CPU_POWERPC_604R, 604E), |
8283 | a750fc0b | j_mayer | #if defined(TODO)
|
8284 | a750fc0b | j_mayer | /* PowerPC 604ev */
|
8285 | 082c6681 | j_mayer | POWERPC_DEF("604ev", CPU_POWERPC_604EV, 604E), |
8286 | a750fc0b | j_mayer | #endif
|
8287 | a750fc0b | j_mayer | /* PowerPC 7xx family */
|
8288 | a750fc0b | j_mayer | /* Generic PowerPC 740 (G3) */
|
8289 | bd928eba | j_mayer | POWERPC_DEF("740", CPU_POWERPC_7x0, 740), |
8290 | 082c6681 | j_mayer | /* Code name for PowerPC 740 */
|
8291 | bd928eba | j_mayer | POWERPC_DEF("Arthur", CPU_POWERPC_7x0, 740), |
8292 | a750fc0b | j_mayer | /* Generic PowerPC 750 (G3) */
|
8293 | bd928eba | j_mayer | POWERPC_DEF("750", CPU_POWERPC_7x0, 750), |
8294 | 082c6681 | j_mayer | /* Code name for PowerPC 750 */
|
8295 | bd928eba | j_mayer | POWERPC_DEF("Typhoon", CPU_POWERPC_7x0, 750), |
8296 | a750fc0b | j_mayer | /* PowerPC 740/750 is also known as G3 */
|
8297 | bd928eba | j_mayer | POWERPC_DEF("G3", CPU_POWERPC_7x0, 750), |
8298 | bd928eba | j_mayer | /* PowerPC 740 v1.0 (G3) */
|
8299 | bd928eba | j_mayer | POWERPC_DEF("740_v1.0", CPU_POWERPC_7x0_v10, 740), |
8300 | bd928eba | j_mayer | /* PowerPC 750 v1.0 (G3) */
|
8301 | bd928eba | j_mayer | POWERPC_DEF("750_v1.0", CPU_POWERPC_7x0_v10, 750), |
8302 | a750fc0b | j_mayer | /* PowerPC 740 v2.0 (G3) */
|
8303 | bd928eba | j_mayer | POWERPC_DEF("740_v2.0", CPU_POWERPC_7x0_v20, 740), |
8304 | a750fc0b | j_mayer | /* PowerPC 750 v2.0 (G3) */
|
8305 | bd928eba | j_mayer | POWERPC_DEF("750_v2.0", CPU_POWERPC_7x0_v20, 750), |
8306 | a750fc0b | j_mayer | /* PowerPC 740 v2.1 (G3) */
|
8307 | bd928eba | j_mayer | POWERPC_DEF("740_v2.1", CPU_POWERPC_7x0_v21, 740), |
8308 | a750fc0b | j_mayer | /* PowerPC 750 v2.1 (G3) */
|
8309 | bd928eba | j_mayer | POWERPC_DEF("750_v2.1", CPU_POWERPC_7x0_v21, 750), |
8310 | a750fc0b | j_mayer | /* PowerPC 740 v2.2 (G3) */
|
8311 | bd928eba | j_mayer | POWERPC_DEF("740_v2.2", CPU_POWERPC_7x0_v22, 740), |
8312 | a750fc0b | j_mayer | /* PowerPC 750 v2.2 (G3) */
|
8313 | bd928eba | j_mayer | POWERPC_DEF("750_v2.2", CPU_POWERPC_7x0_v22, 750), |
8314 | a750fc0b | j_mayer | /* PowerPC 740 v3.0 (G3) */
|
8315 | bd928eba | j_mayer | POWERPC_DEF("740_v3.0", CPU_POWERPC_7x0_v30, 740), |
8316 | a750fc0b | j_mayer | /* PowerPC 750 v3.0 (G3) */
|
8317 | bd928eba | j_mayer | POWERPC_DEF("750_v3.0", CPU_POWERPC_7x0_v30, 750), |
8318 | a750fc0b | j_mayer | /* PowerPC 740 v3.1 (G3) */
|
8319 | bd928eba | j_mayer | POWERPC_DEF("740_v3.1", CPU_POWERPC_7x0_v31, 740), |
8320 | a750fc0b | j_mayer | /* PowerPC 750 v3.1 (G3) */
|
8321 | bd928eba | j_mayer | POWERPC_DEF("750_v3.1", CPU_POWERPC_7x0_v31, 750), |
8322 | a750fc0b | j_mayer | /* PowerPC 740E (G3) */
|
8323 | bd928eba | j_mayer | POWERPC_DEF("740e", CPU_POWERPC_740E, 740), |
8324 | bd928eba | j_mayer | /* PowerPC 750E (G3) */
|
8325 | bd928eba | j_mayer | POWERPC_DEF("750e", CPU_POWERPC_750E, 750), |
8326 | a750fc0b | j_mayer | /* PowerPC 740P (G3) */
|
8327 | bd928eba | j_mayer | POWERPC_DEF("740p", CPU_POWERPC_7x0P, 740), |
8328 | a750fc0b | j_mayer | /* PowerPC 750P (G3) */
|
8329 | bd928eba | j_mayer | POWERPC_DEF("750p", CPU_POWERPC_7x0P, 750), |
8330 | a750fc0b | j_mayer | /* Code name for PowerPC 740P/750P (G3) */
|
8331 | bd928eba | j_mayer | POWERPC_DEF("Conan/Doyle", CPU_POWERPC_7x0P, 750), |
8332 | a750fc0b | j_mayer | /* PowerPC 750CL (G3 embedded) */
|
8333 | bd928eba | j_mayer | POWERPC_DEF("750cl", CPU_POWERPC_750CL, 750cl), |
8334 | bd928eba | j_mayer | /* PowerPC 750CL v1.0 */
|
8335 | bd928eba | j_mayer | POWERPC_DEF("750cl_v1.0", CPU_POWERPC_750CL_v10, 750cl), |
8336 | bd928eba | j_mayer | /* PowerPC 750CL v2.0 */
|
8337 | bd928eba | j_mayer | POWERPC_DEF("750cl_v2.0", CPU_POWERPC_750CL_v20, 750cl), |
8338 | a750fc0b | j_mayer | /* PowerPC 750CX (G3 embedded) */
|
8339 | bd928eba | j_mayer | POWERPC_DEF("750cx", CPU_POWERPC_750CX, 750cx), |
8340 | bd928eba | j_mayer | /* PowerPC 750CX v1.0 (G3 embedded) */
|
8341 | bd928eba | j_mayer | POWERPC_DEF("750cx_v1.0", CPU_POWERPC_750CX_v10, 750cx), |
8342 | bd928eba | j_mayer | /* PowerPC 750CX v2.1 (G3 embedded) */
|
8343 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.0", CPU_POWERPC_750CX_v20, 750cx), |
8344 | a750fc0b | j_mayer | /* PowerPC 750CX v2.1 (G3 embedded) */
|
8345 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.1", CPU_POWERPC_750CX_v21, 750cx), |
8346 | a750fc0b | j_mayer | /* PowerPC 750CX v2.2 (G3 embedded) */
|
8347 | bd928eba | j_mayer | POWERPC_DEF("750cx_v2.2", CPU_POWERPC_750CX_v22, 750cx), |
8348 | a750fc0b | j_mayer | /* PowerPC 750CXe (G3 embedded) */
|
8349 | bd928eba | j_mayer | POWERPC_DEF("750cxe", CPU_POWERPC_750CXE, 750cx), |
8350 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.1 (G3 embedded) */
|
8351 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.1", CPU_POWERPC_750CXE_v21, 750cx), |
8352 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.2 (G3 embedded) */
|
8353 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.2", CPU_POWERPC_750CXE_v22, 750cx), |
8354 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.3 (G3 embedded) */
|
8355 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.3", CPU_POWERPC_750CXE_v23, 750cx), |
8356 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.4 (G3 embedded) */
|
8357 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.4", CPU_POWERPC_750CXE_v24, 750cx), |
8358 | a750fc0b | j_mayer | /* PowerPC 750CXe v2.4b (G3 embedded) */
|
8359 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v2.4b", CPU_POWERPC_750CXE_v24b, 750cx), |
8360 | bd928eba | j_mayer | /* PowerPC 750CXe v3.0 (G3 embedded) */
|
8361 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.0", CPU_POWERPC_750CXE_v30, 750cx), |
8362 | a750fc0b | j_mayer | /* PowerPC 750CXe v3.1 (G3 embedded) */
|
8363 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.1", CPU_POWERPC_750CXE_v31, 750cx), |
8364 | a750fc0b | j_mayer | /* PowerPC 750CXe v3.1b (G3 embedded) */
|
8365 | bd928eba | j_mayer | POWERPC_DEF("750cxe_v3.1b", CPU_POWERPC_750CXE_v31b, 750cx), |
8366 | a750fc0b | j_mayer | /* PowerPC 750CXr (G3 embedded) */
|
8367 | bd928eba | j_mayer | POWERPC_DEF("750cxr", CPU_POWERPC_750CXR, 750cx), |
8368 | a750fc0b | j_mayer | /* PowerPC 750FL (G3 embedded) */
|
8369 | 80d11f44 | j_mayer | POWERPC_DEF("750fl", CPU_POWERPC_750FL, 750fx), |
8370 | a750fc0b | j_mayer | /* PowerPC 750FX (G3 embedded) */
|
8371 | 80d11f44 | j_mayer | POWERPC_DEF("750fx", CPU_POWERPC_750FX, 750fx), |
8372 | a750fc0b | j_mayer | /* PowerPC 750FX v1.0 (G3 embedded) */
|
8373 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v1.0", CPU_POWERPC_750FX_v10, 750fx), |
8374 | a750fc0b | j_mayer | /* PowerPC 750FX v2.0 (G3 embedded) */
|
8375 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.0", CPU_POWERPC_750FX_v20, 750fx), |
8376 | a750fc0b | j_mayer | /* PowerPC 750FX v2.1 (G3 embedded) */
|
8377 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.1", CPU_POWERPC_750FX_v21, 750fx), |
8378 | a750fc0b | j_mayer | /* PowerPC 750FX v2.2 (G3 embedded) */
|
8379 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.2", CPU_POWERPC_750FX_v22, 750fx), |
8380 | a750fc0b | j_mayer | /* PowerPC 750FX v2.3 (G3 embedded) */
|
8381 | 80d11f44 | j_mayer | POWERPC_DEF("750fx_v2.3", CPU_POWERPC_750FX_v23, 750fx), |
8382 | a750fc0b | j_mayer | /* PowerPC 750GL (G3 embedded) */
|
8383 | bd928eba | j_mayer | POWERPC_DEF("750gl", CPU_POWERPC_750GL, 750gx), |
8384 | a750fc0b | j_mayer | /* PowerPC 750GX (G3 embedded) */
|
8385 | bd928eba | j_mayer | POWERPC_DEF("750gx", CPU_POWERPC_750GX, 750gx), |
8386 | a750fc0b | j_mayer | /* PowerPC 750GX v1.0 (G3 embedded) */
|
8387 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.0", CPU_POWERPC_750GX_v10, 750gx), |
8388 | a750fc0b | j_mayer | /* PowerPC 750GX v1.1 (G3 embedded) */
|
8389 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.1", CPU_POWERPC_750GX_v11, 750gx), |
8390 | a750fc0b | j_mayer | /* PowerPC 750GX v1.2 (G3 embedded) */
|
8391 | bd928eba | j_mayer | POWERPC_DEF("750gx_v1.2", CPU_POWERPC_750GX_v12, 750gx), |
8392 | a750fc0b | j_mayer | /* PowerPC 750L (G3 embedded) */
|
8393 | bd928eba | j_mayer | POWERPC_DEF("750l", CPU_POWERPC_750L, 750), |
8394 | a750fc0b | j_mayer | /* Code name for PowerPC 750L (G3 embedded) */
|
8395 | bd928eba | j_mayer | POWERPC_DEF("LoneStar", CPU_POWERPC_750L, 750), |
8396 | bd928eba | j_mayer | /* PowerPC 750L v2.0 (G3 embedded) */
|
8397 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.0", CPU_POWERPC_750L_v20, 750), |
8398 | bd928eba | j_mayer | /* PowerPC 750L v2.1 (G3 embedded) */
|
8399 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.1", CPU_POWERPC_750L_v21, 750), |
8400 | a750fc0b | j_mayer | /* PowerPC 750L v2.2 (G3 embedded) */
|
8401 | bd928eba | j_mayer | POWERPC_DEF("750l_v2.2", CPU_POWERPC_750L_v22, 750), |
8402 | a750fc0b | j_mayer | /* PowerPC 750L v3.0 (G3 embedded) */
|
8403 | bd928eba | j_mayer | POWERPC_DEF("750l_v3.0", CPU_POWERPC_750L_v30, 750), |
8404 | a750fc0b | j_mayer | /* PowerPC 750L v3.2 (G3 embedded) */
|
8405 | bd928eba | j_mayer | POWERPC_DEF("750l_v3.2", CPU_POWERPC_750L_v32, 750), |
8406 | a750fc0b | j_mayer | /* Generic PowerPC 745 */
|
8407 | bd928eba | j_mayer | POWERPC_DEF("745", CPU_POWERPC_7x5, 745), |
8408 | a750fc0b | j_mayer | /* Generic PowerPC 755 */
|
8409 | bd928eba | j_mayer | POWERPC_DEF("755", CPU_POWERPC_7x5, 755), |
8410 | a750fc0b | j_mayer | /* Code name for PowerPC 745/755 */
|
8411 | bd928eba | j_mayer | POWERPC_DEF("Goldfinger", CPU_POWERPC_7x5, 755), |
8412 | a750fc0b | j_mayer | /* PowerPC 745 v1.0 */
|
8413 | bd928eba | j_mayer | POWERPC_DEF("745_v1.0", CPU_POWERPC_7x5_v10, 745), |
8414 | a750fc0b | j_mayer | /* PowerPC 755 v1.0 */
|
8415 | bd928eba | j_mayer | POWERPC_DEF("755_v1.0", CPU_POWERPC_7x5_v10, 755), |
8416 | a750fc0b | j_mayer | /* PowerPC 745 v1.1 */
|
8417 | bd928eba | j_mayer | POWERPC_DEF("745_v1.1", CPU_POWERPC_7x5_v11, 745), |
8418 | a750fc0b | j_mayer | /* PowerPC 755 v1.1 */
|
8419 | bd928eba | j_mayer | POWERPC_DEF("755_v1.1", CPU_POWERPC_7x5_v11, 755), |
8420 | a750fc0b | j_mayer | /* PowerPC 745 v2.0 */
|
8421 | bd928eba | j_mayer | POWERPC_DEF("745_v2.0", CPU_POWERPC_7x5_v20, 745), |
8422 | a750fc0b | j_mayer | /* PowerPC 755 v2.0 */
|
8423 | bd928eba | j_mayer | POWERPC_DEF("755_v2.0", CPU_POWERPC_7x5_v20, 755), |
8424 | a750fc0b | j_mayer | /* PowerPC 745 v2.1 */
|
8425 | bd928eba | j_mayer | POWERPC_DEF("745_v2.1", CPU_POWERPC_7x5_v21, 745), |
8426 | a750fc0b | j_mayer | /* PowerPC 755 v2.1 */
|
8427 | bd928eba | j_mayer | POWERPC_DEF("755_v2.1", CPU_POWERPC_7x5_v21, 755), |
8428 | a750fc0b | j_mayer | /* PowerPC 745 v2.2 */
|
8429 | bd928eba | j_mayer | POWERPC_DEF("745_v2.2", CPU_POWERPC_7x5_v22, 745), |
8430 | a750fc0b | j_mayer | /* PowerPC 755 v2.2 */
|
8431 | bd928eba | j_mayer | POWERPC_DEF("755_v2.2", CPU_POWERPC_7x5_v22, 755), |
8432 | a750fc0b | j_mayer | /* PowerPC 745 v2.3 */
|
8433 | bd928eba | j_mayer | POWERPC_DEF("745_v2.3", CPU_POWERPC_7x5_v23, 745), |
8434 | a750fc0b | j_mayer | /* PowerPC 755 v2.3 */
|
8435 | bd928eba | j_mayer | POWERPC_DEF("755_v2.3", CPU_POWERPC_7x5_v23, 755), |
8436 | a750fc0b | j_mayer | /* PowerPC 745 v2.4 */
|
8437 | bd928eba | j_mayer | POWERPC_DEF("745_v2.4", CPU_POWERPC_7x5_v24, 745), |
8438 | a750fc0b | j_mayer | /* PowerPC 755 v2.4 */
|
8439 | bd928eba | j_mayer | POWERPC_DEF("755_v2.4", CPU_POWERPC_7x5_v24, 755), |
8440 | a750fc0b | j_mayer | /* PowerPC 745 v2.5 */
|
8441 | bd928eba | j_mayer | POWERPC_DEF("745_v2.5", CPU_POWERPC_7x5_v25, 745), |
8442 | a750fc0b | j_mayer | /* PowerPC 755 v2.5 */
|
8443 | bd928eba | j_mayer | POWERPC_DEF("755_v2.5", CPU_POWERPC_7x5_v25, 755), |
8444 | a750fc0b | j_mayer | /* PowerPC 745 v2.6 */
|
8445 | bd928eba | j_mayer | POWERPC_DEF("745_v2.6", CPU_POWERPC_7x5_v26, 745), |
8446 | a750fc0b | j_mayer | /* PowerPC 755 v2.6 */
|
8447 | bd928eba | j_mayer | POWERPC_DEF("755_v2.6", CPU_POWERPC_7x5_v26, 755), |
8448 | a750fc0b | j_mayer | /* PowerPC 745 v2.7 */
|
8449 | bd928eba | j_mayer | POWERPC_DEF("745_v2.7", CPU_POWERPC_7x5_v27, 745), |
8450 | a750fc0b | j_mayer | /* PowerPC 755 v2.7 */
|
8451 | bd928eba | j_mayer | POWERPC_DEF("755_v2.7", CPU_POWERPC_7x5_v27, 755), |
8452 | a750fc0b | j_mayer | /* PowerPC 745 v2.8 */
|
8453 | bd928eba | j_mayer | POWERPC_DEF("745_v2.8", CPU_POWERPC_7x5_v28, 745), |
8454 | a750fc0b | j_mayer | /* PowerPC 755 v2.8 */
|
8455 | bd928eba | j_mayer | POWERPC_DEF("755_v2.8", CPU_POWERPC_7x5_v28, 755), |
8456 | a750fc0b | j_mayer | #if defined (TODO)
|
8457 | a750fc0b | j_mayer | /* PowerPC 745P (G3) */
|
8458 | bd928eba | j_mayer | POWERPC_DEF("745p", CPU_POWERPC_7x5P, 745), |
8459 | a750fc0b | j_mayer | /* PowerPC 755P (G3) */
|
8460 | bd928eba | j_mayer | POWERPC_DEF("755p", CPU_POWERPC_7x5P, 755), |
8461 | a750fc0b | j_mayer | #endif
|
8462 | a750fc0b | j_mayer | /* PowerPC 74xx family */
|
8463 | a750fc0b | j_mayer | /* PowerPC 7400 (G4) */
|
8464 | 80d11f44 | j_mayer | POWERPC_DEF("7400", CPU_POWERPC_7400, 7400), |
8465 | a750fc0b | j_mayer | /* Code name for PowerPC 7400 */
|
8466 | 80d11f44 | j_mayer | POWERPC_DEF("Max", CPU_POWERPC_7400, 7400), |
8467 | a750fc0b | j_mayer | /* PowerPC 74xx is also well known as G4 */
|
8468 | 80d11f44 | j_mayer | POWERPC_DEF("G4", CPU_POWERPC_7400, 7400), |
8469 | a750fc0b | j_mayer | /* PowerPC 7400 v1.0 (G4) */
|
8470 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v1.0", CPU_POWERPC_7400_v10, 7400), |
8471 | a750fc0b | j_mayer | /* PowerPC 7400 v1.1 (G4) */
|
8472 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v1.1", CPU_POWERPC_7400_v11, 7400), |
8473 | a750fc0b | j_mayer | /* PowerPC 7400 v2.0 (G4) */
|
8474 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.0", CPU_POWERPC_7400_v20, 7400), |
8475 | 4e777442 | j_mayer | /* PowerPC 7400 v2.1 (G4) */
|
8476 | 4e777442 | j_mayer | POWERPC_DEF("7400_v2.1", CPU_POWERPC_7400_v21, 7400), |
8477 | a750fc0b | j_mayer | /* PowerPC 7400 v2.2 (G4) */
|
8478 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.2", CPU_POWERPC_7400_v22, 7400), |
8479 | a750fc0b | j_mayer | /* PowerPC 7400 v2.6 (G4) */
|
8480 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.6", CPU_POWERPC_7400_v26, 7400), |
8481 | a750fc0b | j_mayer | /* PowerPC 7400 v2.7 (G4) */
|
8482 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.7", CPU_POWERPC_7400_v27, 7400), |
8483 | a750fc0b | j_mayer | /* PowerPC 7400 v2.8 (G4) */
|
8484 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.8", CPU_POWERPC_7400_v28, 7400), |
8485 | a750fc0b | j_mayer | /* PowerPC 7400 v2.9 (G4) */
|
8486 | 80d11f44 | j_mayer | POWERPC_DEF("7400_v2.9", CPU_POWERPC_7400_v29, 7400), |
8487 | a750fc0b | j_mayer | /* PowerPC 7410 (G4) */
|
8488 | 80d11f44 | j_mayer | POWERPC_DEF("7410", CPU_POWERPC_7410, 7410), |
8489 | a750fc0b | j_mayer | /* Code name for PowerPC 7410 */
|
8490 | 80d11f44 | j_mayer | POWERPC_DEF("Nitro", CPU_POWERPC_7410, 7410), |
8491 | a750fc0b | j_mayer | /* PowerPC 7410 v1.0 (G4) */
|
8492 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.0", CPU_POWERPC_7410_v10, 7410), |
8493 | a750fc0b | j_mayer | /* PowerPC 7410 v1.1 (G4) */
|
8494 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.1", CPU_POWERPC_7410_v11, 7410), |
8495 | a750fc0b | j_mayer | /* PowerPC 7410 v1.2 (G4) */
|
8496 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.2", CPU_POWERPC_7410_v12, 7410), |
8497 | a750fc0b | j_mayer | /* PowerPC 7410 v1.3 (G4) */
|
8498 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.3", CPU_POWERPC_7410_v13, 7410), |
8499 | a750fc0b | j_mayer | /* PowerPC 7410 v1.4 (G4) */
|
8500 | 80d11f44 | j_mayer | POWERPC_DEF("7410_v1.4", CPU_POWERPC_7410_v14, 7410), |
8501 | a750fc0b | j_mayer | /* PowerPC 7448 (G4) */
|
8502 | 80d11f44 | j_mayer | POWERPC_DEF("7448", CPU_POWERPC_7448, 7400), |
8503 | a750fc0b | j_mayer | /* PowerPC 7448 v1.0 (G4) */
|
8504 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v1.0", CPU_POWERPC_7448_v10, 7400), |
8505 | a750fc0b | j_mayer | /* PowerPC 7448 v1.1 (G4) */
|
8506 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v1.1", CPU_POWERPC_7448_v11, 7400), |
8507 | a750fc0b | j_mayer | /* PowerPC 7448 v2.0 (G4) */
|
8508 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v2.0", CPU_POWERPC_7448_v20, 7400), |
8509 | a750fc0b | j_mayer | /* PowerPC 7448 v2.1 (G4) */
|
8510 | 80d11f44 | j_mayer | POWERPC_DEF("7448_v2.1", CPU_POWERPC_7448_v21, 7400), |
8511 | a750fc0b | j_mayer | /* PowerPC 7450 (G4) */
|
8512 | 80d11f44 | j_mayer | POWERPC_DEF("7450", CPU_POWERPC_7450, 7450), |
8513 | a750fc0b | j_mayer | /* Code name for PowerPC 7450 */
|
8514 | 80d11f44 | j_mayer | POWERPC_DEF("Vger", CPU_POWERPC_7450, 7450), |
8515 | a750fc0b | j_mayer | /* PowerPC 7450 v1.0 (G4) */
|
8516 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.0", CPU_POWERPC_7450_v10, 7450), |
8517 | a750fc0b | j_mayer | /* PowerPC 7450 v1.1 (G4) */
|
8518 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.1", CPU_POWERPC_7450_v11, 7450), |
8519 | a750fc0b | j_mayer | /* PowerPC 7450 v1.2 (G4) */
|
8520 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v1.2", CPU_POWERPC_7450_v12, 7450), |
8521 | a750fc0b | j_mayer | /* PowerPC 7450 v2.0 (G4) */
|
8522 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v2.0", CPU_POWERPC_7450_v20, 7450), |
8523 | a750fc0b | j_mayer | /* PowerPC 7450 v2.1 (G4) */
|
8524 | 80d11f44 | j_mayer | POWERPC_DEF("7450_v2.1", CPU_POWERPC_7450_v21, 7450), |
8525 | a750fc0b | j_mayer | /* PowerPC 7441 (G4) */
|
8526 | 80d11f44 | j_mayer | POWERPC_DEF("7441", CPU_POWERPC_74x1, 7440), |
8527 | a750fc0b | j_mayer | /* PowerPC 7451 (G4) */
|
8528 | 80d11f44 | j_mayer | POWERPC_DEF("7451", CPU_POWERPC_74x1, 7450), |
8529 | 4e777442 | j_mayer | /* PowerPC 7441 v2.1 (G4) */
|
8530 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.1", CPU_POWERPC_7450_v21, 7440), |
8531 | 4e777442 | j_mayer | /* PowerPC 7441 v2.3 (G4) */
|
8532 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.3", CPU_POWERPC_74x1_v23, 7440), |
8533 | 4e777442 | j_mayer | /* PowerPC 7451 v2.3 (G4) */
|
8534 | 4e777442 | j_mayer | POWERPC_DEF("7451_v2.3", CPU_POWERPC_74x1_v23, 7450), |
8535 | 4e777442 | j_mayer | /* PowerPC 7441 v2.10 (G4) */
|
8536 | 4e777442 | j_mayer | POWERPC_DEF("7441_v2.10", CPU_POWERPC_74x1_v210, 7440), |
8537 | 4e777442 | j_mayer | /* PowerPC 7451 v2.10 (G4) */
|
8538 | 4e777442 | j_mayer | POWERPC_DEF("7451_v2.10", CPU_POWERPC_74x1_v210, 7450), |
8539 | a750fc0b | j_mayer | /* PowerPC 7445 (G4) */
|
8540 | 80d11f44 | j_mayer | POWERPC_DEF("7445", CPU_POWERPC_74x5, 7445), |
8541 | a750fc0b | j_mayer | /* PowerPC 7455 (G4) */
|
8542 | 80d11f44 | j_mayer | POWERPC_DEF("7455", CPU_POWERPC_74x5, 7455), |
8543 | a750fc0b | j_mayer | /* Code name for PowerPC 7445/7455 */
|
8544 | 80d11f44 | j_mayer | POWERPC_DEF("Apollo6", CPU_POWERPC_74x5, 7455), |
8545 | a750fc0b | j_mayer | /* PowerPC 7445 v1.0 (G4) */
|
8546 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v1.0", CPU_POWERPC_74x5_v10, 7445), |
8547 | a750fc0b | j_mayer | /* PowerPC 7455 v1.0 (G4) */
|
8548 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v1.0", CPU_POWERPC_74x5_v10, 7455), |
8549 | a750fc0b | j_mayer | /* PowerPC 7445 v2.1 (G4) */
|
8550 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v2.1", CPU_POWERPC_74x5_v21, 7445), |
8551 | a750fc0b | j_mayer | /* PowerPC 7455 v2.1 (G4) */
|
8552 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v2.1", CPU_POWERPC_74x5_v21, 7455), |
8553 | a750fc0b | j_mayer | /* PowerPC 7445 v3.2 (G4) */
|
8554 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.2", CPU_POWERPC_74x5_v32, 7445), |
8555 | a750fc0b | j_mayer | /* PowerPC 7455 v3.2 (G4) */
|
8556 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.2", CPU_POWERPC_74x5_v32, 7455), |
8557 | a750fc0b | j_mayer | /* PowerPC 7445 v3.3 (G4) */
|
8558 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.3", CPU_POWERPC_74x5_v33, 7445), |
8559 | a750fc0b | j_mayer | /* PowerPC 7455 v3.3 (G4) */
|
8560 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.3", CPU_POWERPC_74x5_v33, 7455), |
8561 | a750fc0b | j_mayer | /* PowerPC 7445 v3.4 (G4) */
|
8562 | 80d11f44 | j_mayer | POWERPC_DEF("7445_v3.4", CPU_POWERPC_74x5_v34, 7445), |
8563 | a750fc0b | j_mayer | /* PowerPC 7455 v3.4 (G4) */
|
8564 | 80d11f44 | j_mayer | POWERPC_DEF("7455_v3.4", CPU_POWERPC_74x5_v34, 7455), |
8565 | a750fc0b | j_mayer | /* PowerPC 7447 (G4) */
|
8566 | 80d11f44 | j_mayer | POWERPC_DEF("7447", CPU_POWERPC_74x7, 7445), |
8567 | a750fc0b | j_mayer | /* PowerPC 7457 (G4) */
|
8568 | 80d11f44 | j_mayer | POWERPC_DEF("7457", CPU_POWERPC_74x7, 7455), |
8569 | a750fc0b | j_mayer | /* Code name for PowerPC 7447/7457 */
|
8570 | 80d11f44 | j_mayer | POWERPC_DEF("Apollo7", CPU_POWERPC_74x7, 7455), |
8571 | a750fc0b | j_mayer | /* PowerPC 7447 v1.0 (G4) */
|
8572 | 80d11f44 | j_mayer | POWERPC_DEF("7447_v1.0", CPU_POWERPC_74x7_v10, 7445), |
8573 | a750fc0b | j_mayer | /* PowerPC 7457 v1.0 (G4) */
|
8574 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.0", CPU_POWERPC_74x7_v10, 7455), |
8575 | a750fc0b | j_mayer | /* PowerPC 7447 v1.1 (G4) */
|
8576 | 80d11f44 | j_mayer | POWERPC_DEF("7447_v1.1", CPU_POWERPC_74x7_v11, 7445), |
8577 | a750fc0b | j_mayer | /* PowerPC 7457 v1.1 (G4) */
|
8578 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.1", CPU_POWERPC_74x7_v11, 7455), |
8579 | a750fc0b | j_mayer | /* PowerPC 7457 v1.2 (G4) */
|
8580 | 80d11f44 | j_mayer | POWERPC_DEF("7457_v1.2", CPU_POWERPC_74x7_v12, 7455), |
8581 | 082c6681 | j_mayer | /* PowerPC 7447A (G4) */
|
8582 | 082c6681 | j_mayer | POWERPC_DEF("7447A", CPU_POWERPC_74x7A, 7445), |
8583 | 082c6681 | j_mayer | /* PowerPC 7457A (G4) */
|
8584 | 082c6681 | j_mayer | POWERPC_DEF("7457A", CPU_POWERPC_74x7A, 7455), |
8585 | 082c6681 | j_mayer | /* PowerPC 7447A v1.0 (G4) */
|
8586 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.0", CPU_POWERPC_74x7A_v10, 7445), |
8587 | 082c6681 | j_mayer | /* PowerPC 7457A v1.0 (G4) */
|
8588 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.0", CPU_POWERPC_74x7A_v10, 7455), |
8589 | 082c6681 | j_mayer | /* Code name for PowerPC 7447A/7457A */
|
8590 | 082c6681 | j_mayer | POWERPC_DEF("Apollo7PM", CPU_POWERPC_74x7A_v10, 7455), |
8591 | 082c6681 | j_mayer | /* PowerPC 7447A v1.1 (G4) */
|
8592 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.1", CPU_POWERPC_74x7A_v11, 7445), |
8593 | 082c6681 | j_mayer | /* PowerPC 7457A v1.1 (G4) */
|
8594 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.1", CPU_POWERPC_74x7A_v11, 7455), |
8595 | 082c6681 | j_mayer | /* PowerPC 7447A v1.2 (G4) */
|
8596 | 082c6681 | j_mayer | POWERPC_DEF("7447A_v1.2", CPU_POWERPC_74x7A_v12, 7445), |
8597 | 082c6681 | j_mayer | /* PowerPC 7457A v1.2 (G4) */
|
8598 | 082c6681 | j_mayer | POWERPC_DEF("7457A_v1.2", CPU_POWERPC_74x7A_v12, 7455), |
8599 | a750fc0b | j_mayer | /* 64 bits PowerPC */
|
8600 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
8601 | a750fc0b | j_mayer | /* PowerPC 620 */
|
8602 | 80d11f44 | j_mayer | POWERPC_DEF("620", CPU_POWERPC_620, 620), |
8603 | 082c6681 | j_mayer | /* Code name for PowerPC 620 */
|
8604 | 082c6681 | j_mayer | POWERPC_DEF("Trident", CPU_POWERPC_620, 620), |
8605 | 3fc6c082 | bellard | #if defined (TODO)
|
8606 | a750fc0b | j_mayer | /* PowerPC 630 (POWER3) */
|
8607 | 80d11f44 | j_mayer | POWERPC_DEF("630", CPU_POWERPC_630, 630), |
8608 | 80d11f44 | j_mayer | POWERPC_DEF("POWER3", CPU_POWERPC_630, 630), |
8609 | 082c6681 | j_mayer | /* Code names for POWER3 */
|
8610 | 082c6681 | j_mayer | POWERPC_DEF("Boxer", CPU_POWERPC_630, 630), |
8611 | 082c6681 | j_mayer | POWERPC_DEF("Dino", CPU_POWERPC_630, 630), |
8612 | a750fc0b | j_mayer | #endif
|
8613 | 3a607854 | j_mayer | #if defined (TODO)
|
8614 | a750fc0b | j_mayer | /* PowerPC 631 (Power 3+) */
|
8615 | 80d11f44 | j_mayer | POWERPC_DEF("631", CPU_POWERPC_631, 631), |
8616 | 80d11f44 | j_mayer | POWERPC_DEF("POWER3+", CPU_POWERPC_631, 631), |
8617 | 3a607854 | j_mayer | #endif
|
8618 | 3a607854 | j_mayer | #if defined (TODO)
|
8619 | a750fc0b | j_mayer | /* POWER4 */
|
8620 | 80d11f44 | j_mayer | POWERPC_DEF("POWER4", CPU_POWERPC_POWER4, POWER4),
|
8621 | a750fc0b | j_mayer | #endif
|
8622 | 3a607854 | j_mayer | #if defined (TODO)
|
8623 | a750fc0b | j_mayer | /* POWER4p */
|
8624 | 80d11f44 | j_mayer | POWERPC_DEF("POWER4+", CPU_POWERPC_POWER4P, POWER4P),
|
8625 | a750fc0b | j_mayer | #endif
|
8626 | 3a607854 | j_mayer | #if defined (TODO)
|
8627 | a750fc0b | j_mayer | /* POWER5 */
|
8628 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5", CPU_POWERPC_POWER5, POWER5),
|
8629 | a750fc0b | j_mayer | /* POWER5GR */
|
8630 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5gr", CPU_POWERPC_POWER5GR, POWER5),
|
8631 | 2662a059 | j_mayer | #endif
|
8632 | 2662a059 | j_mayer | #if defined (TODO)
|
8633 | a750fc0b | j_mayer | /* POWER5+ */
|
8634 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5+", CPU_POWERPC_POWER5P, POWER5P),
|
8635 | a750fc0b | j_mayer | /* POWER5GS */
|
8636 | 80d11f44 | j_mayer | POWERPC_DEF("POWER5gs", CPU_POWERPC_POWER5GS, POWER5P),
|
8637 | a750fc0b | j_mayer | #endif
|
8638 | 2662a059 | j_mayer | #if defined (TODO)
|
8639 | a750fc0b | j_mayer | /* POWER6 */
|
8640 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6", CPU_POWERPC_POWER6, POWER6),
|
8641 | a750fc0b | j_mayer | /* POWER6 running in POWER5 mode */
|
8642 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6_5", CPU_POWERPC_POWER6_5, POWER5),
|
8643 | a750fc0b | j_mayer | /* POWER6A */
|
8644 | 80d11f44 | j_mayer | POWERPC_DEF("POWER6A", CPU_POWERPC_POWER6A, POWER6),
|
8645 | 2662a059 | j_mayer | #endif
|
8646 | a750fc0b | j_mayer | /* PowerPC 970 */
|
8647 | 80d11f44 | j_mayer | POWERPC_DEF("970", CPU_POWERPC_970, 970), |
8648 | a750fc0b | j_mayer | /* PowerPC 970FX (G5) */
|
8649 | 80d11f44 | j_mayer | POWERPC_DEF("970fx", CPU_POWERPC_970FX, 970FX), |
8650 | a750fc0b | j_mayer | /* PowerPC 970FX v1.0 (G5) */
|
8651 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v1.0", CPU_POWERPC_970FX_v10, 970FX), |
8652 | a750fc0b | j_mayer | /* PowerPC 970FX v2.0 (G5) */
|
8653 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v2.0", CPU_POWERPC_970FX_v20, 970FX), |
8654 | a750fc0b | j_mayer | /* PowerPC 970FX v2.1 (G5) */
|
8655 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v2.1", CPU_POWERPC_970FX_v21, 970FX), |
8656 | a750fc0b | j_mayer | /* PowerPC 970FX v3.0 (G5) */
|
8657 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v3.0", CPU_POWERPC_970FX_v30, 970FX), |
8658 | a750fc0b | j_mayer | /* PowerPC 970FX v3.1 (G5) */
|
8659 | 80d11f44 | j_mayer | POWERPC_DEF("970fx_v3.1", CPU_POWERPC_970FX_v31, 970FX), |
8660 | a750fc0b | j_mayer | /* PowerPC 970GX (G5) */
|
8661 | 80d11f44 | j_mayer | POWERPC_DEF("970gx", CPU_POWERPC_970GX, 970GX), |
8662 | a750fc0b | j_mayer | /* PowerPC 970MP */
|
8663 | 80d11f44 | j_mayer | POWERPC_DEF("970mp", CPU_POWERPC_970MP, 970MP), |
8664 | a750fc0b | j_mayer | /* PowerPC 970MP v1.0 */
|
8665 | 80d11f44 | j_mayer | POWERPC_DEF("970mp_v1.0", CPU_POWERPC_970MP_v10, 970MP), |
8666 | a750fc0b | j_mayer | /* PowerPC 970MP v1.1 */
|
8667 | 80d11f44 | j_mayer | POWERPC_DEF("970mp_v1.1", CPU_POWERPC_970MP_v11, 970MP), |
8668 | 3a607854 | j_mayer | #if defined (TODO)
|
8669 | a750fc0b | j_mayer | /* PowerPC Cell */
|
8670 | 80d11f44 | j_mayer | POWERPC_DEF("Cell", CPU_POWERPC_CELL, 970), |
8671 | 2662a059 | j_mayer | #endif
|
8672 | 2662a059 | j_mayer | #if defined (TODO)
|
8673 | a750fc0b | j_mayer | /* PowerPC Cell v1.0 */
|
8674 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v1.0", CPU_POWERPC_CELL_v10, 970), |
8675 | 2662a059 | j_mayer | #endif
|
8676 | 2662a059 | j_mayer | #if defined (TODO)
|
8677 | a750fc0b | j_mayer | /* PowerPC Cell v2.0 */
|
8678 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v2.0", CPU_POWERPC_CELL_v20, 970), |
8679 | 2662a059 | j_mayer | #endif
|
8680 | 2662a059 | j_mayer | #if defined (TODO)
|
8681 | a750fc0b | j_mayer | /* PowerPC Cell v3.0 */
|
8682 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.0", CPU_POWERPC_CELL_v30, 970), |
8683 | 3a607854 | j_mayer | #endif
|
8684 | 3a607854 | j_mayer | #if defined (TODO)
|
8685 | a750fc0b | j_mayer | /* PowerPC Cell v3.1 */
|
8686 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.1", CPU_POWERPC_CELL_v31, 970), |
8687 | 2662a059 | j_mayer | #endif
|
8688 | 2662a059 | j_mayer | #if defined (TODO)
|
8689 | a750fc0b | j_mayer | /* PowerPC Cell v3.2 */
|
8690 | 80d11f44 | j_mayer | POWERPC_DEF("Cell_v3.2", CPU_POWERPC_CELL_v32, 970), |
8691 | 2662a059 | j_mayer | #endif
|
8692 | 2662a059 | j_mayer | #if defined (TODO)
|
8693 | a750fc0b | j_mayer | /* RS64 (Apache/A35) */
|
8694 | a750fc0b | j_mayer | /* This one seems to support the whole POWER2 instruction set
|
8695 | a750fc0b | j_mayer | * and the PowerPC 64 one.
|
8696 | a750fc0b | j_mayer | */
|
8697 | a750fc0b | j_mayer | /* What about A10 & A30 ? */
|
8698 | 80d11f44 | j_mayer | POWERPC_DEF("RS64", CPU_POWERPC_RS64, RS64),
|
8699 | 80d11f44 | j_mayer | POWERPC_DEF("Apache", CPU_POWERPC_RS64, RS64),
|
8700 | 80d11f44 | j_mayer | POWERPC_DEF("A35", CPU_POWERPC_RS64, RS64),
|
8701 | 3a607854 | j_mayer | #endif
|
8702 | 3a607854 | j_mayer | #if defined (TODO)
|
8703 | a750fc0b | j_mayer | /* RS64-II (NorthStar/A50) */
|
8704 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-II", CPU_POWERPC_RS64II, RS64),
|
8705 | 80d11f44 | j_mayer | POWERPC_DEF("NorthStar", CPU_POWERPC_RS64II, RS64),
|
8706 | 80d11f44 | j_mayer | POWERPC_DEF("A50", CPU_POWERPC_RS64II, RS64),
|
8707 | 3a607854 | j_mayer | #endif
|
8708 | 3a607854 | j_mayer | #if defined (TODO)
|
8709 | a750fc0b | j_mayer | /* RS64-III (Pulsar) */
|
8710 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-III", CPU_POWERPC_RS64III, RS64),
|
8711 | 80d11f44 | j_mayer | POWERPC_DEF("Pulsar", CPU_POWERPC_RS64III, RS64),
|
8712 | 2662a059 | j_mayer | #endif
|
8713 | 2662a059 | j_mayer | #if defined (TODO)
|
8714 | a750fc0b | j_mayer | /* RS64-IV (IceStar/IStar/SStar) */
|
8715 | 80d11f44 | j_mayer | POWERPC_DEF("RS64-IV", CPU_POWERPC_RS64IV, RS64),
|
8716 | 80d11f44 | j_mayer | POWERPC_DEF("IceStar", CPU_POWERPC_RS64IV, RS64),
|
8717 | 80d11f44 | j_mayer | POWERPC_DEF("IStar", CPU_POWERPC_RS64IV, RS64),
|
8718 | 80d11f44 | j_mayer | POWERPC_DEF("SStar", CPU_POWERPC_RS64IV, RS64),
|
8719 | 3a607854 | j_mayer | #endif
|
8720 | a750fc0b | j_mayer | #endif /* defined (TARGET_PPC64) */ |
8721 | a750fc0b | j_mayer | /* POWER */
|
8722 | 3fc6c082 | bellard | #if defined (TODO)
|
8723 | a750fc0b | j_mayer | /* Original POWER */
|
8724 | 80d11f44 | j_mayer | POWERPC_DEF("POWER", CPU_POWERPC_POWER, POWER),
|
8725 | 80d11f44 | j_mayer | POWERPC_DEF("RIOS", CPU_POWERPC_POWER, POWER),
|
8726 | 80d11f44 | j_mayer | POWERPC_DEF("RSC", CPU_POWERPC_POWER, POWER),
|
8727 | 80d11f44 | j_mayer | POWERPC_DEF("RSC3308", CPU_POWERPC_POWER, POWER),
|
8728 | 80d11f44 | j_mayer | POWERPC_DEF("RSC4608", CPU_POWERPC_POWER, POWER),
|
8729 | 76a66253 | j_mayer | #endif
|
8730 | 76a66253 | j_mayer | #if defined (TODO)
|
8731 | a750fc0b | j_mayer | /* POWER2 */
|
8732 | 80d11f44 | j_mayer | POWERPC_DEF("POWER2", CPU_POWERPC_POWER2, POWER),
|
8733 | 80d11f44 | j_mayer | POWERPC_DEF("RSC2", CPU_POWERPC_POWER2, POWER),
|
8734 | 80d11f44 | j_mayer | POWERPC_DEF("P2SC", CPU_POWERPC_POWER2, POWER),
|
8735 | a750fc0b | j_mayer | #endif
|
8736 | a750fc0b | j_mayer | /* PA semi cores */
|
8737 | a750fc0b | j_mayer | #if defined (TODO)
|
8738 | a750fc0b | j_mayer | /* PA PA6T */
|
8739 | 80d11f44 | j_mayer | POWERPC_DEF("PA6T", CPU_POWERPC_PA6T, PA6T),
|
8740 | a750fc0b | j_mayer | #endif
|
8741 | a750fc0b | j_mayer | /* Generic PowerPCs */
|
8742 | a750fc0b | j_mayer | #if defined (TARGET_PPC64)
|
8743 | 80d11f44 | j_mayer | POWERPC_DEF("ppc64", CPU_POWERPC_PPC64, PPC64),
|
8744 | a750fc0b | j_mayer | #endif
|
8745 | 80d11f44 | j_mayer | POWERPC_DEF("ppc32", CPU_POWERPC_PPC32, PPC32),
|
8746 | 80d11f44 | j_mayer | POWERPC_DEF("ppc", CPU_POWERPC_DEFAULT, DEFAULT),
|
8747 | a750fc0b | j_mayer | /* Fallback */
|
8748 | 80d11f44 | j_mayer | POWERPC_DEF("default", CPU_POWERPC_DEFAULT, DEFAULT),
|
8749 | a750fc0b | j_mayer | }; |
8750 | a750fc0b | j_mayer | |
8751 | a750fc0b | j_mayer | /*****************************************************************************/
|
8752 | a750fc0b | j_mayer | /* Generic CPU instanciation routine */
|
8753 | aaed909a | bellard | static void init_ppc_proc (CPUPPCState *env, const ppc_def_t *def) |
8754 | a750fc0b | j_mayer | { |
8755 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
8756 | e1833e1f | j_mayer | int i;
|
8757 | e1833e1f | j_mayer | |
8758 | a750fc0b | j_mayer | env->irq_inputs = NULL;
|
8759 | e1833e1f | j_mayer | /* Set all exception vectors to an invalid address */
|
8760 | e1833e1f | j_mayer | for (i = 0; i < POWERPC_EXCP_NB; i++) |
8761 | e1833e1f | j_mayer | env->excp_vectors[i] = (target_ulong)(-1ULL);
|
8762 | e1833e1f | j_mayer | env->excp_prefix = 0x00000000;
|
8763 | e1833e1f | j_mayer | env->ivor_mask = 0x00000000;
|
8764 | e1833e1f | j_mayer | env->ivpr_mask = 0x00000000;
|
8765 | a750fc0b | j_mayer | /* Default MMU definitions */
|
8766 | a750fc0b | j_mayer | env->nb_BATs = 0;
|
8767 | a750fc0b | j_mayer | env->nb_tlb = 0;
|
8768 | a750fc0b | j_mayer | env->nb_ways = 0;
|
8769 | f2e63a42 | j_mayer | #endif
|
8770 | a750fc0b | j_mayer | /* Register SPR common to all PowerPC implementations */
|
8771 | a750fc0b | j_mayer | gen_spr_generic(env); |
8772 | a750fc0b | j_mayer | spr_register(env, SPR_PVR, "PVR",
|
8773 | a750fc0b | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
8774 | a750fc0b | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8775 | a750fc0b | j_mayer | def->pvr); |
8776 | 80d11f44 | j_mayer | /* Register SVR if it's defined to anything else than POWERPC_SVR_NONE */
|
8777 | 80d11f44 | j_mayer | if (def->svr != POWERPC_SVR_NONE) {
|
8778 | 80d11f44 | j_mayer | if (def->svr & POWERPC_SVR_E500) {
|
8779 | 80d11f44 | j_mayer | spr_register(env, SPR_E500_SVR, "SVR",
|
8780 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
8781 | 80d11f44 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8782 | 80d11f44 | j_mayer | def->svr & ~POWERPC_SVR_E500); |
8783 | 80d11f44 | j_mayer | } else {
|
8784 | 80d11f44 | j_mayer | spr_register(env, SPR_SVR, "SVR",
|
8785 | 80d11f44 | j_mayer | SPR_NOACCESS, SPR_NOACCESS, |
8786 | 80d11f44 | j_mayer | &spr_read_generic, SPR_NOACCESS, |
8787 | 80d11f44 | j_mayer | def->svr); |
8788 | 80d11f44 | j_mayer | } |
8789 | 80d11f44 | j_mayer | } |
8790 | a750fc0b | j_mayer | /* PowerPC implementation specific initialisations (SPRs, timers, ...) */
|
8791 | a750fc0b | j_mayer | (*def->init_proc)(env); |
8792 | 25ba3a68 | j_mayer | /* MSR bits & flags consistency checks */
|
8793 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 25)) { |
8794 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_SPE | POWERPC_FLAG_VRE)) {
|
8795 | 25ba3a68 | j_mayer | case POWERPC_FLAG_SPE:
|
8796 | 25ba3a68 | j_mayer | case POWERPC_FLAG_VRE:
|
8797 | 25ba3a68 | j_mayer | break;
|
8798 | 25ba3a68 | j_mayer | default:
|
8799 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8800 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_SPE or POWERPC_FLAG_VRE\n");
|
8801 | 25ba3a68 | j_mayer | exit(1);
|
8802 | 25ba3a68 | j_mayer | } |
8803 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_SPE | POWERPC_FLAG_VRE)) { |
8804 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8805 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_SPE nor POWERPC_FLAG_VRE\n");
|
8806 | 25ba3a68 | j_mayer | exit(1);
|
8807 | 25ba3a68 | j_mayer | } |
8808 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 17)) { |
8809 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_TGPR | POWERPC_FLAG_CE)) {
|
8810 | 25ba3a68 | j_mayer | case POWERPC_FLAG_TGPR:
|
8811 | 25ba3a68 | j_mayer | case POWERPC_FLAG_CE:
|
8812 | 25ba3a68 | j_mayer | break;
|
8813 | 25ba3a68 | j_mayer | default:
|
8814 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8815 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_TGPR or POWERPC_FLAG_CE\n");
|
8816 | 25ba3a68 | j_mayer | exit(1);
|
8817 | 25ba3a68 | j_mayer | } |
8818 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_TGPR | POWERPC_FLAG_CE)) { |
8819 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8820 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_TGPR nor POWERPC_FLAG_CE\n");
|
8821 | 25ba3a68 | j_mayer | exit(1);
|
8822 | 25ba3a68 | j_mayer | } |
8823 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 10)) { |
8824 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_SE | POWERPC_FLAG_DWE |
|
8825 | 25ba3a68 | j_mayer | POWERPC_FLAG_UBLE)) { |
8826 | 25ba3a68 | j_mayer | case POWERPC_FLAG_SE:
|
8827 | 25ba3a68 | j_mayer | case POWERPC_FLAG_DWE:
|
8828 | 25ba3a68 | j_mayer | case POWERPC_FLAG_UBLE:
|
8829 | 25ba3a68 | j_mayer | break;
|
8830 | 25ba3a68 | j_mayer | default:
|
8831 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8832 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_SE or POWERPC_FLAG_DWE or "
|
8833 | 25ba3a68 | j_mayer | "POWERPC_FLAG_UBLE\n");
|
8834 | 25ba3a68 | j_mayer | exit(1);
|
8835 | 25ba3a68 | j_mayer | } |
8836 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_SE | POWERPC_FLAG_DWE | |
8837 | 25ba3a68 | j_mayer | POWERPC_FLAG_UBLE)) { |
8838 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8839 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_SE nor POWERPC_FLAG_DWE nor "
|
8840 | 25ba3a68 | j_mayer | "POWERPC_FLAG_UBLE\n");
|
8841 | 25ba3a68 | j_mayer | exit(1);
|
8842 | 25ba3a68 | j_mayer | } |
8843 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 9)) { |
8844 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_BE | POWERPC_FLAG_DE)) {
|
8845 | 25ba3a68 | j_mayer | case POWERPC_FLAG_BE:
|
8846 | 25ba3a68 | j_mayer | case POWERPC_FLAG_DE:
|
8847 | 25ba3a68 | j_mayer | break;
|
8848 | 25ba3a68 | j_mayer | default:
|
8849 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8850 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_BE or POWERPC_FLAG_DE\n");
|
8851 | 25ba3a68 | j_mayer | exit(1);
|
8852 | 25ba3a68 | j_mayer | } |
8853 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_BE | POWERPC_FLAG_DE)) { |
8854 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8855 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_BE nor POWERPC_FLAG_DE\n");
|
8856 | 25ba3a68 | j_mayer | exit(1);
|
8857 | 25ba3a68 | j_mayer | } |
8858 | 25ba3a68 | j_mayer | if (env->msr_mask & (1 << 2)) { |
8859 | 25ba3a68 | j_mayer | switch (env->flags & (POWERPC_FLAG_PX | POWERPC_FLAG_PMM)) {
|
8860 | 25ba3a68 | j_mayer | case POWERPC_FLAG_PX:
|
8861 | 25ba3a68 | j_mayer | case POWERPC_FLAG_PMM:
|
8862 | 25ba3a68 | j_mayer | break;
|
8863 | 25ba3a68 | j_mayer | default:
|
8864 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8865 | 25ba3a68 | j_mayer | "Should define POWERPC_FLAG_PX or POWERPC_FLAG_PMM\n");
|
8866 | 25ba3a68 | j_mayer | exit(1);
|
8867 | 25ba3a68 | j_mayer | } |
8868 | 25ba3a68 | j_mayer | } else if (env->flags & (POWERPC_FLAG_PX | POWERPC_FLAG_PMM)) { |
8869 | 25ba3a68 | j_mayer | fprintf(stderr, "PowerPC MSR definition inconsistency\n"
|
8870 | 25ba3a68 | j_mayer | "Should not define POWERPC_FLAG_PX nor POWERPC_FLAG_PMM\n");
|
8871 | 25ba3a68 | j_mayer | exit(1);
|
8872 | 25ba3a68 | j_mayer | } |
8873 | 4018bae9 | j_mayer | if ((env->flags & (POWERPC_FLAG_RTC_CLK | POWERPC_FLAG_BUS_CLK)) == 0) { |
8874 | 4018bae9 | j_mayer | fprintf(stderr, "PowerPC flags inconsistency\n"
|
8875 | 4018bae9 | j_mayer | "Should define the time-base and decrementer clock source\n");
|
8876 | 4018bae9 | j_mayer | exit(1);
|
8877 | 4018bae9 | j_mayer | } |
8878 | a750fc0b | j_mayer | /* Allocate TLBs buffer when needed */
|
8879 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
8880 | a750fc0b | j_mayer | if (env->nb_tlb != 0) { |
8881 | a750fc0b | j_mayer | int nb_tlb = env->nb_tlb;
|
8882 | a750fc0b | j_mayer | if (env->id_tlbs != 0) |
8883 | a750fc0b | j_mayer | nb_tlb *= 2;
|
8884 | a750fc0b | j_mayer | env->tlb = qemu_mallocz(nb_tlb * sizeof(ppc_tlb_t));
|
8885 | a750fc0b | j_mayer | /* Pre-compute some useful values */
|
8886 | a750fc0b | j_mayer | env->tlb_per_way = env->nb_tlb / env->nb_ways; |
8887 | a750fc0b | j_mayer | } |
8888 | a750fc0b | j_mayer | if (env->irq_inputs == NULL) { |
8889 | a750fc0b | j_mayer | fprintf(stderr, "WARNING: no internal IRQ controller registered.\n"
|
8890 | a750fc0b | j_mayer | " Attempt Qemu to crash very soon !\n");
|
8891 | a750fc0b | j_mayer | } |
8892 | a750fc0b | j_mayer | #endif
|
8893 | 2f462816 | j_mayer | if (env->check_pow == NULL) { |
8894 | 2f462816 | j_mayer | fprintf(stderr, "WARNING: no power management check handler "
|
8895 | 2f462816 | j_mayer | "registered.\n"
|
8896 | 2f462816 | j_mayer | " Attempt Qemu to crash very soon !\n");
|
8897 | 2f462816 | j_mayer | } |
8898 | a750fc0b | j_mayer | } |
8899 | a750fc0b | j_mayer | |
8900 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
8901 | a750fc0b | j_mayer | static void dump_ppc_sprs (CPUPPCState *env) |
8902 | a750fc0b | j_mayer | { |
8903 | a750fc0b | j_mayer | ppc_spr_t *spr; |
8904 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
8905 | a750fc0b | j_mayer | uint32_t sr, sw; |
8906 | a750fc0b | j_mayer | #endif
|
8907 | a750fc0b | j_mayer | uint32_t ur, uw; |
8908 | a750fc0b | j_mayer | int i, j, n;
|
8909 | a750fc0b | j_mayer | |
8910 | a750fc0b | j_mayer | printf("Special purpose registers:\n");
|
8911 | a750fc0b | j_mayer | for (i = 0; i < 32; i++) { |
8912 | a750fc0b | j_mayer | for (j = 0; j < 32; j++) { |
8913 | a750fc0b | j_mayer | n = (i << 5) | j;
|
8914 | a750fc0b | j_mayer | spr = &env->spr_cb[n]; |
8915 | a750fc0b | j_mayer | uw = spr->uea_write != NULL && spr->uea_write != SPR_NOACCESS;
|
8916 | a750fc0b | j_mayer | ur = spr->uea_read != NULL && spr->uea_read != SPR_NOACCESS;
|
8917 | a750fc0b | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
8918 | a750fc0b | j_mayer | sw = spr->oea_write != NULL && spr->oea_write != SPR_NOACCESS;
|
8919 | a750fc0b | j_mayer | sr = spr->oea_read != NULL && spr->oea_read != SPR_NOACCESS;
|
8920 | a750fc0b | j_mayer | if (sw || sr || uw || ur) {
|
8921 | a750fc0b | j_mayer | printf("SPR: %4d (%03x) %-8s s%c%c u%c%c\n",
|
8922 | a750fc0b | j_mayer | (i << 5) | j, (i << 5) | j, spr->name, |
8923 | a750fc0b | j_mayer | sw ? 'w' : '-', sr ? 'r' : '-', |
8924 | a750fc0b | j_mayer | uw ? 'w' : '-', ur ? 'r' : '-'); |
8925 | a750fc0b | j_mayer | } |
8926 | a750fc0b | j_mayer | #else
|
8927 | a750fc0b | j_mayer | if (uw || ur) {
|
8928 | a750fc0b | j_mayer | printf("SPR: %4d (%03x) %-8s u%c%c\n",
|
8929 | a750fc0b | j_mayer | (i << 5) | j, (i << 5) | j, spr->name, |
8930 | a750fc0b | j_mayer | uw ? 'w' : '-', ur ? 'r' : '-'); |
8931 | a750fc0b | j_mayer | } |
8932 | a750fc0b | j_mayer | #endif
|
8933 | a750fc0b | j_mayer | } |
8934 | a750fc0b | j_mayer | } |
8935 | a750fc0b | j_mayer | fflush(stdout); |
8936 | a750fc0b | j_mayer | fflush(stderr); |
8937 | a750fc0b | j_mayer | } |
8938 | a750fc0b | j_mayer | #endif
|
8939 | a750fc0b | j_mayer | |
8940 | a750fc0b | j_mayer | /*****************************************************************************/
|
8941 | a750fc0b | j_mayer | #include <stdlib.h> |
8942 | a750fc0b | j_mayer | #include <string.h> |
8943 | a750fc0b | j_mayer | |
8944 | a750fc0b | j_mayer | int fflush (FILE *stream);
|
8945 | a750fc0b | j_mayer | |
8946 | a750fc0b | j_mayer | /* Opcode types */
|
8947 | a750fc0b | j_mayer | enum {
|
8948 | a750fc0b | j_mayer | PPC_DIRECT = 0, /* Opcode routine */ |
8949 | a750fc0b | j_mayer | PPC_INDIRECT = 1, /* Indirect opcode table */ |
8950 | a750fc0b | j_mayer | }; |
8951 | a750fc0b | j_mayer | |
8952 | a750fc0b | j_mayer | static inline int is_indirect_opcode (void *handler) |
8953 | a750fc0b | j_mayer | { |
8954 | a750fc0b | j_mayer | return ((unsigned long)handler & 0x03) == PPC_INDIRECT; |
8955 | a750fc0b | j_mayer | } |
8956 | a750fc0b | j_mayer | |
8957 | a750fc0b | j_mayer | static inline opc_handler_t **ind_table(void *handler) |
8958 | a750fc0b | j_mayer | { |
8959 | a750fc0b | j_mayer | return (opc_handler_t **)((unsigned long)handler & ~3); |
8960 | a750fc0b | j_mayer | } |
8961 | a750fc0b | j_mayer | |
8962 | a750fc0b | j_mayer | /* Instruction table creation */
|
8963 | a750fc0b | j_mayer | /* Opcodes tables creation */
|
8964 | a750fc0b | j_mayer | static void fill_new_table (opc_handler_t **table, int len) |
8965 | a750fc0b | j_mayer | { |
8966 | a750fc0b | j_mayer | int i;
|
8967 | a750fc0b | j_mayer | |
8968 | a750fc0b | j_mayer | for (i = 0; i < len; i++) |
8969 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
8970 | a750fc0b | j_mayer | } |
8971 | a750fc0b | j_mayer | |
8972 | a750fc0b | j_mayer | static int create_new_table (opc_handler_t **table, unsigned char idx) |
8973 | a750fc0b | j_mayer | { |
8974 | a750fc0b | j_mayer | opc_handler_t **tmp; |
8975 | a750fc0b | j_mayer | |
8976 | a750fc0b | j_mayer | tmp = malloc(0x20 * sizeof(opc_handler_t)); |
8977 | a750fc0b | j_mayer | if (tmp == NULL) |
8978 | a750fc0b | j_mayer | return -1; |
8979 | a750fc0b | j_mayer | fill_new_table(tmp, 0x20);
|
8980 | a750fc0b | j_mayer | table[idx] = (opc_handler_t *)((unsigned long)tmp | PPC_INDIRECT); |
8981 | a750fc0b | j_mayer | |
8982 | a750fc0b | j_mayer | return 0; |
8983 | a750fc0b | j_mayer | } |
8984 | a750fc0b | j_mayer | |
8985 | a750fc0b | j_mayer | static int insert_in_table (opc_handler_t **table, unsigned char idx, |
8986 | a750fc0b | j_mayer | opc_handler_t *handler) |
8987 | a750fc0b | j_mayer | { |
8988 | a750fc0b | j_mayer | if (table[idx] != &invalid_handler)
|
8989 | a750fc0b | j_mayer | return -1; |
8990 | a750fc0b | j_mayer | table[idx] = handler; |
8991 | a750fc0b | j_mayer | |
8992 | a750fc0b | j_mayer | return 0; |
8993 | a750fc0b | j_mayer | } |
8994 | a750fc0b | j_mayer | |
8995 | a750fc0b | j_mayer | static int register_direct_insn (opc_handler_t **ppc_opcodes, |
8996 | a750fc0b | j_mayer | unsigned char idx, opc_handler_t *handler) |
8997 | a750fc0b | j_mayer | { |
8998 | a750fc0b | j_mayer | if (insert_in_table(ppc_opcodes, idx, handler) < 0) { |
8999 | a750fc0b | j_mayer | printf("*** ERROR: opcode %02x already assigned in main "
|
9000 | a750fc0b | j_mayer | "opcode table\n", idx);
|
9001 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9002 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9003 | 4c1b1bfe | j_mayer | ppc_opcodes[idx]->oname, handler->oname); |
9004 | 4c1b1bfe | j_mayer | #endif
|
9005 | a750fc0b | j_mayer | return -1; |
9006 | a750fc0b | j_mayer | } |
9007 | a750fc0b | j_mayer | |
9008 | a750fc0b | j_mayer | return 0; |
9009 | a750fc0b | j_mayer | } |
9010 | a750fc0b | j_mayer | |
9011 | a750fc0b | j_mayer | static int register_ind_in_table (opc_handler_t **table, |
9012 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9013 | a750fc0b | j_mayer | opc_handler_t *handler) |
9014 | a750fc0b | j_mayer | { |
9015 | a750fc0b | j_mayer | if (table[idx1] == &invalid_handler) {
|
9016 | a750fc0b | j_mayer | if (create_new_table(table, idx1) < 0) { |
9017 | a750fc0b | j_mayer | printf("*** ERROR: unable to create indirect table "
|
9018 | a750fc0b | j_mayer | "idx=%02x\n", idx1);
|
9019 | a750fc0b | j_mayer | return -1; |
9020 | a750fc0b | j_mayer | } |
9021 | a750fc0b | j_mayer | } else {
|
9022 | a750fc0b | j_mayer | if (!is_indirect_opcode(table[idx1])) {
|
9023 | a750fc0b | j_mayer | printf("*** ERROR: idx %02x already assigned to a direct "
|
9024 | a750fc0b | j_mayer | "opcode\n", idx1);
|
9025 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9026 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9027 | 4c1b1bfe | j_mayer | ind_table(table[idx1])[idx2]->oname, handler->oname); |
9028 | 4c1b1bfe | j_mayer | #endif
|
9029 | a750fc0b | j_mayer | return -1; |
9030 | a750fc0b | j_mayer | } |
9031 | 3a607854 | j_mayer | } |
9032 | a750fc0b | j_mayer | if (handler != NULL && |
9033 | a750fc0b | j_mayer | insert_in_table(ind_table(table[idx1]), idx2, handler) < 0) {
|
9034 | a750fc0b | j_mayer | printf("*** ERROR: opcode %02x already assigned in "
|
9035 | a750fc0b | j_mayer | "opcode table %02x\n", idx2, idx1);
|
9036 | 4c1b1bfe | j_mayer | #if defined(DO_PPC_STATISTICS) || defined(PPC_DUMP_CPU)
|
9037 | 4c1b1bfe | j_mayer | printf(" Registered handler '%s' - new handler '%s'\n",
|
9038 | 4c1b1bfe | j_mayer | ind_table(table[idx1])[idx2]->oname, handler->oname); |
9039 | 4c1b1bfe | j_mayer | #endif
|
9040 | a750fc0b | j_mayer | return -1; |
9041 | 3a607854 | j_mayer | } |
9042 | a750fc0b | j_mayer | |
9043 | a750fc0b | j_mayer | return 0; |
9044 | a750fc0b | j_mayer | } |
9045 | a750fc0b | j_mayer | |
9046 | a750fc0b | j_mayer | static int register_ind_insn (opc_handler_t **ppc_opcodes, |
9047 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9048 | a750fc0b | j_mayer | opc_handler_t *handler) |
9049 | a750fc0b | j_mayer | { |
9050 | a750fc0b | j_mayer | int ret;
|
9051 | a750fc0b | j_mayer | |
9052 | a750fc0b | j_mayer | ret = register_ind_in_table(ppc_opcodes, idx1, idx2, handler); |
9053 | a750fc0b | j_mayer | |
9054 | a750fc0b | j_mayer | return ret;
|
9055 | a750fc0b | j_mayer | } |
9056 | a750fc0b | j_mayer | |
9057 | a750fc0b | j_mayer | static int register_dblind_insn (opc_handler_t **ppc_opcodes, |
9058 | a750fc0b | j_mayer | unsigned char idx1, unsigned char idx2, |
9059 | a750fc0b | j_mayer | unsigned char idx3, opc_handler_t *handler) |
9060 | a750fc0b | j_mayer | { |
9061 | a750fc0b | j_mayer | if (register_ind_in_table(ppc_opcodes, idx1, idx2, NULL) < 0) { |
9062 | a750fc0b | j_mayer | printf("*** ERROR: unable to join indirect table idx "
|
9063 | a750fc0b | j_mayer | "[%02x-%02x]\n", idx1, idx2);
|
9064 | a750fc0b | j_mayer | return -1; |
9065 | a750fc0b | j_mayer | } |
9066 | a750fc0b | j_mayer | if (register_ind_in_table(ind_table(ppc_opcodes[idx1]), idx2, idx3,
|
9067 | a750fc0b | j_mayer | handler) < 0) {
|
9068 | a750fc0b | j_mayer | printf("*** ERROR: unable to insert opcode "
|
9069 | a750fc0b | j_mayer | "[%02x-%02x-%02x]\n", idx1, idx2, idx3);
|
9070 | a750fc0b | j_mayer | return -1; |
9071 | a750fc0b | j_mayer | } |
9072 | a750fc0b | j_mayer | |
9073 | a750fc0b | j_mayer | return 0; |
9074 | a750fc0b | j_mayer | } |
9075 | a750fc0b | j_mayer | |
9076 | a750fc0b | j_mayer | static int register_insn (opc_handler_t **ppc_opcodes, opcode_t *insn) |
9077 | a750fc0b | j_mayer | { |
9078 | a750fc0b | j_mayer | if (insn->opc2 != 0xFF) { |
9079 | a750fc0b | j_mayer | if (insn->opc3 != 0xFF) { |
9080 | a750fc0b | j_mayer | if (register_dblind_insn(ppc_opcodes, insn->opc1, insn->opc2,
|
9081 | a750fc0b | j_mayer | insn->opc3, &insn->handler) < 0)
|
9082 | a750fc0b | j_mayer | return -1; |
9083 | a750fc0b | j_mayer | } else {
|
9084 | a750fc0b | j_mayer | if (register_ind_insn(ppc_opcodes, insn->opc1,
|
9085 | a750fc0b | j_mayer | insn->opc2, &insn->handler) < 0)
|
9086 | a750fc0b | j_mayer | return -1; |
9087 | a750fc0b | j_mayer | } |
9088 | a750fc0b | j_mayer | } else {
|
9089 | a750fc0b | j_mayer | if (register_direct_insn(ppc_opcodes, insn->opc1, &insn->handler) < 0) |
9090 | a750fc0b | j_mayer | return -1; |
9091 | a750fc0b | j_mayer | } |
9092 | a750fc0b | j_mayer | |
9093 | a750fc0b | j_mayer | return 0; |
9094 | a750fc0b | j_mayer | } |
9095 | a750fc0b | j_mayer | |
9096 | a750fc0b | j_mayer | static int test_opcode_table (opc_handler_t **table, int len) |
9097 | a750fc0b | j_mayer | { |
9098 | a750fc0b | j_mayer | int i, count, tmp;
|
9099 | a750fc0b | j_mayer | |
9100 | a750fc0b | j_mayer | for (i = 0, count = 0; i < len; i++) { |
9101 | a750fc0b | j_mayer | /* Consistency fixup */
|
9102 | a750fc0b | j_mayer | if (table[i] == NULL) |
9103 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
9104 | a750fc0b | j_mayer | if (table[i] != &invalid_handler) {
|
9105 | a750fc0b | j_mayer | if (is_indirect_opcode(table[i])) {
|
9106 | a750fc0b | j_mayer | tmp = test_opcode_table(ind_table(table[i]), 0x20);
|
9107 | a750fc0b | j_mayer | if (tmp == 0) { |
9108 | a750fc0b | j_mayer | free(table[i]); |
9109 | a750fc0b | j_mayer | table[i] = &invalid_handler; |
9110 | a750fc0b | j_mayer | } else {
|
9111 | a750fc0b | j_mayer | count++; |
9112 | a750fc0b | j_mayer | } |
9113 | a750fc0b | j_mayer | } else {
|
9114 | a750fc0b | j_mayer | count++; |
9115 | a750fc0b | j_mayer | } |
9116 | a750fc0b | j_mayer | } |
9117 | a750fc0b | j_mayer | } |
9118 | a750fc0b | j_mayer | |
9119 | a750fc0b | j_mayer | return count;
|
9120 | a750fc0b | j_mayer | } |
9121 | a750fc0b | j_mayer | |
9122 | a750fc0b | j_mayer | static void fix_opcode_tables (opc_handler_t **ppc_opcodes) |
9123 | a750fc0b | j_mayer | { |
9124 | a750fc0b | j_mayer | if (test_opcode_table(ppc_opcodes, 0x40) == 0) |
9125 | a750fc0b | j_mayer | printf("*** WARNING: no opcode defined !\n");
|
9126 | a750fc0b | j_mayer | } |
9127 | a750fc0b | j_mayer | |
9128 | a750fc0b | j_mayer | /*****************************************************************************/
|
9129 | aaed909a | bellard | static int create_ppc_opcodes (CPUPPCState *env, const ppc_def_t *def) |
9130 | a750fc0b | j_mayer | { |
9131 | a750fc0b | j_mayer | opcode_t *opc, *start, *end; |
9132 | a750fc0b | j_mayer | |
9133 | a750fc0b | j_mayer | fill_new_table(env->opcodes, 0x40);
|
9134 | a750fc0b | j_mayer | if (&opc_start < &opc_end) {
|
9135 | a750fc0b | j_mayer | start = &opc_start; |
9136 | a750fc0b | j_mayer | end = &opc_end; |
9137 | a750fc0b | j_mayer | } else {
|
9138 | a750fc0b | j_mayer | start = &opc_end; |
9139 | a750fc0b | j_mayer | end = &opc_start; |
9140 | a750fc0b | j_mayer | } |
9141 | a750fc0b | j_mayer | for (opc = start + 1; opc != end; opc++) { |
9142 | a750fc0b | j_mayer | if ((opc->handler.type & def->insns_flags) != 0) { |
9143 | a750fc0b | j_mayer | if (register_insn(env->opcodes, opc) < 0) { |
9144 | a750fc0b | j_mayer | printf("*** ERROR initializing PowerPC instruction "
|
9145 | a750fc0b | j_mayer | "0x%02x 0x%02x 0x%02x\n", opc->opc1, opc->opc2,
|
9146 | a750fc0b | j_mayer | opc->opc3); |
9147 | a750fc0b | j_mayer | return -1; |
9148 | a750fc0b | j_mayer | } |
9149 | a750fc0b | j_mayer | } |
9150 | a750fc0b | j_mayer | } |
9151 | a750fc0b | j_mayer | fix_opcode_tables(env->opcodes); |
9152 | a750fc0b | j_mayer | fflush(stdout); |
9153 | a750fc0b | j_mayer | fflush(stderr); |
9154 | a750fc0b | j_mayer | |
9155 | a750fc0b | j_mayer | return 0; |
9156 | a750fc0b | j_mayer | } |
9157 | a750fc0b | j_mayer | |
9158 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
9159 | 25ba3a68 | j_mayer | static void dump_ppc_insns (CPUPPCState *env) |
9160 | a750fc0b | j_mayer | { |
9161 | a750fc0b | j_mayer | opc_handler_t **table, *handler; |
9162 | 4c1b1bfe | j_mayer | const unsigned char *p, *q; |
9163 | a750fc0b | j_mayer | uint8_t opc1, opc2, opc3; |
9164 | a750fc0b | j_mayer | |
9165 | a750fc0b | j_mayer | printf("Instructions set:\n");
|
9166 | a750fc0b | j_mayer | /* opc1 is 6 bits long */
|
9167 | a750fc0b | j_mayer | for (opc1 = 0x00; opc1 < 0x40; opc1++) { |
9168 | a750fc0b | j_mayer | table = env->opcodes; |
9169 | a750fc0b | j_mayer | handler = table[opc1]; |
9170 | a750fc0b | j_mayer | if (is_indirect_opcode(handler)) {
|
9171 | a750fc0b | j_mayer | /* opc2 is 5 bits long */
|
9172 | a750fc0b | j_mayer | for (opc2 = 0; opc2 < 0x20; opc2++) { |
9173 | a750fc0b | j_mayer | table = env->opcodes; |
9174 | a750fc0b | j_mayer | handler = env->opcodes[opc1]; |
9175 | a750fc0b | j_mayer | table = ind_table(handler); |
9176 | a750fc0b | j_mayer | handler = table[opc2]; |
9177 | a750fc0b | j_mayer | if (is_indirect_opcode(handler)) {
|
9178 | a750fc0b | j_mayer | table = ind_table(handler); |
9179 | a750fc0b | j_mayer | /* opc3 is 5 bits long */
|
9180 | a750fc0b | j_mayer | for (opc3 = 0; opc3 < 0x20; opc3++) { |
9181 | a750fc0b | j_mayer | handler = table[opc3]; |
9182 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9183 | 4c1b1bfe | j_mayer | /* Special hack to properly dump SPE insns */
|
9184 | 4c1b1bfe | j_mayer | p = strchr(handler->oname, '_');
|
9185 | 4c1b1bfe | j_mayer | if (p == NULL) { |
9186 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9187 | 4c1b1bfe | j_mayer | "%s\n",
|
9188 | 4c1b1bfe | j_mayer | opc1, opc2, opc3, opc1, |
9189 | 4c1b1bfe | j_mayer | (opc3 << 5) | opc2,
|
9190 | 4c1b1bfe | j_mayer | handler->oname); |
9191 | 4c1b1bfe | j_mayer | } else {
|
9192 | 4c1b1bfe | j_mayer | q = "speundef";
|
9193 | 4c1b1bfe | j_mayer | if ((p - handler->oname) != strlen(q) ||
|
9194 | 4c1b1bfe | j_mayer | memcmp(handler->oname, q, strlen(q)) != 0) {
|
9195 | 4c1b1bfe | j_mayer | /* First instruction */
|
9196 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9197 | 4c1b1bfe | j_mayer | "%.*s\n",
|
9198 | 4c1b1bfe | j_mayer | opc1, opc2 << 1, opc3, opc1,
|
9199 | 4c1b1bfe | j_mayer | (opc3 << 6) | (opc2 << 1), |
9200 | 4c1b1bfe | j_mayer | (int)(p - handler->oname),
|
9201 | 4c1b1bfe | j_mayer | handler->oname); |
9202 | 4c1b1bfe | j_mayer | } |
9203 | 4c1b1bfe | j_mayer | if (strcmp(p + 1, q) != 0) { |
9204 | 4c1b1bfe | j_mayer | /* Second instruction */
|
9205 | 4c1b1bfe | j_mayer | printf("INSN: %02x %02x %02x (%02d %04d) : "
|
9206 | 4c1b1bfe | j_mayer | "%s\n",
|
9207 | 4c1b1bfe | j_mayer | opc1, (opc2 << 1) | 1, opc3, opc1, |
9208 | 4c1b1bfe | j_mayer | (opc3 << 6) | (opc2 << 1) | 1, |
9209 | 4c1b1bfe | j_mayer | p + 1);
|
9210 | 4c1b1bfe | j_mayer | } |
9211 | 4c1b1bfe | j_mayer | } |
9212 | a750fc0b | j_mayer | } |
9213 | a750fc0b | j_mayer | } |
9214 | a750fc0b | j_mayer | } else {
|
9215 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9216 | a750fc0b | j_mayer | printf("INSN: %02x %02x -- (%02d %04d) : %s\n",
|
9217 | a750fc0b | j_mayer | opc1, opc2, opc1, opc2, handler->oname); |
9218 | a750fc0b | j_mayer | } |
9219 | a750fc0b | j_mayer | } |
9220 | a750fc0b | j_mayer | } |
9221 | a750fc0b | j_mayer | } else {
|
9222 | a750fc0b | j_mayer | if (handler->handler != &gen_invalid) {
|
9223 | a750fc0b | j_mayer | printf("INSN: %02x -- -- (%02d ----) : %s\n",
|
9224 | a750fc0b | j_mayer | opc1, opc1, handler->oname); |
9225 | a750fc0b | j_mayer | } |
9226 | a750fc0b | j_mayer | } |
9227 | a750fc0b | j_mayer | } |
9228 | a750fc0b | j_mayer | } |
9229 | 3a607854 | j_mayer | #endif
|
9230 | a750fc0b | j_mayer | |
9231 | aaed909a | bellard | int cpu_ppc_register_internal (CPUPPCState *env, const ppc_def_t *def) |
9232 | a750fc0b | j_mayer | { |
9233 | a750fc0b | j_mayer | env->msr_mask = def->msr_mask; |
9234 | a750fc0b | j_mayer | env->mmu_model = def->mmu_model; |
9235 | a750fc0b | j_mayer | env->excp_model = def->excp_model; |
9236 | a750fc0b | j_mayer | env->bus_model = def->bus_model; |
9237 | d26bfc9a | j_mayer | env->flags = def->flags; |
9238 | 237c0af0 | j_mayer | env->bfd_mach = def->bfd_mach; |
9239 | 2f462816 | j_mayer | env->check_pow = def->check_pow; |
9240 | a750fc0b | j_mayer | if (create_ppc_opcodes(env, def) < 0) |
9241 | a750fc0b | j_mayer | return -1; |
9242 | a750fc0b | j_mayer | init_ppc_proc(env, def); |
9243 | a750fc0b | j_mayer | #if defined(PPC_DUMP_CPU)
|
9244 | 3a607854 | j_mayer | { |
9245 | a750fc0b | j_mayer | const unsigned char *mmu_model, *excp_model, *bus_model; |
9246 | a750fc0b | j_mayer | switch (env->mmu_model) {
|
9247 | a750fc0b | j_mayer | case POWERPC_MMU_32B:
|
9248 | a750fc0b | j_mayer | mmu_model = "PowerPC 32";
|
9249 | a750fc0b | j_mayer | break;
|
9250 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_6xx:
|
9251 | a750fc0b | j_mayer | mmu_model = "PowerPC 6xx/7xx with software driven TLBs";
|
9252 | a750fc0b | j_mayer | break;
|
9253 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_74xx:
|
9254 | a750fc0b | j_mayer | mmu_model = "PowerPC 74xx with software driven TLBs";
|
9255 | a750fc0b | j_mayer | break;
|
9256 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_4xx:
|
9257 | a750fc0b | j_mayer | mmu_model = "PowerPC 4xx with software driven TLBs";
|
9258 | a750fc0b | j_mayer | break;
|
9259 | a750fc0b | j_mayer | case POWERPC_MMU_SOFT_4xx_Z:
|
9260 | a750fc0b | j_mayer | mmu_model = "PowerPC 4xx with software driven TLBs "
|
9261 | a750fc0b | j_mayer | "and zones protections";
|
9262 | a750fc0b | j_mayer | break;
|
9263 | b4095fed | j_mayer | case POWERPC_MMU_REAL:
|
9264 | b4095fed | j_mayer | mmu_model = "PowerPC real mode only";
|
9265 | b4095fed | j_mayer | break;
|
9266 | b4095fed | j_mayer | case POWERPC_MMU_MPC8xx:
|
9267 | b4095fed | j_mayer | mmu_model = "PowerPC MPC8xx";
|
9268 | a750fc0b | j_mayer | break;
|
9269 | a750fc0b | j_mayer | case POWERPC_MMU_BOOKE:
|
9270 | a750fc0b | j_mayer | mmu_model = "PowerPC BookE";
|
9271 | a750fc0b | j_mayer | break;
|
9272 | a750fc0b | j_mayer | case POWERPC_MMU_BOOKE_FSL:
|
9273 | a750fc0b | j_mayer | mmu_model = "PowerPC BookE FSL";
|
9274 | a750fc0b | j_mayer | break;
|
9275 | b4095fed | j_mayer | case POWERPC_MMU_601:
|
9276 | b4095fed | j_mayer | mmu_model = "PowerPC 601";
|
9277 | b4095fed | j_mayer | break;
|
9278 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9279 | 00af685f | j_mayer | case POWERPC_MMU_64B:
|
9280 | 00af685f | j_mayer | mmu_model = "PowerPC 64";
|
9281 | 00af685f | j_mayer | break;
|
9282 | add78955 | j_mayer | case POWERPC_MMU_620:
|
9283 | add78955 | j_mayer | mmu_model = "PowerPC 620";
|
9284 | add78955 | j_mayer | break;
|
9285 | 00af685f | j_mayer | #endif
|
9286 | a750fc0b | j_mayer | default:
|
9287 | a750fc0b | j_mayer | mmu_model = "Unknown or invalid";
|
9288 | a750fc0b | j_mayer | break;
|
9289 | a750fc0b | j_mayer | } |
9290 | a750fc0b | j_mayer | switch (env->excp_model) {
|
9291 | a750fc0b | j_mayer | case POWERPC_EXCP_STD:
|
9292 | a750fc0b | j_mayer | excp_model = "PowerPC";
|
9293 | a750fc0b | j_mayer | break;
|
9294 | a750fc0b | j_mayer | case POWERPC_EXCP_40x:
|
9295 | a750fc0b | j_mayer | excp_model = "PowerPC 40x";
|
9296 | a750fc0b | j_mayer | break;
|
9297 | a750fc0b | j_mayer | case POWERPC_EXCP_601:
|
9298 | a750fc0b | j_mayer | excp_model = "PowerPC 601";
|
9299 | a750fc0b | j_mayer | break;
|
9300 | a750fc0b | j_mayer | case POWERPC_EXCP_602:
|
9301 | a750fc0b | j_mayer | excp_model = "PowerPC 602";
|
9302 | a750fc0b | j_mayer | break;
|
9303 | a750fc0b | j_mayer | case POWERPC_EXCP_603:
|
9304 | a750fc0b | j_mayer | excp_model = "PowerPC 603";
|
9305 | a750fc0b | j_mayer | break;
|
9306 | a750fc0b | j_mayer | case POWERPC_EXCP_603E:
|
9307 | a750fc0b | j_mayer | excp_model = "PowerPC 603e";
|
9308 | a750fc0b | j_mayer | break;
|
9309 | a750fc0b | j_mayer | case POWERPC_EXCP_604:
|
9310 | a750fc0b | j_mayer | excp_model = "PowerPC 604";
|
9311 | a750fc0b | j_mayer | break;
|
9312 | a750fc0b | j_mayer | case POWERPC_EXCP_7x0:
|
9313 | a750fc0b | j_mayer | excp_model = "PowerPC 740/750";
|
9314 | a750fc0b | j_mayer | break;
|
9315 | a750fc0b | j_mayer | case POWERPC_EXCP_7x5:
|
9316 | a750fc0b | j_mayer | excp_model = "PowerPC 745/755";
|
9317 | a750fc0b | j_mayer | break;
|
9318 | a750fc0b | j_mayer | case POWERPC_EXCP_74xx:
|
9319 | a750fc0b | j_mayer | excp_model = "PowerPC 74xx";
|
9320 | a750fc0b | j_mayer | break;
|
9321 | a750fc0b | j_mayer | case POWERPC_EXCP_BOOKE:
|
9322 | a750fc0b | j_mayer | excp_model = "PowerPC BookE";
|
9323 | a750fc0b | j_mayer | break;
|
9324 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9325 | 00af685f | j_mayer | case POWERPC_EXCP_970:
|
9326 | 00af685f | j_mayer | excp_model = "PowerPC 970";
|
9327 | 00af685f | j_mayer | break;
|
9328 | 00af685f | j_mayer | #endif
|
9329 | a750fc0b | j_mayer | default:
|
9330 | a750fc0b | j_mayer | excp_model = "Unknown or invalid";
|
9331 | a750fc0b | j_mayer | break;
|
9332 | a750fc0b | j_mayer | } |
9333 | a750fc0b | j_mayer | switch (env->bus_model) {
|
9334 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_6xx:
|
9335 | a750fc0b | j_mayer | bus_model = "PowerPC 6xx";
|
9336 | a750fc0b | j_mayer | break;
|
9337 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_BookE:
|
9338 | a750fc0b | j_mayer | bus_model = "PowerPC BookE";
|
9339 | a750fc0b | j_mayer | break;
|
9340 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_405:
|
9341 | a750fc0b | j_mayer | bus_model = "PowerPC 405";
|
9342 | a750fc0b | j_mayer | break;
|
9343 | a750fc0b | j_mayer | case PPC_FLAGS_INPUT_401:
|
9344 | a750fc0b | j_mayer | bus_model = "PowerPC 401/403";
|
9345 | a750fc0b | j_mayer | break;
|
9346 | b4095fed | j_mayer | case PPC_FLAGS_INPUT_RCPU:
|
9347 | b4095fed | j_mayer | bus_model = "RCPU / MPC8xx";
|
9348 | b4095fed | j_mayer | break;
|
9349 | 00af685f | j_mayer | #if defined (TARGET_PPC64)
|
9350 | 00af685f | j_mayer | case PPC_FLAGS_INPUT_970:
|
9351 | 00af685f | j_mayer | bus_model = "PowerPC 970";
|
9352 | 00af685f | j_mayer | break;
|
9353 | 00af685f | j_mayer | #endif
|
9354 | a750fc0b | j_mayer | default:
|
9355 | a750fc0b | j_mayer | bus_model = "Unknown or invalid";
|
9356 | a750fc0b | j_mayer | break;
|
9357 | a750fc0b | j_mayer | } |
9358 | a750fc0b | j_mayer | printf("PowerPC %-12s : PVR %08x MSR %016" PRIx64 "\n" |
9359 | a750fc0b | j_mayer | " MMU model : %s\n",
|
9360 | a750fc0b | j_mayer | def->name, def->pvr, def->msr_mask, mmu_model); |
9361 | f2e63a42 | j_mayer | #if !defined(CONFIG_USER_ONLY)
|
9362 | a750fc0b | j_mayer | if (env->tlb != NULL) { |
9363 | a750fc0b | j_mayer | printf(" %d %s TLB in %d ways\n",
|
9364 | a750fc0b | j_mayer | env->nb_tlb, env->id_tlbs ? "splitted" : "merged", |
9365 | a750fc0b | j_mayer | env->nb_ways); |
9366 | a750fc0b | j_mayer | } |
9367 | f2e63a42 | j_mayer | #endif
|
9368 | a750fc0b | j_mayer | printf(" Exceptions model : %s\n"
|
9369 | a750fc0b | j_mayer | " Bus model : %s\n",
|
9370 | a750fc0b | j_mayer | excp_model, bus_model); |
9371 | 25ba3a68 | j_mayer | printf(" MSR features :\n");
|
9372 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_SPE)
|
9373 | 25ba3a68 | j_mayer | printf(" signal processing engine enable"
|
9374 | 25ba3a68 | j_mayer | "\n");
|
9375 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_VRE) |
9376 | 25ba3a68 | j_mayer | printf(" vector processor enable\n");
|
9377 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_TGPR)
|
9378 | 25ba3a68 | j_mayer | printf(" temporary GPRs\n");
|
9379 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_CE) |
9380 | 25ba3a68 | j_mayer | printf(" critical input enable\n");
|
9381 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_SE)
|
9382 | 25ba3a68 | j_mayer | printf(" single-step trace mode\n");
|
9383 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_DWE) |
9384 | 25ba3a68 | j_mayer | printf(" debug wait enable\n");
|
9385 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_UBLE) |
9386 | 25ba3a68 | j_mayer | printf(" user BTB lock enable\n");
|
9387 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_BE)
|
9388 | 25ba3a68 | j_mayer | printf(" branch-step trace mode\n");
|
9389 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_DE) |
9390 | 25ba3a68 | j_mayer | printf(" debug interrupt enable\n");
|
9391 | 25ba3a68 | j_mayer | if (env->flags & POWERPC_FLAG_PX)
|
9392 | 25ba3a68 | j_mayer | printf(" inclusive protection\n");
|
9393 | 25ba3a68 | j_mayer | else if (env->flags & POWERPC_FLAG_PMM) |
9394 | 25ba3a68 | j_mayer | printf(" performance monitor mark\n");
|
9395 | 25ba3a68 | j_mayer | if (env->flags == POWERPC_FLAG_NONE)
|
9396 | 25ba3a68 | j_mayer | printf(" none\n");
|
9397 | 4018bae9 | j_mayer | printf(" Time-base/decrementer clock source: %s\n",
|
9398 | 4018bae9 | j_mayer | env->flags & POWERPC_FLAG_RTC_CLK ? "RTC clock" : "bus clock"); |
9399 | a750fc0b | j_mayer | } |
9400 | a750fc0b | j_mayer | dump_ppc_insns(env); |
9401 | a750fc0b | j_mayer | dump_ppc_sprs(env); |
9402 | a750fc0b | j_mayer | fflush(stdout); |
9403 | 3a607854 | j_mayer | #endif
|
9404 | a750fc0b | j_mayer | |
9405 | a750fc0b | j_mayer | return 0; |
9406 | a750fc0b | j_mayer | } |
9407 | 3fc6c082 | bellard | |
9408 | ee4e83ed | j_mayer | static const ppc_def_t *ppc_find_by_pvr (uint32_t pvr) |
9409 | 3fc6c082 | bellard | { |
9410 | ee4e83ed | j_mayer | const ppc_def_t *ret;
|
9411 | ee4e83ed | j_mayer | uint32_t pvr_rev; |
9412 | ee4e83ed | j_mayer | int i, best, match, best_match, max;
|
9413 | 3fc6c082 | bellard | |
9414 | ee4e83ed | j_mayer | ret = NULL;
|
9415 | 068abdc8 | j_mayer | max = sizeof(ppc_defs) / sizeof(ppc_def_t); |
9416 | ee4e83ed | j_mayer | best = -1;
|
9417 | ee4e83ed | j_mayer | pvr_rev = pvr & 0xFFFF;
|
9418 | ee4e83ed | j_mayer | /* We want all specified bits to match */
|
9419 | ee4e83ed | j_mayer | best_match = 32 - ctz32(pvr_rev);
|
9420 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9421 | ee4e83ed | j_mayer | /* We check that the 16 higher bits are the same to ensure the CPU
|
9422 | ee4e83ed | j_mayer | * model will be the choosen one.
|
9423 | ee4e83ed | j_mayer | */
|
9424 | ee4e83ed | j_mayer | if (((pvr ^ ppc_defs[i].pvr) >> 16) == 0) { |
9425 | ee4e83ed | j_mayer | /* We want as much as possible of the low-level 16 bits
|
9426 | ee4e83ed | j_mayer | * to be the same but we allow inexact matches.
|
9427 | ee4e83ed | j_mayer | */
|
9428 | ee4e83ed | j_mayer | match = clz32(pvr_rev ^ (ppc_defs[i].pvr & 0xFFFF));
|
9429 | ee4e83ed | j_mayer | /* We check '>=' instead of '>' because the PPC_defs table
|
9430 | ee4e83ed | j_mayer | * is ordered by increasing revision.
|
9431 | 4c1b1bfe | j_mayer | * Then, we will match the higher revision compatible
|
9432 | ee4e83ed | j_mayer | * with the requested PVR
|
9433 | ee4e83ed | j_mayer | */
|
9434 | ee4e83ed | j_mayer | if (match >= best_match) {
|
9435 | ee4e83ed | j_mayer | best = i; |
9436 | ee4e83ed | j_mayer | best_match = match; |
9437 | ee4e83ed | j_mayer | } |
9438 | 3fc6c082 | bellard | } |
9439 | 3fc6c082 | bellard | } |
9440 | ee4e83ed | j_mayer | if (best != -1) |
9441 | ee4e83ed | j_mayer | ret = &ppc_defs[best]; |
9442 | ee4e83ed | j_mayer | |
9443 | ee4e83ed | j_mayer | return ret;
|
9444 | 3fc6c082 | bellard | } |
9445 | 3fc6c082 | bellard | |
9446 | ee4e83ed | j_mayer | #include <ctype.h> |
9447 | 3fc6c082 | bellard | |
9448 | ee4e83ed | j_mayer | const ppc_def_t *cpu_ppc_find_by_name (const unsigned char *name) |
9449 | ee4e83ed | j_mayer | { |
9450 | ee4e83ed | j_mayer | const ppc_def_t *ret;
|
9451 | ee4e83ed | j_mayer | const unsigned char *p; |
9452 | ee4e83ed | j_mayer | int i, max, len;
|
9453 | ee4e83ed | j_mayer | |
9454 | ee4e83ed | j_mayer | /* Check if the given name is a PVR */
|
9455 | ee4e83ed | j_mayer | len = strlen(name); |
9456 | ee4e83ed | j_mayer | if (len == 10 && name[0] == '0' && name[1] == 'x') { |
9457 | ee4e83ed | j_mayer | p = name + 2;
|
9458 | ee4e83ed | j_mayer | goto check_pvr;
|
9459 | ee4e83ed | j_mayer | } else if (len == 8) { |
9460 | ee4e83ed | j_mayer | p = name; |
9461 | ee4e83ed | j_mayer | check_pvr:
|
9462 | ee4e83ed | j_mayer | for (i = 0; i < 8; i++) { |
9463 | ee4e83ed | j_mayer | if (!isxdigit(*p++))
|
9464 | ee4e83ed | j_mayer | break;
|
9465 | ee4e83ed | j_mayer | } |
9466 | ee4e83ed | j_mayer | if (i == 8) |
9467 | ee4e83ed | j_mayer | return ppc_find_by_pvr(strtoul(name, NULL, 16)); |
9468 | ee4e83ed | j_mayer | } |
9469 | ee4e83ed | j_mayer | ret = NULL;
|
9470 | 068abdc8 | j_mayer | max = sizeof(ppc_defs) / sizeof(ppc_def_t); |
9471 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9472 | ee4e83ed | j_mayer | if (strcasecmp(name, ppc_defs[i].name) == 0) { |
9473 | ee4e83ed | j_mayer | ret = &ppc_defs[i]; |
9474 | ee4e83ed | j_mayer | break;
|
9475 | 3fc6c082 | bellard | } |
9476 | 3fc6c082 | bellard | } |
9477 | ee4e83ed | j_mayer | |
9478 | ee4e83ed | j_mayer | return ret;
|
9479 | 3fc6c082 | bellard | } |
9480 | 3fc6c082 | bellard | |
9481 | 3fc6c082 | bellard | void ppc_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) |
9482 | 3fc6c082 | bellard | { |
9483 | 068abdc8 | j_mayer | int i, max;
|
9484 | 3fc6c082 | bellard | |
9485 | 068abdc8 | j_mayer | max = sizeof(ppc_defs) / sizeof(ppc_def_t); |
9486 | 068abdc8 | j_mayer | for (i = 0; i < max; i++) { |
9487 | a750fc0b | j_mayer | (*cpu_fprintf)(f, "PowerPC %-16s PVR %08x\n",
|
9488 | a750fc0b | j_mayer | ppc_defs[i].name, ppc_defs[i].pvr); |
9489 | 3fc6c082 | bellard | } |
9490 | 3fc6c082 | bellard | } |