2 * PowerPC CPU initialization for qemu.
4 * Copyright (c) 2003-2007 Jocelyn Mayer
5 * Copyright 2011 Freescale Semiconductor, Inc.
6 * Copyright 2013 SUSE LINUX Products GmbH
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
21 #ifndef TARGET_PPC_CPU_MODELS_H
22 #define TARGET_PPC_CPU_MODELS_H
26 * @alias: The alias name.
27 * @model: The CPU model @alias refers to.
29 * A mapping entry from CPU @alias to CPU @model.
31 typedef struct PowerPCCPUAlias
{
37 extern PowerPCCPUAlias ppc_cpu_aliases
[];
39 /*****************************************************************************/
40 /* PVR definitions for most known PowerPC */
42 CPU_POWERPC_DEFAULT_MASK
= 0xFFFFFFFF,
43 /* PowerPC 401 family */
44 /* Generic PowerPC 401 */
45 #define CPU_POWERPC_401 CPU_POWERPC_401G2
46 /* PowerPC 401 cores */
47 CPU_POWERPC_401A1
= 0x00210000,
48 CPU_POWERPC_401B2
= 0x00220000,
50 CPU_POWERPC_401B3
= xxx
,
52 CPU_POWERPC_401C2
= 0x00230000,
53 CPU_POWERPC_401D2
= 0x00240000,
54 CPU_POWERPC_401E2
= 0x00250000,
55 CPU_POWERPC_401F2
= 0x00260000,
56 CPU_POWERPC_401G2
= 0x00270000,
57 /* PowerPC 401 microcontrolers */
59 CPU_POWERPC_401GF
= xxx
,
61 #define CPU_POWERPC_IOP480 CPU_POWERPC_401B2
62 /* IBM Processor for Network Resources */
63 CPU_POWERPC_COBRA
= 0x10100000, /* XXX: 405 ? */
65 CPU_POWERPC_XIPCHIP
= xxx
,
67 /* PowerPC 403 family */
68 /* PowerPC 403 microcontrollers */
69 CPU_POWERPC_403GA
= 0x00200011,
70 CPU_POWERPC_403GB
= 0x00200100,
71 CPU_POWERPC_403GC
= 0x00200200,
72 CPU_POWERPC_403GCX
= 0x00201400,
74 CPU_POWERPC_403GP
= xxx
,
76 /* PowerPC 405 family */
77 /* PowerPC 405 cores */
79 CPU_POWERPC_405A3
= xxx
,
82 CPU_POWERPC_405A4
= xxx
,
85 CPU_POWERPC_405B3
= xxx
,
88 CPU_POWERPC_405B4
= xxx
,
91 CPU_POWERPC_405C3
= xxx
,
94 CPU_POWERPC_405C4
= xxx
,
96 CPU_POWERPC_405D2
= 0x20010000,
98 CPU_POWERPC_405D3
= xxx
,
100 CPU_POWERPC_405D4
= 0x41810000,
102 CPU_POWERPC_405D5
= xxx
,
105 CPU_POWERPC_405E4
= xxx
,
108 CPU_POWERPC_405F4
= xxx
,
111 CPU_POWERPC_405F5
= xxx
,
114 CPU_POWERPC_405F6
= xxx
,
116 /* PowerPC 405 microcontrolers */
117 /* XXX: missing 0x200108a0 */
118 CPU_POWERPC_405CRa
= 0x40110041,
119 CPU_POWERPC_405CRb
= 0x401100C5,
120 CPU_POWERPC_405CRc
= 0x40110145,
121 CPU_POWERPC_405EP
= 0x51210950,
123 CPU_POWERPC_405EXr
= xxx
,
125 CPU_POWERPC_405EZ
= 0x41511460, /* 0x51210950 ? */
127 CPU_POWERPC_405FX
= xxx
,
129 CPU_POWERPC_405GPa
= 0x40110000,
130 CPU_POWERPC_405GPb
= 0x40110040,
131 CPU_POWERPC_405GPc
= 0x40110082,
132 CPU_POWERPC_405GPd
= 0x401100C4,
133 CPU_POWERPC_405GPR
= 0x50910951,
135 CPU_POWERPC_405H
= xxx
,
138 CPU_POWERPC_405L
= xxx
,
140 CPU_POWERPC_405LP
= 0x41F10000,
142 CPU_POWERPC_405PM
= xxx
,
145 CPU_POWERPC_405PS
= xxx
,
148 CPU_POWERPC_405S
= xxx
,
150 /* IBM network processors */
151 CPU_POWERPC_NPE405H
= 0x414100C0,
152 CPU_POWERPC_NPE405H2
= 0x41410140,
153 CPU_POWERPC_NPE405L
= 0x416100C0,
154 CPU_POWERPC_NPE4GS3
= 0x40B10000,
156 CPU_POWERPC_NPCxx1
= xxx
,
159 CPU_POWERPC_NPR161
= xxx
,
162 CPU_POWERPC_LC77700
= xxx
,
164 /* IBM STBxxx (PowerPC 401/403/405 core based microcontrollers) */
166 CPU_POWERPC_STB01000
= xxx
,
169 CPU_POWERPC_STB01010
= xxx
,
172 CPU_POWERPC_STB0210
= xxx
, /* 401B3 */
174 CPU_POWERPC_STB03
= 0x40310000, /* 0x40130000 ? */
176 CPU_POWERPC_STB043
= xxx
,
179 CPU_POWERPC_STB045
= xxx
,
181 CPU_POWERPC_STB04
= 0x41810000,
182 CPU_POWERPC_STB25
= 0x51510950,
184 CPU_POWERPC_STB130
= xxx
,
187 CPU_POWERPC_X2VP4
= 0x20010820,
188 CPU_POWERPC_X2VP20
= 0x20010860,
190 CPU_POWERPC_ZL10310
= xxx
,
193 CPU_POWERPC_ZL10311
= xxx
,
196 CPU_POWERPC_ZL10320
= xxx
,
199 CPU_POWERPC_ZL10321
= xxx
,
201 /* PowerPC 440 family */
202 /* Generic PowerPC 440 */
203 #define CPU_POWERPC_440 CPU_POWERPC_440GXf
204 /* PowerPC 440 cores */
206 CPU_POWERPC_440A4
= xxx
,
208 CPU_POWERPC_440_XILINX
= 0x7ff21910,
210 CPU_POWERPC_440A5
= xxx
,
213 CPU_POWERPC_440B4
= xxx
,
216 CPU_POWERPC_440F5
= xxx
,
219 CPU_POWERPC_440G5
= xxx
,
222 CPU_POWERPC_440H4
= xxx
,
225 CPU_POWERPC_440H6
= xxx
,
227 /* PowerPC 440 microcontrolers */
228 CPU_POWERPC_440EPa
= 0x42221850,
229 CPU_POWERPC_440EPb
= 0x422218D3,
230 CPU_POWERPC_440GPb
= 0x40120440,
231 CPU_POWERPC_440GPc
= 0x40120481,
232 #define CPU_POWERPC_440GRa CPU_POWERPC_440EPb
233 CPU_POWERPC_440GRX
= 0x200008D0,
234 #define CPU_POWERPC_440EPX CPU_POWERPC_440GRX
235 CPU_POWERPC_440GXa
= 0x51B21850,
236 CPU_POWERPC_440GXb
= 0x51B21851,
237 CPU_POWERPC_440GXc
= 0x51B21892,
238 CPU_POWERPC_440GXf
= 0x51B21894,
240 CPU_POWERPC_440S
= xxx
,
242 CPU_POWERPC_440SP
= 0x53221850,
243 CPU_POWERPC_440SP2
= 0x53221891,
244 CPU_POWERPC_440SPE
= 0x53421890,
245 /* PowerPC 460 family */
247 /* Generic PowerPC 464 */
248 #define CPU_POWERPC_464 CPU_POWERPC_464H90
250 /* PowerPC 464 microcontrolers */
252 CPU_POWERPC_464H90
= xxx
,
255 CPU_POWERPC_464H90FP
= xxx
,
257 /* Freescale embedded PowerPC cores */
258 /* PowerPC MPC 5xx cores (aka RCPU) */
259 CPU_POWERPC_MPC5xx
= 0x00020020,
260 /* PowerPC MPC 8xx cores (aka PowerQUICC) */
261 CPU_POWERPC_MPC8xx
= 0x00500000,
262 /* G2 cores (aka PowerQUICC-II) */
263 CPU_POWERPC_G2
= 0x00810011,
264 CPU_POWERPC_G2H4
= 0x80811010,
265 CPU_POWERPC_G2gp
= 0x80821010,
266 CPU_POWERPC_G2ls
= 0x90810010,
267 CPU_POWERPC_MPC603
= 0x00810100,
268 CPU_POWERPC_G2_HIP3
= 0x00810101,
269 CPU_POWERPC_G2_HIP4
= 0x80811014,
270 /* G2_LE core (aka PowerQUICC-II) */
271 CPU_POWERPC_G2LE
= 0x80820010,
272 CPU_POWERPC_G2LEgp
= 0x80822010,
273 CPU_POWERPC_G2LEls
= 0xA0822010,
274 CPU_POWERPC_G2LEgp1
= 0x80822011,
275 CPU_POWERPC_G2LEgp3
= 0x80822013,
276 /* MPC52xx microcontrollers */
277 /* XXX: MPC 5121 ? */
278 #define CPU_POWERPC_MPC5200_v10 CPU_POWERPC_G2LEgp1
279 #define CPU_POWERPC_MPC5200_v11 CPU_POWERPC_G2LEgp1
280 #define CPU_POWERPC_MPC5200_v12 CPU_POWERPC_G2LEgp1
281 #define CPU_POWERPC_MPC5200B_v20 CPU_POWERPC_G2LEgp1
282 #define CPU_POWERPC_MPC5200B_v21 CPU_POWERPC_G2LEgp1
286 CPU_POWERPC_e200z0
= xxx
,
289 CPU_POWERPC_e200z1
= xxx
,
292 CPU_POWERPC_e200z3
= 0x81120000,
294 CPU_POWERPC_e200z5
= 0x81000000,
295 CPU_POWERPC_e200z6
= 0x81120000,
296 /* MPC55xx microcontrollers */
297 #define CPU_POWERPC_MPC55xx CPU_POWERPC_MPC5567
299 #define CPU_POWERPC_MPC5514E CPU_POWERPC_MPC5514E_v1
300 #define CPU_POWERPC_MPC5514E_v0 CPU_POWERPC_e200z0
301 #define CPU_POWERPC_MPC5514E_v1 CPU_POWERPC_e200z1
302 #define CPU_POWERPC_MPC5514G CPU_POWERPC_MPC5514G_v1
303 #define CPU_POWERPC_MPC5514G_v0 CPU_POWERPC_e200z0
304 #define CPU_POWERPC_MPC5514G_v1 CPU_POWERPC_e200z1
305 #define CPU_POWERPC_MPC5515S CPU_POWERPC_e200z1
306 #define CPU_POWERPC_MPC5516E CPU_POWERPC_MPC5516E_v1
307 #define CPU_POWERPC_MPC5516E_v0 CPU_POWERPC_e200z0
308 #define CPU_POWERPC_MPC5516E_v1 CPU_POWERPC_e200z1
309 #define CPU_POWERPC_MPC5516G CPU_POWERPC_MPC5516G_v1
310 #define CPU_POWERPC_MPC5516G_v0 CPU_POWERPC_e200z0
311 #define CPU_POWERPC_MPC5516G_v1 CPU_POWERPC_e200z1
312 #define CPU_POWERPC_MPC5516S CPU_POWERPC_e200z1
315 #define CPU_POWERPC_MPC5533 CPU_POWERPC_e200z3
316 #define CPU_POWERPC_MPC5534 CPU_POWERPC_e200z3
318 #define CPU_POWERPC_MPC5553 CPU_POWERPC_e200z6
319 #define CPU_POWERPC_MPC5554 CPU_POWERPC_e200z6
320 #define CPU_POWERPC_MPC5561 CPU_POWERPC_e200z6
321 #define CPU_POWERPC_MPC5565 CPU_POWERPC_e200z6
322 #define CPU_POWERPC_MPC5566 CPU_POWERPC_e200z6
323 #define CPU_POWERPC_MPC5567 CPU_POWERPC_e200z6
326 CPU_POWERPC_e300c1
= 0x00830010,
327 CPU_POWERPC_e300c2
= 0x00840010,
328 CPU_POWERPC_e300c3
= 0x00850010,
329 CPU_POWERPC_e300c4
= 0x00860010,
330 /* MPC83xx microcontrollers */
331 #define CPU_POWERPC_MPC831x CPU_POWERPC_e300c3
332 #define CPU_POWERPC_MPC832x CPU_POWERPC_e300c2
333 #define CPU_POWERPC_MPC834x CPU_POWERPC_e300c1
334 #define CPU_POWERPC_MPC835x CPU_POWERPC_e300c1
335 #define CPU_POWERPC_MPC836x CPU_POWERPC_e300c1
336 #define CPU_POWERPC_MPC837x CPU_POWERPC_e300c4
339 #define CPU_POWERPC_e500 CPU_POWERPC_e500v2_v22
340 CPU_POWERPC_e500v1_v10
= 0x80200010,
341 CPU_POWERPC_e500v1_v20
= 0x80200020,
342 CPU_POWERPC_e500v2_v10
= 0x80210010,
343 CPU_POWERPC_e500v2_v11
= 0x80210011,
344 CPU_POWERPC_e500v2_v20
= 0x80210020,
345 CPU_POWERPC_e500v2_v21
= 0x80210021,
346 CPU_POWERPC_e500v2_v22
= 0x80210022,
347 CPU_POWERPC_e500v2_v30
= 0x80210030,
348 CPU_POWERPC_e500mc
= 0x80230020,
349 CPU_POWERPC_e5500
= 0x80240020,
350 /* MPC85xx microcontrollers */
351 #define CPU_POWERPC_MPC8533_v10 CPU_POWERPC_e500v2_v21
352 #define CPU_POWERPC_MPC8533_v11 CPU_POWERPC_e500v2_v22
353 #define CPU_POWERPC_MPC8533E_v10 CPU_POWERPC_e500v2_v21
354 #define CPU_POWERPC_MPC8533E_v11 CPU_POWERPC_e500v2_v22
355 #define CPU_POWERPC_MPC8540_v10 CPU_POWERPC_e500v1_v10
356 #define CPU_POWERPC_MPC8540_v20 CPU_POWERPC_e500v1_v20
357 #define CPU_POWERPC_MPC8540_v21 CPU_POWERPC_e500v1_v20
358 #define CPU_POWERPC_MPC8541_v10 CPU_POWERPC_e500v1_v20
359 #define CPU_POWERPC_MPC8541_v11 CPU_POWERPC_e500v1_v20
360 #define CPU_POWERPC_MPC8541E_v10 CPU_POWERPC_e500v1_v20
361 #define CPU_POWERPC_MPC8541E_v11 CPU_POWERPC_e500v1_v20
362 #define CPU_POWERPC_MPC8543_v10 CPU_POWERPC_e500v2_v10
363 #define CPU_POWERPC_MPC8543_v11 CPU_POWERPC_e500v2_v11
364 #define CPU_POWERPC_MPC8543_v20 CPU_POWERPC_e500v2_v20
365 #define CPU_POWERPC_MPC8543_v21 CPU_POWERPC_e500v2_v21
366 #define CPU_POWERPC_MPC8543E_v10 CPU_POWERPC_e500v2_v10
367 #define CPU_POWERPC_MPC8543E_v11 CPU_POWERPC_e500v2_v11
368 #define CPU_POWERPC_MPC8543E_v20 CPU_POWERPC_e500v2_v20
369 #define CPU_POWERPC_MPC8543E_v21 CPU_POWERPC_e500v2_v21
370 #define CPU_POWERPC_MPC8544_v10 CPU_POWERPC_e500v2_v21
371 #define CPU_POWERPC_MPC8544_v11 CPU_POWERPC_e500v2_v22
372 #define CPU_POWERPC_MPC8544E_v11 CPU_POWERPC_e500v2_v22
373 #define CPU_POWERPC_MPC8544E_v10 CPU_POWERPC_e500v2_v21
374 #define CPU_POWERPC_MPC8545_v10 CPU_POWERPC_e500v2_v10
375 #define CPU_POWERPC_MPC8545_v20 CPU_POWERPC_e500v2_v20
376 #define CPU_POWERPC_MPC8545_v21 CPU_POWERPC_e500v2_v21
377 #define CPU_POWERPC_MPC8545E_v10 CPU_POWERPC_e500v2_v10
378 #define CPU_POWERPC_MPC8545E_v20 CPU_POWERPC_e500v2_v20
379 #define CPU_POWERPC_MPC8545E_v21 CPU_POWERPC_e500v2_v21
380 #define CPU_POWERPC_MPC8547E_v10 CPU_POWERPC_e500v2_v10
381 #define CPU_POWERPC_MPC8547E_v20 CPU_POWERPC_e500v2_v20
382 #define CPU_POWERPC_MPC8547E_v21 CPU_POWERPC_e500v2_v21
383 #define CPU_POWERPC_MPC8548_v10 CPU_POWERPC_e500v2_v10
384 #define CPU_POWERPC_MPC8548_v11 CPU_POWERPC_e500v2_v11
385 #define CPU_POWERPC_MPC8548_v20 CPU_POWERPC_e500v2_v20
386 #define CPU_POWERPC_MPC8548_v21 CPU_POWERPC_e500v2_v21
387 #define CPU_POWERPC_MPC8548E_v10 CPU_POWERPC_e500v2_v10
388 #define CPU_POWERPC_MPC8548E_v11 CPU_POWERPC_e500v2_v11
389 #define CPU_POWERPC_MPC8548E_v20 CPU_POWERPC_e500v2_v20
390 #define CPU_POWERPC_MPC8548E_v21 CPU_POWERPC_e500v2_v21
391 #define CPU_POWERPC_MPC8555_v10 CPU_POWERPC_e500v2_v10
392 #define CPU_POWERPC_MPC8555_v11 CPU_POWERPC_e500v2_v11
393 #define CPU_POWERPC_MPC8555E_v10 CPU_POWERPC_e500v2_v10
394 #define CPU_POWERPC_MPC8555E_v11 CPU_POWERPC_e500v2_v11
395 #define CPU_POWERPC_MPC8560_v10 CPU_POWERPC_e500v2_v10
396 #define CPU_POWERPC_MPC8560_v20 CPU_POWERPC_e500v2_v20
397 #define CPU_POWERPC_MPC8560_v21 CPU_POWERPC_e500v2_v21
398 #define CPU_POWERPC_MPC8567 CPU_POWERPC_e500v2_v22
399 #define CPU_POWERPC_MPC8567E CPU_POWERPC_e500v2_v22
400 #define CPU_POWERPC_MPC8568 CPU_POWERPC_e500v2_v22
401 #define CPU_POWERPC_MPC8568E CPU_POWERPC_e500v2_v22
402 #define CPU_POWERPC_MPC8572 CPU_POWERPC_e500v2_v30
403 #define CPU_POWERPC_MPC8572E CPU_POWERPC_e500v2_v30
406 CPU_POWERPC_e600
= 0x80040010,
407 /* MPC86xx microcontrollers */
408 #define CPU_POWERPC_MPC8610 CPU_POWERPC_e600
409 #define CPU_POWERPC_MPC8641 CPU_POWERPC_e600
410 #define CPU_POWERPC_MPC8641D CPU_POWERPC_e600
411 /* PowerPC 6xx cores */
412 CPU_POWERPC_601_v0
= 0x00010001,
413 CPU_POWERPC_601_v1
= 0x00010001,
414 CPU_POWERPC_601_v2
= 0x00010002,
415 CPU_POWERPC_602
= 0x00050100,
416 CPU_POWERPC_603
= 0x00030100,
417 CPU_POWERPC_603E_v11
= 0x00060101,
418 CPU_POWERPC_603E_v12
= 0x00060102,
419 CPU_POWERPC_603E_v13
= 0x00060103,
420 CPU_POWERPC_603E_v14
= 0x00060104,
421 CPU_POWERPC_603E_v22
= 0x00060202,
422 CPU_POWERPC_603E_v3
= 0x00060300,
423 CPU_POWERPC_603E_v4
= 0x00060400,
424 CPU_POWERPC_603E_v41
= 0x00060401,
425 CPU_POWERPC_603E7t
= 0x00071201,
426 CPU_POWERPC_603E7v
= 0x00070100,
427 CPU_POWERPC_603E7v1
= 0x00070101,
428 CPU_POWERPC_603E7v2
= 0x00070201,
429 CPU_POWERPC_603E7
= 0x00070200,
430 CPU_POWERPC_603P
= 0x00070000,
431 /* XXX: missing 0x00040303 (604) */
432 CPU_POWERPC_604
= 0x00040103,
433 /* XXX: missing 0x00091203 */
434 /* XXX: missing 0x00092110 */
435 /* XXX: missing 0x00092120 */
436 CPU_POWERPC_604E_v10
= 0x00090100,
437 CPU_POWERPC_604E_v22
= 0x00090202,
438 CPU_POWERPC_604E_v24
= 0x00090204,
439 /* XXX: missing 0x000a0100 */
440 /* XXX: missing 0x00093102 */
441 CPU_POWERPC_604R
= 0x000a0101,
443 CPU_POWERPC_604EV
= xxx
, /* XXX: same as 604R ? */
445 /* PowerPC 740/750 cores (aka G3) */
446 /* XXX: missing 0x00084202 */
447 CPU_POWERPC_7x0_v10
= 0x00080100,
448 CPU_POWERPC_7x0_v20
= 0x00080200,
449 CPU_POWERPC_7x0_v21
= 0x00080201,
450 CPU_POWERPC_7x0_v22
= 0x00080202,
451 CPU_POWERPC_7x0_v30
= 0x00080300,
452 CPU_POWERPC_7x0_v31
= 0x00080301,
453 CPU_POWERPC_740E
= 0x00080100,
454 CPU_POWERPC_750E
= 0x00080200,
455 CPU_POWERPC_7x0P
= 0x10080000,
456 /* XXX: missing 0x00087010 (CL ?) */
457 CPU_POWERPC_750CL_v10
= 0x00087200,
458 CPU_POWERPC_750CL_v20
= 0x00087210, /* aka rev E */
459 CPU_POWERPC_750CX_v10
= 0x00082100,
460 CPU_POWERPC_750CX_v20
= 0x00082200,
461 CPU_POWERPC_750CX_v21
= 0x00082201,
462 CPU_POWERPC_750CX_v22
= 0x00082202,
463 CPU_POWERPC_750CXE_v21
= 0x00082211,
464 CPU_POWERPC_750CXE_v22
= 0x00082212,
465 CPU_POWERPC_750CXE_v23
= 0x00082213,
466 CPU_POWERPC_750CXE_v24
= 0x00082214,
467 CPU_POWERPC_750CXE_v24b
= 0x00083214,
468 CPU_POWERPC_750CXE_v30
= 0x00082310,
469 CPU_POWERPC_750CXE_v31
= 0x00082311,
470 CPU_POWERPC_750CXE_v31b
= 0x00083311,
471 CPU_POWERPC_750CXR
= 0x00083410,
472 CPU_POWERPC_750FL
= 0x70000203,
473 CPU_POWERPC_750FX_v10
= 0x70000100,
474 CPU_POWERPC_750FX_v20
= 0x70000200,
475 CPU_POWERPC_750FX_v21
= 0x70000201,
476 CPU_POWERPC_750FX_v22
= 0x70000202,
477 CPU_POWERPC_750FX_v23
= 0x70000203,
478 CPU_POWERPC_750GL
= 0x70020102,
479 CPU_POWERPC_750GX_v10
= 0x70020100,
480 CPU_POWERPC_750GX_v11
= 0x70020101,
481 CPU_POWERPC_750GX_v12
= 0x70020102,
482 CPU_POWERPC_750L_v20
= 0x00088200,
483 CPU_POWERPC_750L_v21
= 0x00088201,
484 CPU_POWERPC_750L_v22
= 0x00088202,
485 CPU_POWERPC_750L_v30
= 0x00088300,
486 CPU_POWERPC_750L_v32
= 0x00088302,
487 /* PowerPC 745/755 cores */
488 CPU_POWERPC_7x5_v10
= 0x00083100,
489 CPU_POWERPC_7x5_v11
= 0x00083101,
490 CPU_POWERPC_7x5_v20
= 0x00083200,
491 CPU_POWERPC_7x5_v21
= 0x00083201,
492 CPU_POWERPC_7x5_v22
= 0x00083202, /* aka D */
493 CPU_POWERPC_7x5_v23
= 0x00083203, /* aka E */
494 CPU_POWERPC_7x5_v24
= 0x00083204,
495 CPU_POWERPC_7x5_v25
= 0x00083205,
496 CPU_POWERPC_7x5_v26
= 0x00083206,
497 CPU_POWERPC_7x5_v27
= 0x00083207,
498 CPU_POWERPC_7x5_v28
= 0x00083208,
500 CPU_POWERPC_7x5P
= xxx
,
502 /* PowerPC 74xx cores (aka G4) */
503 /* XXX: missing 0x000C1101 */
504 CPU_POWERPC_7400_v10
= 0x000C0100,
505 CPU_POWERPC_7400_v11
= 0x000C0101,
506 CPU_POWERPC_7400_v20
= 0x000C0200,
507 CPU_POWERPC_7400_v21
= 0x000C0201,
508 CPU_POWERPC_7400_v22
= 0x000C0202,
509 CPU_POWERPC_7400_v26
= 0x000C0206,
510 CPU_POWERPC_7400_v27
= 0x000C0207,
511 CPU_POWERPC_7400_v28
= 0x000C0208,
512 CPU_POWERPC_7400_v29
= 0x000C0209,
513 CPU_POWERPC_7410_v10
= 0x800C1100,
514 CPU_POWERPC_7410_v11
= 0x800C1101,
515 CPU_POWERPC_7410_v12
= 0x800C1102, /* aka C */
516 CPU_POWERPC_7410_v13
= 0x800C1103, /* aka D */
517 CPU_POWERPC_7410_v14
= 0x800C1104, /* aka E */
518 CPU_POWERPC_7448_v10
= 0x80040100,
519 CPU_POWERPC_7448_v11
= 0x80040101,
520 CPU_POWERPC_7448_v20
= 0x80040200,
521 CPU_POWERPC_7448_v21
= 0x80040201,
522 CPU_POWERPC_7450_v10
= 0x80000100,
523 CPU_POWERPC_7450_v11
= 0x80000101,
524 CPU_POWERPC_7450_v12
= 0x80000102,
525 CPU_POWERPC_7450_v20
= 0x80000200, /* aka A, B, C, D: 2.04 */
526 CPU_POWERPC_7450_v21
= 0x80000201, /* aka E */
527 CPU_POWERPC_74x1_v23
= 0x80000203, /* aka G: 2.3 */
528 /* XXX: this entry might be a bug in some documentation */
529 CPU_POWERPC_74x1_v210
= 0x80000210, /* aka G: 2.3 ? */
530 CPU_POWERPC_74x5_v10
= 0x80010100,
531 /* XXX: missing 0x80010200 */
532 CPU_POWERPC_74x5_v21
= 0x80010201, /* aka C: 2.1 */
533 CPU_POWERPC_74x5_v32
= 0x80010302,
534 CPU_POWERPC_74x5_v33
= 0x80010303, /* aka F: 3.3 */
535 CPU_POWERPC_74x5_v34
= 0x80010304, /* aka G: 3.4 */
536 CPU_POWERPC_74x7_v10
= 0x80020100, /* aka A: 1.0 */
537 CPU_POWERPC_74x7_v11
= 0x80020101, /* aka B: 1.1 */
538 CPU_POWERPC_74x7_v12
= 0x80020102, /* aka C: 1.2 */
539 CPU_POWERPC_74x7A_v10
= 0x80030100, /* aka A: 1.0 */
540 CPU_POWERPC_74x7A_v11
= 0x80030101, /* aka B: 1.1 */
541 CPU_POWERPC_74x7A_v12
= 0x80030102, /* aka C: 1.2 */
542 /* 64 bits PowerPC */
543 #if defined(TARGET_PPC64)
544 CPU_POWERPC_620
= 0x00140000,
545 CPU_POWERPC_630
= 0x00400000,
546 CPU_POWERPC_631
= 0x00410104,
547 CPU_POWERPC_POWER4
= 0x00350000,
548 CPU_POWERPC_POWER4P
= 0x00380000,
549 /* XXX: missing 0x003A0201 */
550 CPU_POWERPC_POWER5
= 0x003A0203,
551 CPU_POWERPC_POWER5P
= 0x003B0000,
552 CPU_POWERPC_POWER5P_v21
= 0x003B0201,
553 CPU_POWERPC_POWER6
= 0x003E0000,
554 CPU_POWERPC_POWER6_5
= 0x0F000001, /* POWER6 in POWER5 mode */
555 CPU_POWERPC_POWER6A
= 0x0F000002,
556 CPU_POWERPC_POWER7_BASE
= 0x003F0000,
557 CPU_POWERPC_POWER7_MASK
= 0xFFFF0000,
558 CPU_POWERPC_POWER7_v20
= 0x003F0200,
559 CPU_POWERPC_POWER7_v21
= 0x003F0201,
560 CPU_POWERPC_POWER7_v23
= 0x003F0203,
561 CPU_POWERPC_POWER7P_BASE
= 0x004A0000,
562 CPU_POWERPC_POWER7P_MASK
= 0xFFFF0000,
563 CPU_POWERPC_POWER7P_v21
= 0x004A0201,
564 CPU_POWERPC_POWER8_BASE
= 0x004B0000,
565 CPU_POWERPC_POWER8_MASK
= 0xFFFF0000,
566 CPU_POWERPC_POWER8_v10
= 0x004B0100,
567 CPU_POWERPC_970
= 0x00390202,
568 CPU_POWERPC_970FX_v10
= 0x00391100,
569 CPU_POWERPC_970FX_v20
= 0x003C0200,
570 CPU_POWERPC_970FX_v21
= 0x003C0201,
571 CPU_POWERPC_970FX_v30
= 0x003C0300,
572 CPU_POWERPC_970FX_v31
= 0x003C0301,
573 CPU_POWERPC_970MP_v10
= 0x00440100,
574 CPU_POWERPC_970MP_v11
= 0x00440101,
575 #define CPU_POWERPC_CELL CPU_POWERPC_CELL_v32
576 CPU_POWERPC_CELL_v10
= 0x00700100,
577 CPU_POWERPC_CELL_v20
= 0x00700400,
578 CPU_POWERPC_CELL_v30
= 0x00700500,
579 CPU_POWERPC_CELL_v31
= 0x00700501,
580 #define CPU_POWERPC_CELL_v32 CPU_POWERPC_CELL_v31
581 CPU_POWERPC_RS64
= 0x00330000,
582 CPU_POWERPC_RS64II
= 0x00340000,
583 CPU_POWERPC_RS64III
= 0x00360000,
584 CPU_POWERPC_RS64IV
= 0x00370000,
585 #endif /* defined(TARGET_PPC64) */
587 /* XXX: should be POWER (RIOS), RSC3308, RSC4608,
588 * POWER2 (RIOS2) & RSC2 (P2SC) here
591 CPU_POWER
= xxx
, /* 0x20000 ? 0x30000 for RSC ? */
594 CPU_POWER2
= xxx
, /* 0x40000 ? */
597 CPU_POWERPC_PA6T
= 0x00900000,
600 /* System version register (used on MPC 8xxx) */
602 POWERPC_SVR_NONE
= 0x00000000,
603 POWERPC_SVR_5200_v10
= 0x80110010,
604 POWERPC_SVR_5200_v11
= 0x80110011,
605 POWERPC_SVR_5200_v12
= 0x80110012,
606 POWERPC_SVR_5200B_v20
= 0x80110020,
607 POWERPC_SVR_5200B_v21
= 0x80110021,
608 #define POWERPC_SVR_55xx POWERPC_SVR_5567
610 POWERPC_SVR_5533
= xxx
,
613 POWERPC_SVR_5534
= xxx
,
616 POWERPC_SVR_5553
= xxx
,
619 POWERPC_SVR_5554
= xxx
,
622 POWERPC_SVR_5561
= xxx
,
625 POWERPC_SVR_5565
= xxx
,
628 POWERPC_SVR_5566
= xxx
,
631 POWERPC_SVR_5567
= xxx
,
634 POWERPC_SVR_8313
= xxx
,
637 POWERPC_SVR_8313E
= xxx
,
640 POWERPC_SVR_8314
= xxx
,
643 POWERPC_SVR_8314E
= xxx
,
646 POWERPC_SVR_8315
= xxx
,
649 POWERPC_SVR_8315E
= xxx
,
652 POWERPC_SVR_8321
= xxx
,
655 POWERPC_SVR_8321E
= xxx
,
658 POWERPC_SVR_8323
= xxx
,
661 POWERPC_SVR_8323E
= xxx
,
663 POWERPC_SVR_8343
= 0x80570010,
664 POWERPC_SVR_8343A
= 0x80570030,
665 POWERPC_SVR_8343E
= 0x80560010,
666 POWERPC_SVR_8343EA
= 0x80560030,
667 POWERPC_SVR_8347P
= 0x80550010, /* PBGA package */
668 POWERPC_SVR_8347T
= 0x80530010, /* TBGA package */
669 POWERPC_SVR_8347AP
= 0x80550030, /* PBGA package */
670 POWERPC_SVR_8347AT
= 0x80530030, /* TBGA package */
671 POWERPC_SVR_8347EP
= 0x80540010, /* PBGA package */
672 POWERPC_SVR_8347ET
= 0x80520010, /* TBGA package */
673 POWERPC_SVR_8347EAP
= 0x80540030, /* PBGA package */
674 POWERPC_SVR_8347EAT
= 0x80520030, /* TBGA package */
675 POWERPC_SVR_8349
= 0x80510010,
676 POWERPC_SVR_8349A
= 0x80510030,
677 POWERPC_SVR_8349E
= 0x80500010,
678 POWERPC_SVR_8349EA
= 0x80500030,
680 POWERPC_SVR_8358E
= xxx
,
683 POWERPC_SVR_8360E
= xxx
,
685 #define POWERPC_SVR_E500 0x40000000
686 POWERPC_SVR_8377
= 0x80C70010 | POWERPC_SVR_E500
,
687 POWERPC_SVR_8377E
= 0x80C60010 | POWERPC_SVR_E500
,
688 POWERPC_SVR_8378
= 0x80C50010 | POWERPC_SVR_E500
,
689 POWERPC_SVR_8378E
= 0x80C40010 | POWERPC_SVR_E500
,
690 POWERPC_SVR_8379
= 0x80C30010 | POWERPC_SVR_E500
,
691 POWERPC_SVR_8379E
= 0x80C00010 | POWERPC_SVR_E500
,
692 POWERPC_SVR_8533_v10
= 0x80340010 | POWERPC_SVR_E500
,
693 POWERPC_SVR_8533_v11
= 0x80340011 | POWERPC_SVR_E500
,
694 POWERPC_SVR_8533E_v10
= 0x803C0010 | POWERPC_SVR_E500
,
695 POWERPC_SVR_8533E_v11
= 0x803C0011 | POWERPC_SVR_E500
,
696 POWERPC_SVR_8540_v10
= 0x80300010 | POWERPC_SVR_E500
,
697 POWERPC_SVR_8540_v20
= 0x80300020 | POWERPC_SVR_E500
,
698 POWERPC_SVR_8540_v21
= 0x80300021 | POWERPC_SVR_E500
,
699 POWERPC_SVR_8541_v10
= 0x80720010 | POWERPC_SVR_E500
,
700 POWERPC_SVR_8541_v11
= 0x80720011 | POWERPC_SVR_E500
,
701 POWERPC_SVR_8541E_v10
= 0x807A0010 | POWERPC_SVR_E500
,
702 POWERPC_SVR_8541E_v11
= 0x807A0011 | POWERPC_SVR_E500
,
703 POWERPC_SVR_8543_v10
= 0x80320010 | POWERPC_SVR_E500
,
704 POWERPC_SVR_8543_v11
= 0x80320011 | POWERPC_SVR_E500
,
705 POWERPC_SVR_8543_v20
= 0x80320020 | POWERPC_SVR_E500
,
706 POWERPC_SVR_8543_v21
= 0x80320021 | POWERPC_SVR_E500
,
707 POWERPC_SVR_8543E_v10
= 0x803A0010 | POWERPC_SVR_E500
,
708 POWERPC_SVR_8543E_v11
= 0x803A0011 | POWERPC_SVR_E500
,
709 POWERPC_SVR_8543E_v20
= 0x803A0020 | POWERPC_SVR_E500
,
710 POWERPC_SVR_8543E_v21
= 0x803A0021 | POWERPC_SVR_E500
,
711 POWERPC_SVR_8544_v10
= 0x80340110 | POWERPC_SVR_E500
,
712 POWERPC_SVR_8544_v11
= 0x80340111 | POWERPC_SVR_E500
,
713 POWERPC_SVR_8544E_v10
= 0x803C0110 | POWERPC_SVR_E500
,
714 POWERPC_SVR_8544E_v11
= 0x803C0111 | POWERPC_SVR_E500
,
715 POWERPC_SVR_8545_v20
= 0x80310220 | POWERPC_SVR_E500
,
716 POWERPC_SVR_8545_v21
= 0x80310221 | POWERPC_SVR_E500
,
717 POWERPC_SVR_8545E_v20
= 0x80390220 | POWERPC_SVR_E500
,
718 POWERPC_SVR_8545E_v21
= 0x80390221 | POWERPC_SVR_E500
,
719 POWERPC_SVR_8547E_v20
= 0x80390120 | POWERPC_SVR_E500
,
720 POWERPC_SVR_8547E_v21
= 0x80390121 | POWERPC_SVR_E500
,
721 POWERPC_SVR_8548_v10
= 0x80310010 | POWERPC_SVR_E500
,
722 POWERPC_SVR_8548_v11
= 0x80310011 | POWERPC_SVR_E500
,
723 POWERPC_SVR_8548_v20
= 0x80310020 | POWERPC_SVR_E500
,
724 POWERPC_SVR_8548_v21
= 0x80310021 | POWERPC_SVR_E500
,
725 POWERPC_SVR_8548E_v10
= 0x80390010 | POWERPC_SVR_E500
,
726 POWERPC_SVR_8548E_v11
= 0x80390011 | POWERPC_SVR_E500
,
727 POWERPC_SVR_8548E_v20
= 0x80390020 | POWERPC_SVR_E500
,
728 POWERPC_SVR_8548E_v21
= 0x80390021 | POWERPC_SVR_E500
,
729 POWERPC_SVR_8555_v10
= 0x80710010 | POWERPC_SVR_E500
,
730 POWERPC_SVR_8555_v11
= 0x80710011 | POWERPC_SVR_E500
,
731 POWERPC_SVR_8555E_v10
= 0x80790010 | POWERPC_SVR_E500
,
732 POWERPC_SVR_8555E_v11
= 0x80790011 | POWERPC_SVR_E500
,
733 POWERPC_SVR_8560_v10
= 0x80700010 | POWERPC_SVR_E500
,
734 POWERPC_SVR_8560_v20
= 0x80700020 | POWERPC_SVR_E500
,
735 POWERPC_SVR_8560_v21
= 0x80700021 | POWERPC_SVR_E500
,
736 POWERPC_SVR_8567
= 0x80750111 | POWERPC_SVR_E500
,
737 POWERPC_SVR_8567E
= 0x807D0111 | POWERPC_SVR_E500
,
738 POWERPC_SVR_8568
= 0x80750011 | POWERPC_SVR_E500
,
739 POWERPC_SVR_8568E
= 0x807D0011 | POWERPC_SVR_E500
,
740 POWERPC_SVR_8572
= 0x80E00010 | POWERPC_SVR_E500
,
741 POWERPC_SVR_8572E
= 0x80E80010 | POWERPC_SVR_E500
,
742 POWERPC_SVR_8610
= 0x80A00011,
743 POWERPC_SVR_8641
= 0x80900021,
744 POWERPC_SVR_8641D
= 0x80900121,