xref: /openbmc/qemu/target/ppc/cpu-models.c (revision 709395f8)
1 /*
2  *  PowerPC CPU initialization for qemu.
3  *
4  *  Copyright (c) 2003-2007 Jocelyn Mayer
5  *  Copyright 2011 Freescale Semiconductor, Inc.
6  *  Copyright 2013 SUSE LINUX Products GmbH
7  *
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.
12  *
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.
17  *
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/>.
20  */
21 
22 #include "qemu/osdep.h"
23 #include "cpu.h"
24 #include "cpu-models.h"
25 
26 #if defined(CONFIG_USER_ONLY)
27 #define TODO_USER_ONLY 1
28 #endif
29 
30 /***************************************************************************/
31 /* PowerPC CPU definitions                                                 */
32 #define POWERPC_DEF_PREFIX(pvr, svr, type)                                  \
33     glue(glue(glue(glue(pvr, _), svr), _), type)
34 #define POWERPC_DEF_SVR(_name, _desc, _pvr, _svr, _type)                    \
35     static void                                                             \
36     glue(POWERPC_DEF_PREFIX(_pvr, _svr, _type), _cpu_class_init)            \
37     (ObjectClass *oc, void *data)                                           \
38     {                                                                       \
39         DeviceClass *dc = DEVICE_CLASS(oc);                                 \
40         PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);                       \
41                                                                             \
42         pcc->pvr          = _pvr;                                           \
43         pcc->svr          = _svr;                                           \
44         dc->desc          = _desc;                                          \
45     }                                                                       \
46                                                                             \
47     static const TypeInfo                                                   \
48     glue(POWERPC_DEF_PREFIX(_pvr, _svr, _type), _cpu_type_info) = {         \
49         .name       = POWERPC_CPU_TYPE_NAME(_name),                           \
50         .parent     = stringify(_type) "-family-" TYPE_POWERPC_CPU,         \
51         .class_init =                                                       \
52             glue(POWERPC_DEF_PREFIX(_pvr, _svr, _type), _cpu_class_init),   \
53     };                                                                      \
54                                                                             \
55     static void                                                             \
56     glue(POWERPC_DEF_PREFIX(_pvr, _svr, _type), _cpu_register_types)(void)  \
57     {                                                                       \
58         type_register_static(                                               \
59             &glue(POWERPC_DEF_PREFIX(_pvr, _svr, _type), _cpu_type_info));  \
60     }                                                                       \
61                                                                             \
62     type_init(                                                              \
63         glue(POWERPC_DEF_PREFIX(_pvr, _svr, _type), _cpu_register_types))
64 
65 #define POWERPC_DEF(_name, _pvr, _type, _desc)                              \
66     POWERPC_DEF_SVR(_name, _desc, _pvr, POWERPC_SVR_NONE, _type)
67 
68     /* Embedded PowerPC                                                      */
69     /* PowerPC 401 family                                                    */
70     POWERPC_DEF("401",           CPU_POWERPC_401,                    401,
71                 "Generic PowerPC 401")
72     /* PowerPC 401 cores                                                     */
73     POWERPC_DEF("401a1",         CPU_POWERPC_401A1,                  401,
74                 "PowerPC 401A1")
75     POWERPC_DEF("401b2",         CPU_POWERPC_401B2,                  401x2,
76                 "PowerPC 401B2")
77     POWERPC_DEF("401c2",         CPU_POWERPC_401C2,                  401x2,
78                 "PowerPC 401C2")
79     POWERPC_DEF("401d2",         CPU_POWERPC_401D2,                  401x2,
80                 "PowerPC 401D2")
81     POWERPC_DEF("401e2",         CPU_POWERPC_401E2,                  401x2,
82                 "PowerPC 401E2")
83     POWERPC_DEF("401f2",         CPU_POWERPC_401F2,                  401x2,
84                 "PowerPC 401F2")
85     /* XXX: to be checked */
86     POWERPC_DEF("401g2",         CPU_POWERPC_401G2,                  401x2,
87                 "PowerPC 401G2")
88     /* PowerPC 401 microcontrollers                                          */
89     POWERPC_DEF("iop480",        CPU_POWERPC_IOP480,                 IOP480,
90                 "IOP480 (401 microcontroller)")
91     POWERPC_DEF("cobra",         CPU_POWERPC_COBRA,                  401,
92                 "IBM Processor for Network Resources")
93     /* PowerPC 403 family                                                    */
94     /* PowerPC 403 microcontrollers                                          */
95     POWERPC_DEF("403ga",         CPU_POWERPC_403GA,                  403,
96                 "PowerPC 403 GA")
97     POWERPC_DEF("403gb",         CPU_POWERPC_403GB,                  403,
98                 "PowerPC 403 GB")
99     POWERPC_DEF("403gc",         CPU_POWERPC_403GC,                  403,
100                 "PowerPC 403 GC")
101     POWERPC_DEF("403gcx",        CPU_POWERPC_403GCX,                 403GCX,
102                 "PowerPC 403 GCX")
103     /* PowerPC 405 family                                                    */
104     /* PowerPC 405 cores                                                     */
105     POWERPC_DEF("405d2",         CPU_POWERPC_405D2,                  405,
106                 "PowerPC 405 D2")
107     POWERPC_DEF("405d4",         CPU_POWERPC_405D4,                  405,
108                 "PowerPC 405 D4")
109     /* PowerPC 405 microcontrollers                                          */
110     POWERPC_DEF("405cra",        CPU_POWERPC_405CRa,                 405,
111                 "PowerPC 405 CRa")
112     POWERPC_DEF("405crb",        CPU_POWERPC_405CRb,                 405,
113                 "PowerPC 405 CRb")
114     POWERPC_DEF("405crc",        CPU_POWERPC_405CRc,                 405,
115                 "PowerPC 405 CRc")
116     POWERPC_DEF("405ep",         CPU_POWERPC_405EP,                  405,
117                 "PowerPC 405 EP")
118     POWERPC_DEF("405ez",         CPU_POWERPC_405EZ,                  405,
119                 "PowerPC 405 EZ")
120     POWERPC_DEF("405gpa",        CPU_POWERPC_405GPa,                 405,
121                 "PowerPC 405 GPa")
122     POWERPC_DEF("405gpb",        CPU_POWERPC_405GPb,                 405,
123                 "PowerPC 405 GPb")
124     POWERPC_DEF("405gpc",        CPU_POWERPC_405GPc,                 405,
125                 "PowerPC 405 GPc")
126     POWERPC_DEF("405gpd",        CPU_POWERPC_405GPd,                 405,
127                 "PowerPC 405 GPd")
128     POWERPC_DEF("405gpr",        CPU_POWERPC_405GPR,                 405,
129                 "PowerPC 405 GPR")
130     POWERPC_DEF("405lp",         CPU_POWERPC_405LP,                  405,
131                 "PowerPC 405 LP")
132     POWERPC_DEF("npe405h",       CPU_POWERPC_NPE405H,                405,
133                 "Npe405 H")
134     POWERPC_DEF("npe405h2",      CPU_POWERPC_NPE405H2,               405,
135                 "Npe405 H2")
136     POWERPC_DEF("npe405l",       CPU_POWERPC_NPE405L,                405,
137                 "Npe405 L")
138     POWERPC_DEF("npe4gs3",       CPU_POWERPC_NPE4GS3,                405,
139                 "Npe4GS3")
140     /* PowerPC 401/403/405 based set-top-box microcontrollers                */
141     POWERPC_DEF("stb03",         CPU_POWERPC_STB03,                  405,
142                 "STB03xx")
143     POWERPC_DEF("stb04",         CPU_POWERPC_STB04,                  405,
144                 "STB04xx")
145     POWERPC_DEF("stb25",         CPU_POWERPC_STB25,                  405,
146                 "STB25xx")
147     /* Xilinx PowerPC 405 cores                                              */
148     POWERPC_DEF("x2vp4",         CPU_POWERPC_X2VP4,                  405,
149                 NULL)
150     POWERPC_DEF("x2vp20",        CPU_POWERPC_X2VP20,                 405,
151                 NULL)
152     /* PowerPC 440 family                                                    */
153 #if defined(TODO_USER_ONLY)
154     POWERPC_DEF("440",           CPU_POWERPC_440,                    440GP,
155                 "Generic PowerPC 440")
156 #endif
157     /* PowerPC 440 cores                                                     */
158     POWERPC_DEF("440-xilinx",    CPU_POWERPC_440_XILINX,             440x5,
159                 "PowerPC 440 Xilinx 5")
160 
161     POWERPC_DEF("440-xilinx-w-dfpu",    CPU_POWERPC_440_XILINX, 440x5wDFPU,
162                 "PowerPC 440 Xilinx 5 With a Double Prec. FPU")
163     /* PowerPC 440 microcontrollers                                          */
164     POWERPC_DEF("440epa",        CPU_POWERPC_440EPa,                 440EP,
165                 "PowerPC 440 EPa")
166     POWERPC_DEF("440epb",        CPU_POWERPC_440EPb,                 440EP,
167                 "PowerPC 440 EPb")
168     POWERPC_DEF("440epx",        CPU_POWERPC_440EPX,                 440EP,
169                 "PowerPC 440 EPX")
170     POWERPC_DEF("460exb",        CPU_POWERPC_460EXb,                 460EX,
171                 "PowerPC 460 EXb")
172 #if defined(TODO_USER_ONLY)
173     POWERPC_DEF("440gpb",        CPU_POWERPC_440GPb,                 440GP,
174                 "PowerPC 440 GPb")
175 #endif
176 #if defined(TODO_USER_ONLY)
177     POWERPC_DEF("440gpc",        CPU_POWERPC_440GPc,                 440GP,
178                 "PowerPC 440 GPc")
179 #endif
180 #if defined(TODO_USER_ONLY)
181     POWERPC_DEF("440gra",        CPU_POWERPC_440GRa,                 440x5,
182                 "PowerPC 440 GRa")
183 #endif
184 #if defined(TODO_USER_ONLY)
185     POWERPC_DEF("440grx",        CPU_POWERPC_440GRX,                 440x5,
186                 "PowerPC 440 GRX")
187 #endif
188 #if defined(TODO_USER_ONLY)
189     POWERPC_DEF("440gxa",        CPU_POWERPC_440GXa,                 440EP,
190                 "PowerPC 440 GXa")
191 #endif
192 #if defined(TODO_USER_ONLY)
193     POWERPC_DEF("440gxb",        CPU_POWERPC_440GXb,                 440EP,
194                 "PowerPC 440 GXb")
195 #endif
196 #if defined(TODO_USER_ONLY)
197     POWERPC_DEF("440gxc",        CPU_POWERPC_440GXc,                 440EP,
198                 "PowerPC 440 GXc")
199 #endif
200 #if defined(TODO_USER_ONLY)
201     POWERPC_DEF("440gxf",        CPU_POWERPC_440GXf,                 440EP,
202                 "PowerPC 440 GXf")
203 #endif
204 #if defined(TODO_USER_ONLY)
205     POWERPC_DEF("440sp",         CPU_POWERPC_440SP,                  440EP,
206                 "PowerPC 440 SP")
207 #endif
208 #if defined(TODO_USER_ONLY)
209     POWERPC_DEF("440sp2",        CPU_POWERPC_440SP2,                 440EP,
210                 "PowerPC 440 SP2")
211 #endif
212 #if defined(TODO_USER_ONLY)
213     POWERPC_DEF("440spe",        CPU_POWERPC_440SPE,                 440EP,
214                 "PowerPC 440 SPE")
215 #endif
216     /* Freescale embedded PowerPC cores                                      */
217     /* MPC5xx family (aka RCPU)                                              */
218 #if defined(TODO_USER_ONLY)
219     POWERPC_DEF("mpc5xx",        CPU_POWERPC_MPC5xx,                 MPC5xx,
220                 "Generic MPC5xx core")
221 #endif
222     /* MPC8xx family (aka PowerQUICC)                                        */
223 #if defined(TODO_USER_ONLY)
224     POWERPC_DEF("mpc8xx",        CPU_POWERPC_MPC8xx,                 MPC8xx,
225                 "Generic MPC8xx core")
226 #endif
227     /* MPC82xx family (aka PowerQUICC-II)                                    */
228     POWERPC_DEF("g2",            CPU_POWERPC_G2,                     G2,
229                 "PowerPC G2 core")
230     POWERPC_DEF("g2h4",          CPU_POWERPC_G2H4,                   G2,
231                 "PowerPC G2 H4 core")
232     POWERPC_DEF("g2gp",          CPU_POWERPC_G2gp,                   G2,
233                 "PowerPC G2 GP core")
234     POWERPC_DEF("g2ls",          CPU_POWERPC_G2ls,                   G2,
235                 "PowerPC G2 LS core")
236     POWERPC_DEF("g2hip3",        CPU_POWERPC_G2_HIP3,                G2,
237                 "PowerPC G2 HiP3 core")
238     POWERPC_DEF("g2hip4",        CPU_POWERPC_G2_HIP4,                G2,
239                 "PowerPC G2 HiP4 core")
240     POWERPC_DEF("mpc603",        CPU_POWERPC_MPC603,                 603E,
241                 "PowerPC MPC603 core")
242     POWERPC_DEF("g2le",          CPU_POWERPC_G2LE,                   G2LE,
243         "PowerPC G2le core (same as G2 plus little-endian mode support)")
244     POWERPC_DEF("g2legp",        CPU_POWERPC_G2LEgp,                 G2LE,
245                 "PowerPC G2LE GP core")
246     POWERPC_DEF("g2lels",        CPU_POWERPC_G2LEls,                 G2LE,
247                 "PowerPC G2LE LS core")
248     POWERPC_DEF("g2legp1",       CPU_POWERPC_G2LEgp1,                G2LE,
249                 "PowerPC G2LE GP1 core")
250     POWERPC_DEF("g2legp3",       CPU_POWERPC_G2LEgp3,                G2LE,
251                 "PowerPC G2LE GP3 core")
252     /* PowerPC G2 microcontrollers                                           */
253     POWERPC_DEF_SVR("mpc5200_v10", "MPC5200 v1.0",
254                     CPU_POWERPC_MPC5200_v10,  POWERPC_SVR_5200_v10,  G2LE)
255     POWERPC_DEF_SVR("mpc5200_v11", "MPC5200 v1.1",
256                     CPU_POWERPC_MPC5200_v11,  POWERPC_SVR_5200_v11,  G2LE)
257     POWERPC_DEF_SVR("mpc5200_v12", "MPC5200 v1.2",
258                     CPU_POWERPC_MPC5200_v12,  POWERPC_SVR_5200_v12,  G2LE)
259     POWERPC_DEF_SVR("mpc5200b_v20", "MPC5200B v2.0",
260                     CPU_POWERPC_MPC5200B_v20, POWERPC_SVR_5200B_v20, G2LE)
261     POWERPC_DEF_SVR("mpc5200b_v21", "MPC5200B v2.1",
262                     CPU_POWERPC_MPC5200B_v21, POWERPC_SVR_5200B_v21, G2LE)
263     /* e200 family                                                           */
264     POWERPC_DEF("e200z5",        CPU_POWERPC_e200z5,                 e200,
265                 "PowerPC e200z5 core")
266     POWERPC_DEF("e200z6",        CPU_POWERPC_e200z6,                 e200,
267                 "PowerPC e200z6 core")
268     /* e300 family                                                           */
269     POWERPC_DEF("e300c1",        CPU_POWERPC_e300c1,                 e300,
270                 "PowerPC e300c1 core")
271     POWERPC_DEF("e300c2",        CPU_POWERPC_e300c2,                 e300,
272                 "PowerPC e300c2 core")
273     POWERPC_DEF("e300c3",        CPU_POWERPC_e300c3,                 e300,
274                 "PowerPC e300c3 core")
275     POWERPC_DEF("e300c4",        CPU_POWERPC_e300c4,                 e300,
276                 "PowerPC e300c4 core")
277     /* PowerPC e300 microcontrollers                                         */
278     POWERPC_DEF_SVR("mpc8343", "MPC8343",
279                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8343,      e300)
280     POWERPC_DEF_SVR("mpc8343a", "MPC8343A",
281                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8343A,     e300)
282     POWERPC_DEF_SVR("mpc8343e", "MPC8343E",
283                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8343E,     e300)
284     POWERPC_DEF_SVR("mpc8343ea", "MPC8343EA",
285                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8343EA,    e300)
286     POWERPC_DEF_SVR("mpc8347t", "MPC8347T",
287                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8347T,     e300)
288     POWERPC_DEF_SVR("mpc8347p", "MPC8347P",
289                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8347P,     e300)
290     POWERPC_DEF_SVR("mpc8347at", "MPC8347AT",
291                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8347AT,    e300)
292     POWERPC_DEF_SVR("mpc8347ap", "MPC8347AP",
293                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8347AP,    e300)
294     POWERPC_DEF_SVR("mpc8347et", "MPC8347ET",
295                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8347ET,    e300)
296     POWERPC_DEF_SVR("mpc8347ep", "MPC8343EP",
297                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8347EP,    e300)
298     POWERPC_DEF_SVR("mpc8347eat", "MPC8347EAT",
299                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8347EAT,   e300)
300     POWERPC_DEF_SVR("mpc8347eap", "MPC8343EAP",
301                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8347EAP,   e300)
302     POWERPC_DEF_SVR("mpc8349", "MPC8349",
303                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8349,      e300)
304     POWERPC_DEF_SVR("mpc8349a", "MPC8349A",
305                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8349A,     e300)
306     POWERPC_DEF_SVR("mpc8349e", "MPC8349E",
307                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8349E,     e300)
308     POWERPC_DEF_SVR("mpc8349ea", "MPC8349EA",
309                     CPU_POWERPC_MPC834x,      POWERPC_SVR_8349EA,    e300)
310     POWERPC_DEF_SVR("mpc8377", "MPC8377",
311                     CPU_POWERPC_MPC837x,      POWERPC_SVR_8377,      e300)
312     POWERPC_DEF_SVR("mpc8377e", "MPC8377E",
313                     CPU_POWERPC_MPC837x,      POWERPC_SVR_8377E,     e300)
314     POWERPC_DEF_SVR("mpc8378", "MPC8378",
315                     CPU_POWERPC_MPC837x,      POWERPC_SVR_8378,      e300)
316     POWERPC_DEF_SVR("mpc8378e", "MPC8378E",
317                     CPU_POWERPC_MPC837x,      POWERPC_SVR_8378E,     e300)
318     POWERPC_DEF_SVR("mpc8379", "MPC8379",
319                     CPU_POWERPC_MPC837x,      POWERPC_SVR_8379,      e300)
320     POWERPC_DEF_SVR("mpc8379e", "MPC8379E",
321                     CPU_POWERPC_MPC837x,      POWERPC_SVR_8379E,     e300)
322     /* e500 family                                                           */
323     POWERPC_DEF_SVR("e500_v10", "PowerPC e500 v1.0 core",
324                     CPU_POWERPC_e500v1_v10,   POWERPC_SVR_E500,      e500v1);
325     POWERPC_DEF_SVR("e500_v20", "PowerPC e500 v2.0 core",
326                     CPU_POWERPC_e500v1_v20,   POWERPC_SVR_E500,      e500v1);
327     POWERPC_DEF_SVR("e500v2_v10", "PowerPC e500v2 v1.0 core",
328                     CPU_POWERPC_e500v2_v10,   POWERPC_SVR_E500,      e500v2);
329     POWERPC_DEF_SVR("e500v2_v20", "PowerPC e500v2 v2.0 core",
330                     CPU_POWERPC_e500v2_v20,   POWERPC_SVR_E500,      e500v2);
331     POWERPC_DEF_SVR("e500v2_v21", "PowerPC e500v2 v2.1 core",
332                     CPU_POWERPC_e500v2_v21,   POWERPC_SVR_E500,      e500v2);
333     POWERPC_DEF_SVR("e500v2_v22", "PowerPC e500v2 v2.2 core",
334                     CPU_POWERPC_e500v2_v22,   POWERPC_SVR_E500,      e500v2);
335     POWERPC_DEF_SVR("e500v2_v30", "PowerPC e500v2 v3.0 core",
336                     CPU_POWERPC_e500v2_v30,   POWERPC_SVR_E500,      e500v2);
337     POWERPC_DEF_SVR("e500mc", "e500mc",
338                     CPU_POWERPC_e500mc,       POWERPC_SVR_E500,      e500mc)
339 #ifdef TARGET_PPC64
340     POWERPC_DEF_SVR("e5500", "e5500",
341                     CPU_POWERPC_e5500,        POWERPC_SVR_E500,      e5500)
342     POWERPC_DEF_SVR("e6500", "e6500",
343                     CPU_POWERPC_e6500,        POWERPC_SVR_E500,      e6500)
344 #endif
345     /* PowerPC e500 microcontrollers                                         */
346     POWERPC_DEF_SVR("mpc8533_v10", "MPC8533 v1.0",
347                     CPU_POWERPC_MPC8533_v10,  POWERPC_SVR_8533_v10,  e500v2)
348     POWERPC_DEF_SVR("mpc8533_v11", "MPC8533 v1.1",
349                     CPU_POWERPC_MPC8533_v11,  POWERPC_SVR_8533_v11,  e500v2)
350     POWERPC_DEF_SVR("mpc8533e_v10", "MPC8533E v1.0",
351                     CPU_POWERPC_MPC8533E_v10, POWERPC_SVR_8533E_v10, e500v2)
352     POWERPC_DEF_SVR("mpc8533e_v11", "MPC8533E v1.1",
353                     CPU_POWERPC_MPC8533E_v11, POWERPC_SVR_8533E_v11, e500v2)
354     POWERPC_DEF_SVR("mpc8540_v10", "MPC8540 v1.0",
355                     CPU_POWERPC_MPC8540_v10,  POWERPC_SVR_8540_v10,  e500v1)
356     POWERPC_DEF_SVR("mpc8540_v20", "MPC8540 v2.0",
357                     CPU_POWERPC_MPC8540_v20,  POWERPC_SVR_8540_v20,  e500v1)
358     POWERPC_DEF_SVR("mpc8540_v21", "MPC8540 v2.1",
359                     CPU_POWERPC_MPC8540_v21,  POWERPC_SVR_8540_v21,  e500v1)
360     POWERPC_DEF_SVR("mpc8541_v10", "MPC8541 v1.0",
361                     CPU_POWERPC_MPC8541_v10,  POWERPC_SVR_8541_v10,  e500v1)
362     POWERPC_DEF_SVR("mpc8541_v11", "MPC8541 v1.1",
363                     CPU_POWERPC_MPC8541_v11,  POWERPC_SVR_8541_v11,  e500v1)
364     POWERPC_DEF_SVR("mpc8541e_v10", "MPC8541E v1.0",
365                     CPU_POWERPC_MPC8541E_v10, POWERPC_SVR_8541E_v10, e500v1)
366     POWERPC_DEF_SVR("mpc8541e_v11", "MPC8541E v1.1",
367                     CPU_POWERPC_MPC8541E_v11, POWERPC_SVR_8541E_v11, e500v1)
368     POWERPC_DEF_SVR("mpc8543_v10", "MPC8543 v1.0",
369                     CPU_POWERPC_MPC8543_v10,  POWERPC_SVR_8543_v10,  e500v2)
370     POWERPC_DEF_SVR("mpc8543_v11", "MPC8543 v1.1",
371                     CPU_POWERPC_MPC8543_v11,  POWERPC_SVR_8543_v11,  e500v2)
372     POWERPC_DEF_SVR("mpc8543_v20", "MPC8543 v2.0",
373                     CPU_POWERPC_MPC8543_v20,  POWERPC_SVR_8543_v20,  e500v2)
374     POWERPC_DEF_SVR("mpc8543_v21", "MPC8543 v2.1",
375                     CPU_POWERPC_MPC8543_v21,  POWERPC_SVR_8543_v21,  e500v2)
376     POWERPC_DEF_SVR("mpc8543e_v10", "MPC8543E v1.0",
377                     CPU_POWERPC_MPC8543E_v10, POWERPC_SVR_8543E_v10, e500v2)
378     POWERPC_DEF_SVR("mpc8543e_v11", "MPC8543E v1.1",
379                     CPU_POWERPC_MPC8543E_v11, POWERPC_SVR_8543E_v11, e500v2)
380     POWERPC_DEF_SVR("mpc8543e_v20", "MPC8543E v2.0",
381                     CPU_POWERPC_MPC8543E_v20, POWERPC_SVR_8543E_v20, e500v2)
382     POWERPC_DEF_SVR("mpc8543e_v21", "MPC8543E v2.1",
383                     CPU_POWERPC_MPC8543E_v21, POWERPC_SVR_8543E_v21, e500v2)
384     POWERPC_DEF_SVR("mpc8544_v10", "MPC8544 v1.0",
385                     CPU_POWERPC_MPC8544_v10,  POWERPC_SVR_8544_v10,  e500v2)
386     POWERPC_DEF_SVR("mpc8544_v11", "MPC8544 v1.1",
387                     CPU_POWERPC_MPC8544_v11,  POWERPC_SVR_8544_v11,  e500v2)
388     POWERPC_DEF_SVR("mpc8544e_v10", "MPC8544E v1.0",
389                     CPU_POWERPC_MPC8544E_v10, POWERPC_SVR_8544E_v10, e500v2)
390     POWERPC_DEF_SVR("mpc8544e_v11", "MPC8544E v1.1",
391                     CPU_POWERPC_MPC8544E_v11, POWERPC_SVR_8544E_v11, e500v2)
392     POWERPC_DEF_SVR("mpc8545_v20", "MPC8545 v2.0",
393                     CPU_POWERPC_MPC8545_v20,  POWERPC_SVR_8545_v20,  e500v2)
394     POWERPC_DEF_SVR("mpc8545_v21", "MPC8545 v2.1",
395                     CPU_POWERPC_MPC8545_v21,  POWERPC_SVR_8545_v21,  e500v2)
396     POWERPC_DEF_SVR("mpc8545e_v20", "MPC8545E v2.0",
397                     CPU_POWERPC_MPC8545E_v20, POWERPC_SVR_8545E_v20, e500v2)
398     POWERPC_DEF_SVR("mpc8545e_v21", "MPC8545E v2.1",
399                     CPU_POWERPC_MPC8545E_v21, POWERPC_SVR_8545E_v21, e500v2)
400     POWERPC_DEF_SVR("mpc8547e_v20", "MPC8547E v2.0",
401                     CPU_POWERPC_MPC8547E_v20, POWERPC_SVR_8547E_v20, e500v2)
402     POWERPC_DEF_SVR("mpc8547e_v21", "MPC8547E v2.1",
403                     CPU_POWERPC_MPC8547E_v21, POWERPC_SVR_8547E_v21, e500v2)
404     POWERPC_DEF_SVR("mpc8548_v10", "MPC8548 v1.0",
405                     CPU_POWERPC_MPC8548_v10,  POWERPC_SVR_8548_v10,  e500v2)
406     POWERPC_DEF_SVR("mpc8548_v11", "MPC8548 v1.1",
407                     CPU_POWERPC_MPC8548_v11,  POWERPC_SVR_8548_v11,  e500v2)
408     POWERPC_DEF_SVR("mpc8548_v20", "MPC8548 v2.0",
409                     CPU_POWERPC_MPC8548_v20,  POWERPC_SVR_8548_v20,  e500v2)
410     POWERPC_DEF_SVR("mpc8548_v21", "MPC8548 v2.1",
411                     CPU_POWERPC_MPC8548_v21,  POWERPC_SVR_8548_v21,  e500v2)
412     POWERPC_DEF_SVR("mpc8548e_v10", "MPC8548E v1.0",
413                     CPU_POWERPC_MPC8548E_v10, POWERPC_SVR_8548E_v10, e500v2)
414     POWERPC_DEF_SVR("mpc8548e_v11", "MPC8548E v1.1",
415                     CPU_POWERPC_MPC8548E_v11, POWERPC_SVR_8548E_v11, e500v2)
416     POWERPC_DEF_SVR("mpc8548e_v20", "MPC8548E v2.0",
417                     CPU_POWERPC_MPC8548E_v20, POWERPC_SVR_8548E_v20, e500v2)
418     POWERPC_DEF_SVR("mpc8548e_v21", "MPC8548E v2.1",
419                     CPU_POWERPC_MPC8548E_v21, POWERPC_SVR_8548E_v21, e500v2)
420     POWERPC_DEF_SVR("mpc8555_v10", "MPC8555 v1.0",
421                     CPU_POWERPC_MPC8555_v10,  POWERPC_SVR_8555_v10,  e500v2)
422     POWERPC_DEF_SVR("mpc8555_v11", "MPC8555 v1.1",
423                     CPU_POWERPC_MPC8555_v11,  POWERPC_SVR_8555_v11,  e500v2)
424     POWERPC_DEF_SVR("mpc8555e_v10", "MPC8555E v1.0",
425                     CPU_POWERPC_MPC8555E_v10, POWERPC_SVR_8555E_v10, e500v2)
426     POWERPC_DEF_SVR("mpc8555e_v11", "MPC8555E v1.1",
427                     CPU_POWERPC_MPC8555E_v11, POWERPC_SVR_8555E_v11, e500v2)
428     POWERPC_DEF_SVR("mpc8560_v10", "MPC8560 v1.0",
429                     CPU_POWERPC_MPC8560_v10,  POWERPC_SVR_8560_v10,  e500v2)
430     POWERPC_DEF_SVR("mpc8560_v20", "MPC8560 v2.0",
431                     CPU_POWERPC_MPC8560_v20,  POWERPC_SVR_8560_v20,  e500v2)
432     POWERPC_DEF_SVR("mpc8560_v21", "MPC8560 v2.1",
433                     CPU_POWERPC_MPC8560_v21,  POWERPC_SVR_8560_v21,  e500v2)
434     POWERPC_DEF_SVR("mpc8567", "MPC8567",
435                     CPU_POWERPC_MPC8567,      POWERPC_SVR_8567,      e500v2)
436     POWERPC_DEF_SVR("mpc8567e", "MPC8567E",
437                     CPU_POWERPC_MPC8567E,     POWERPC_SVR_8567E,     e500v2)
438     POWERPC_DEF_SVR("mpc8568", "MPC8568",
439                     CPU_POWERPC_MPC8568,      POWERPC_SVR_8568,      e500v2)
440     POWERPC_DEF_SVR("mpc8568e", "MPC8568E",
441                     CPU_POWERPC_MPC8568E,     POWERPC_SVR_8568E,     e500v2)
442     POWERPC_DEF_SVR("mpc8572", "MPC8572",
443                     CPU_POWERPC_MPC8572,      POWERPC_SVR_8572,      e500v2)
444     POWERPC_DEF_SVR("mpc8572e", "MPC8572E",
445                     CPU_POWERPC_MPC8572E,     POWERPC_SVR_8572E,     e500v2)
446     /* e600 family                                                           */
447     POWERPC_DEF("e600",          CPU_POWERPC_e600,                   e600,
448                 "PowerPC e600 core")
449     /* PowerPC e600 microcontrollers                                         */
450     POWERPC_DEF_SVR("mpc8610", "MPC8610",
451                     CPU_POWERPC_MPC8610,      POWERPC_SVR_8610,      e600)
452     POWERPC_DEF_SVR("mpc8641", "MPC8641",
453                     CPU_POWERPC_MPC8641,      POWERPC_SVR_8641,      e600)
454     POWERPC_DEF_SVR("mpc8641d", "MPC8641D",
455                     CPU_POWERPC_MPC8641D,     POWERPC_SVR_8641D,     e600)
456     /* 32 bits "classic" PowerPC                                             */
457     /* PowerPC 6xx family                                                    */
458     POWERPC_DEF("601_v0",        CPU_POWERPC_601_v0,                 601,
459                 "PowerPC 601v0")
460     POWERPC_DEF("601_v1",        CPU_POWERPC_601_v1,                 601,
461                 "PowerPC 601v1")
462     POWERPC_DEF("601_v2",        CPU_POWERPC_601_v2,                 601v,
463                 "PowerPC 601v2")
464     POWERPC_DEF("602",           CPU_POWERPC_602,                    602,
465                 "PowerPC 602")
466     POWERPC_DEF("603",           CPU_POWERPC_603,                    603,
467                 "PowerPC 603")
468     POWERPC_DEF("603e_v1.1",     CPU_POWERPC_603E_v11,               603E,
469                 "PowerPC 603e v1.1")
470     POWERPC_DEF("603e_v1.2",     CPU_POWERPC_603E_v12,               603E,
471                 "PowerPC 603e v1.2")
472     POWERPC_DEF("603e_v1.3",     CPU_POWERPC_603E_v13,               603E,
473                 "PowerPC 603e v1.3")
474     POWERPC_DEF("603e_v1.4",     CPU_POWERPC_603E_v14,               603E,
475                 "PowerPC 603e v1.4")
476     POWERPC_DEF("603e_v2.2",     CPU_POWERPC_603E_v22,               603E,
477                 "PowerPC 603e v2.2")
478     POWERPC_DEF("603e_v3",       CPU_POWERPC_603E_v3,                603E,
479                 "PowerPC 603e v3")
480     POWERPC_DEF("603e_v4",       CPU_POWERPC_603E_v4,                603E,
481                 "PowerPC 603e v4")
482     POWERPC_DEF("603e_v4.1",     CPU_POWERPC_603E_v41,               603E,
483                 "PowerPC 603e v4.1")
484     POWERPC_DEF("603e7",         CPU_POWERPC_603E7,                  603E,
485                 "PowerPC 603e (aka PID7)")
486     POWERPC_DEF("603e7t",        CPU_POWERPC_603E7t,                 603E,
487                 "PowerPC 603e7t")
488     POWERPC_DEF("603e7v",        CPU_POWERPC_603E7v,                 603E,
489                 "PowerPC 603e7v")
490     POWERPC_DEF("603e7v1",       CPU_POWERPC_603E7v1,                603E,
491                 "PowerPC 603e7v1")
492     POWERPC_DEF("603e7v2",       CPU_POWERPC_603E7v2,                603E,
493                 "PowerPC 603e7v2")
494     POWERPC_DEF("603p",          CPU_POWERPC_603P,                   603E,
495                 "PowerPC 603p (aka PID7v)")
496     POWERPC_DEF("604",           CPU_POWERPC_604,                    604,
497                 "PowerPC 604")
498     POWERPC_DEF("604e_v1.0",     CPU_POWERPC_604E_v10,               604E,
499                 "PowerPC 604e v1.0")
500     POWERPC_DEF("604e_v2.2",     CPU_POWERPC_604E_v22,               604E,
501                 "PowerPC 604e v2.2")
502     POWERPC_DEF("604e_v2.4",     CPU_POWERPC_604E_v24,               604E,
503                 "PowerPC 604e v2.4")
504     POWERPC_DEF("604r",          CPU_POWERPC_604R,                   604E,
505                 "PowerPC 604r (aka PIDA)")
506     /* PowerPC 7xx family                                                    */
507     POWERPC_DEF("740_v1.0",      CPU_POWERPC_7x0_v10,                740,
508                 "PowerPC 740 v1.0 (G3)")
509     POWERPC_DEF("750_v1.0",      CPU_POWERPC_7x0_v10,                750,
510                 "PowerPC 750 v1.0 (G3)")
511     POWERPC_DEF("740_v2.0",      CPU_POWERPC_7x0_v20,                740,
512                 "PowerPC 740 v2.0 (G3)")
513     POWERPC_DEF("750_v2.0",      CPU_POWERPC_7x0_v20,                750,
514                 "PowerPC 750 v2.0 (G3)")
515     POWERPC_DEF("740_v2.1",      CPU_POWERPC_7x0_v21,                740,
516                 "PowerPC 740 v2.1 (G3)")
517     POWERPC_DEF("750_v2.1",      CPU_POWERPC_7x0_v21,                750,
518                 "PowerPC 750 v2.1 (G3)")
519     POWERPC_DEF("740_v2.2",      CPU_POWERPC_7x0_v22,                740,
520                 "PowerPC 740 v2.2 (G3)")
521     POWERPC_DEF("750_v2.2",      CPU_POWERPC_7x0_v22,                750,
522                 "PowerPC 750 v2.2 (G3)")
523     POWERPC_DEF("740_v3.0",      CPU_POWERPC_7x0_v30,                740,
524                 "PowerPC 740 v3.0 (G3)")
525     POWERPC_DEF("750_v3.0",      CPU_POWERPC_7x0_v30,                750,
526                 "PowerPC 750 v3.0 (G3)")
527     POWERPC_DEF("740_v3.1",      CPU_POWERPC_7x0_v31,                740,
528                 "PowerPC 740 v3.1 (G3)")
529     POWERPC_DEF("750_v3.1",      CPU_POWERPC_7x0_v31,                750,
530                 "PowerPC 750 v3.1 (G3)")
531     POWERPC_DEF("740e",          CPU_POWERPC_740E,                   740,
532                 "PowerPC 740E (G3)")
533     POWERPC_DEF("750e",          CPU_POWERPC_750E,                   750,
534                 "PowerPC 750E (G3)")
535     POWERPC_DEF("740p",          CPU_POWERPC_7x0P,                   740,
536                 "PowerPC 740P (G3)")
537     POWERPC_DEF("750p",          CPU_POWERPC_7x0P,                   750,
538                 "PowerPC 750P (G3)")
539     POWERPC_DEF("750cl_v1.0",    CPU_POWERPC_750CL_v10,              750cl,
540                 "PowerPC 750CL v1.0")
541     POWERPC_DEF("750cl_v2.0",    CPU_POWERPC_750CL_v20,              750cl,
542                 "PowerPC 750CL v2.0")
543     POWERPC_DEF("750cx_v1.0",    CPU_POWERPC_750CX_v10,              750cx,
544                 "PowerPC 750CX v1.0 (G3 embedded)")
545     POWERPC_DEF("750cx_v2.0",    CPU_POWERPC_750CX_v20,              750cx,
546                 "PowerPC 750CX v2.1 (G3 embedded)")
547     POWERPC_DEF("750cx_v2.1",    CPU_POWERPC_750CX_v21,              750cx,
548                 "PowerPC 750CX v2.1 (G3 embedded)")
549     POWERPC_DEF("750cx_v2.2",    CPU_POWERPC_750CX_v22,              750cx,
550                 "PowerPC 750CX v2.2 (G3 embedded)")
551     POWERPC_DEF("750cxe_v2.1",   CPU_POWERPC_750CXE_v21,             750cx,
552                 "PowerPC 750CXe v2.1 (G3 embedded)")
553     POWERPC_DEF("750cxe_v2.2",   CPU_POWERPC_750CXE_v22,             750cx,
554                 "PowerPC 750CXe v2.2 (G3 embedded)")
555     POWERPC_DEF("750cxe_v2.3",   CPU_POWERPC_750CXE_v23,             750cx,
556                 "PowerPC 750CXe v2.3 (G3 embedded)")
557     POWERPC_DEF("750cxe_v2.4",   CPU_POWERPC_750CXE_v24,             750cx,
558                 "PowerPC 750CXe v2.4 (G3 embedded)")
559     POWERPC_DEF("750cxe_v2.4b",  CPU_POWERPC_750CXE_v24b,            750cx,
560                 "PowerPC 750CXe v2.4b (G3 embedded)")
561     POWERPC_DEF("750cxe_v3.0",   CPU_POWERPC_750CXE_v30,             750cx,
562                 "PowerPC 750CXe v3.0 (G3 embedded)")
563     POWERPC_DEF("750cxe_v3.1",   CPU_POWERPC_750CXE_v31,             750cx,
564                 "PowerPC 750CXe v3.1 (G3 embedded)")
565     POWERPC_DEF("750cxe_v3.1b",  CPU_POWERPC_750CXE_v31b,            750cx,
566                 "PowerPC 750CXe v3.1b (G3 embedded)")
567     POWERPC_DEF("750cxr",        CPU_POWERPC_750CXR,                 750cx,
568                 "PowerPC 750CXr (G3 embedded)")
569     POWERPC_DEF("750fl",         CPU_POWERPC_750FL,                  750fx,
570                 "PowerPC 750FL (G3 embedded)")
571     POWERPC_DEF("750fx_v1.0",    CPU_POWERPC_750FX_v10,              750fx,
572                 "PowerPC 750FX v1.0 (G3 embedded)")
573     POWERPC_DEF("750fx_v2.0",    CPU_POWERPC_750FX_v20,              750fx,
574                 "PowerPC 750FX v2.0 (G3 embedded)")
575     POWERPC_DEF("750fx_v2.1",    CPU_POWERPC_750FX_v21,              750fx,
576                 "PowerPC 750FX v2.1 (G3 embedded)")
577     POWERPC_DEF("750fx_v2.2",    CPU_POWERPC_750FX_v22,              750fx,
578                 "PowerPC 750FX v2.2 (G3 embedded)")
579     POWERPC_DEF("750fx_v2.3",    CPU_POWERPC_750FX_v23,              750fx,
580                 "PowerPC 750FX v2.3 (G3 embedded)")
581     POWERPC_DEF("750gl",         CPU_POWERPC_750GL,                  750gx,
582                 "PowerPC 750GL (G3 embedded)")
583     POWERPC_DEF("750gx_v1.0",    CPU_POWERPC_750GX_v10,              750gx,
584                 "PowerPC 750GX v1.0 (G3 embedded)")
585     POWERPC_DEF("750gx_v1.1",    CPU_POWERPC_750GX_v11,              750gx,
586                 "PowerPC 750GX v1.1 (G3 embedded)")
587     POWERPC_DEF("750gx_v1.2",    CPU_POWERPC_750GX_v12,              750gx,
588                 "PowerPC 750GX v1.2 (G3 embedded)")
589     POWERPC_DEF("750l_v2.0",     CPU_POWERPC_750L_v20,               750,
590                 "PowerPC 750L v2.0 (G3 embedded)")
591     POWERPC_DEF("750l_v2.1",     CPU_POWERPC_750L_v21,               750,
592                 "PowerPC 750L v2.1 (G3 embedded)")
593     POWERPC_DEF("750l_v2.2",     CPU_POWERPC_750L_v22,               750,
594                 "PowerPC 750L v2.2 (G3 embedded)")
595     POWERPC_DEF("750l_v3.0",     CPU_POWERPC_750L_v30,               750,
596                 "PowerPC 750L v3.0 (G3 embedded)")
597     POWERPC_DEF("750l_v3.2",     CPU_POWERPC_750L_v32,               750,
598                 "PowerPC 750L v3.2 (G3 embedded)")
599     POWERPC_DEF("745_v1.0",      CPU_POWERPC_7x5_v10,                745,
600                 "PowerPC 745 v1.0")
601     POWERPC_DEF("755_v1.0",      CPU_POWERPC_7x5_v10,                755,
602                 "PowerPC 755 v1.0")
603     POWERPC_DEF("745_v1.1",      CPU_POWERPC_7x5_v11,                745,
604                 "PowerPC 745 v1.1")
605     POWERPC_DEF("755_v1.1",      CPU_POWERPC_7x5_v11,                755,
606                 "PowerPC 755 v1.1")
607     POWERPC_DEF("745_v2.0",      CPU_POWERPC_7x5_v20,                745,
608                 "PowerPC 745 v2.0")
609     POWERPC_DEF("755_v2.0",      CPU_POWERPC_7x5_v20,                755,
610                 "PowerPC 755 v2.0")
611     POWERPC_DEF("745_v2.1",      CPU_POWERPC_7x5_v21,                745,
612                 "PowerPC 745 v2.1")
613     POWERPC_DEF("755_v2.1",      CPU_POWERPC_7x5_v21,                755,
614                 "PowerPC 755 v2.1")
615     POWERPC_DEF("745_v2.2",      CPU_POWERPC_7x5_v22,                745,
616                 "PowerPC 745 v2.2")
617     POWERPC_DEF("755_v2.2",      CPU_POWERPC_7x5_v22,                755,
618                 "PowerPC 755 v2.2")
619     POWERPC_DEF("745_v2.3",      CPU_POWERPC_7x5_v23,                745,
620                 "PowerPC 745 v2.3")
621     POWERPC_DEF("755_v2.3",      CPU_POWERPC_7x5_v23,                755,
622                 "PowerPC 755 v2.3")
623     POWERPC_DEF("745_v2.4",      CPU_POWERPC_7x5_v24,                745,
624                 "PowerPC 745 v2.4")
625     POWERPC_DEF("755_v2.4",      CPU_POWERPC_7x5_v24,                755,
626                 "PowerPC 755 v2.4")
627     POWERPC_DEF("745_v2.5",      CPU_POWERPC_7x5_v25,                745,
628                 "PowerPC 745 v2.5")
629     POWERPC_DEF("755_v2.5",      CPU_POWERPC_7x5_v25,                755,
630                 "PowerPC 755 v2.5")
631     POWERPC_DEF("745_v2.6",      CPU_POWERPC_7x5_v26,                745,
632                 "PowerPC 745 v2.6")
633     POWERPC_DEF("755_v2.6",      CPU_POWERPC_7x5_v26,                755,
634                 "PowerPC 755 v2.6")
635     POWERPC_DEF("745_v2.7",      CPU_POWERPC_7x5_v27,                745,
636                 "PowerPC 745 v2.7")
637     POWERPC_DEF("755_v2.7",      CPU_POWERPC_7x5_v27,                755,
638                 "PowerPC 755 v2.7")
639     POWERPC_DEF("745_v2.8",      CPU_POWERPC_7x5_v28,                745,
640                 "PowerPC 745 v2.8")
641     POWERPC_DEF("755_v2.8",      CPU_POWERPC_7x5_v28,                755,
642                 "PowerPC 755 v2.8")
643     /* PowerPC 74xx family                                                   */
644     POWERPC_DEF("7400_v1.0",     CPU_POWERPC_7400_v10,               7400,
645                 "PowerPC 7400 v1.0 (G4)")
646     POWERPC_DEF("7400_v1.1",     CPU_POWERPC_7400_v11,               7400,
647                 "PowerPC 7400 v1.1 (G4)")
648     POWERPC_DEF("7400_v2.0",     CPU_POWERPC_7400_v20,               7400,
649                 "PowerPC 7400 v2.0 (G4)")
650     POWERPC_DEF("7400_v2.1",     CPU_POWERPC_7400_v21,               7400,
651                 "PowerPC 7400 v2.1 (G4)")
652     POWERPC_DEF("7400_v2.2",     CPU_POWERPC_7400_v22,               7400,
653                 "PowerPC 7400 v2.2 (G4)")
654     POWERPC_DEF("7400_v2.6",     CPU_POWERPC_7400_v26,               7400,
655                 "PowerPC 7400 v2.6 (G4)")
656     POWERPC_DEF("7400_v2.7",     CPU_POWERPC_7400_v27,               7400,
657                 "PowerPC 7400 v2.7 (G4)")
658     POWERPC_DEF("7400_v2.8",     CPU_POWERPC_7400_v28,               7400,
659                 "PowerPC 7400 v2.8 (G4)")
660     POWERPC_DEF("7400_v2.9",     CPU_POWERPC_7400_v29,               7400,
661                 "PowerPC 7400 v2.9 (G4)")
662     POWERPC_DEF("7410_v1.0",     CPU_POWERPC_7410_v10,               7410,
663                 "PowerPC 7410 v1.0 (G4)")
664     POWERPC_DEF("7410_v1.1",     CPU_POWERPC_7410_v11,               7410,
665                 "PowerPC 7410 v1.1 (G4)")
666     POWERPC_DEF("7410_v1.2",     CPU_POWERPC_7410_v12,               7410,
667                 "PowerPC 7410 v1.2 (G4)")
668     POWERPC_DEF("7410_v1.3",     CPU_POWERPC_7410_v13,               7410,
669                 "PowerPC 7410 v1.3 (G4)")
670     POWERPC_DEF("7410_v1.4",     CPU_POWERPC_7410_v14,               7410,
671                 "PowerPC 7410 v1.4 (G4)")
672     POWERPC_DEF("7448_v1.0",     CPU_POWERPC_7448_v10,               7400,
673                 "PowerPC 7448 v1.0 (G4)")
674     POWERPC_DEF("7448_v1.1",     CPU_POWERPC_7448_v11,               7400,
675                 "PowerPC 7448 v1.1 (G4)")
676     POWERPC_DEF("7448_v2.0",     CPU_POWERPC_7448_v20,               7400,
677                 "PowerPC 7448 v2.0 (G4)")
678     POWERPC_DEF("7448_v2.1",     CPU_POWERPC_7448_v21,               7400,
679                 "PowerPC 7448 v2.1 (G4)")
680     POWERPC_DEF("7450_v1.0",     CPU_POWERPC_7450_v10,               7450,
681                 "PowerPC 7450 v1.0 (G4)")
682     POWERPC_DEF("7450_v1.1",     CPU_POWERPC_7450_v11,               7450,
683                 "PowerPC 7450 v1.1 (G4)")
684     POWERPC_DEF("7450_v1.2",     CPU_POWERPC_7450_v12,               7450,
685                 "PowerPC 7450 v1.2 (G4)")
686     POWERPC_DEF("7450_v2.0",     CPU_POWERPC_7450_v20,               7450,
687                 "PowerPC 7450 v2.0 (G4)")
688     POWERPC_DEF("7450_v2.1",     CPU_POWERPC_7450_v21,               7450,
689                 "PowerPC 7450 v2.1 (G4)")
690     POWERPC_DEF("7441_v2.1",     CPU_POWERPC_7450_v21,               7440,
691                 "PowerPC 7441 v2.1 (G4)")
692     POWERPC_DEF("7441_v2.3",     CPU_POWERPC_74x1_v23,               7440,
693                 "PowerPC 7441 v2.3 (G4)")
694     POWERPC_DEF("7451_v2.3",     CPU_POWERPC_74x1_v23,               7450,
695                 "PowerPC 7451 v2.3 (G4)")
696     POWERPC_DEF("7441_v2.10",    CPU_POWERPC_74x1_v210,              7440,
697                 "PowerPC 7441 v2.10 (G4)")
698     POWERPC_DEF("7451_v2.10",    CPU_POWERPC_74x1_v210,              7450,
699                 "PowerPC 7451 v2.10 (G4)")
700     POWERPC_DEF("7445_v1.0",     CPU_POWERPC_74x5_v10,               7445,
701                 "PowerPC 7445 v1.0 (G4)")
702     POWERPC_DEF("7455_v1.0",     CPU_POWERPC_74x5_v10,               7455,
703                 "PowerPC 7455 v1.0 (G4)")
704     POWERPC_DEF("7445_v2.1",     CPU_POWERPC_74x5_v21,               7445,
705                 "PowerPC 7445 v2.1 (G4)")
706     POWERPC_DEF("7455_v2.1",     CPU_POWERPC_74x5_v21,               7455,
707                 "PowerPC 7455 v2.1 (G4)")
708     POWERPC_DEF("7445_v3.2",     CPU_POWERPC_74x5_v32,               7445,
709                 "PowerPC 7445 v3.2 (G4)")
710     POWERPC_DEF("7455_v3.2",     CPU_POWERPC_74x5_v32,               7455,
711                 "PowerPC 7455 v3.2 (G4)")
712     POWERPC_DEF("7445_v3.3",     CPU_POWERPC_74x5_v33,               7445,
713                 "PowerPC 7445 v3.3 (G4)")
714     POWERPC_DEF("7455_v3.3",     CPU_POWERPC_74x5_v33,               7455,
715                 "PowerPC 7455 v3.3 (G4)")
716     POWERPC_DEF("7445_v3.4",     CPU_POWERPC_74x5_v34,               7445,
717                 "PowerPC 7445 v3.4 (G4)")
718     POWERPC_DEF("7455_v3.4",     CPU_POWERPC_74x5_v34,               7455,
719                 "PowerPC 7455 v3.4 (G4)")
720     POWERPC_DEF("7447_v1.0",     CPU_POWERPC_74x7_v10,               7445,
721                 "PowerPC 7447 v1.0 (G4)")
722     POWERPC_DEF("7457_v1.0",     CPU_POWERPC_74x7_v10,               7455,
723                 "PowerPC 7457 v1.0 (G4)")
724     POWERPC_DEF("7447_v1.1",     CPU_POWERPC_74x7_v11,               7445,
725                 "PowerPC 7447 v1.1 (G4)")
726     POWERPC_DEF("7457_v1.1",     CPU_POWERPC_74x7_v11,               7455,
727                 "PowerPC 7457 v1.1 (G4)")
728     POWERPC_DEF("7457_v1.2",     CPU_POWERPC_74x7_v12,               7455,
729                 "PowerPC 7457 v1.2 (G4)")
730     POWERPC_DEF("7447a_v1.0",    CPU_POWERPC_74x7A_v10,              7445,
731                 "PowerPC 7447A v1.0 (G4)")
732     POWERPC_DEF("7457a_v1.0",    CPU_POWERPC_74x7A_v10,              7455,
733                 "PowerPC 7457A v1.0 (G4)")
734     POWERPC_DEF("7447a_v1.1",    CPU_POWERPC_74x7A_v11,              7445,
735                 "PowerPC 7447A v1.1 (G4)")
736     POWERPC_DEF("7457a_v1.1",    CPU_POWERPC_74x7A_v11,              7455,
737                 "PowerPC 7457A v1.1 (G4)")
738     POWERPC_DEF("7447a_v1.2",    CPU_POWERPC_74x7A_v12,              7445,
739                 "PowerPC 7447A v1.2 (G4)")
740     POWERPC_DEF("7457a_v1.2",    CPU_POWERPC_74x7A_v12,              7455,
741                 "PowerPC 7457A v1.2 (G4)")
742     /* 64 bits PowerPC                                                       */
743 #if defined (TARGET_PPC64)
744     POWERPC_DEF("970_v2.2",      CPU_POWERPC_970_v22,                970,
745                 "PowerPC 970 v2.2")
746     POWERPC_DEF("970fx_v1.0",    CPU_POWERPC_970FX_v10,              970,
747                 "PowerPC 970FX v1.0 (G5)")
748     POWERPC_DEF("970fx_v2.0",    CPU_POWERPC_970FX_v20,              970,
749                 "PowerPC 970FX v2.0 (G5)")
750     POWERPC_DEF("970fx_v2.1",    CPU_POWERPC_970FX_v21,              970,
751                 "PowerPC 970FX v2.1 (G5)")
752     POWERPC_DEF("970fx_v3.0",    CPU_POWERPC_970FX_v30,              970,
753                 "PowerPC 970FX v3.0 (G5)")
754     POWERPC_DEF("970fx_v3.1",    CPU_POWERPC_970FX_v31,              970,
755                 "PowerPC 970FX v3.1 (G5)")
756     POWERPC_DEF("970mp_v1.0",    CPU_POWERPC_970MP_v10,              970,
757                 "PowerPC 970MP v1.0")
758     POWERPC_DEF("970mp_v1.1",    CPU_POWERPC_970MP_v11,              970,
759                 "PowerPC 970MP v1.1")
760     POWERPC_DEF("power5+_v2.1",  CPU_POWERPC_POWER5P_v21,            POWER5P,
761                 "POWER5+ v2.1")
762     POWERPC_DEF("power7_v2.3",   CPU_POWERPC_POWER7_v23,             POWER7,
763                 "POWER7 v2.3")
764     POWERPC_DEF("power7+_v2.1",  CPU_POWERPC_POWER7P_v21,            POWER7,
765                 "POWER7+ v2.1")
766     POWERPC_DEF("power8e_v2.1",  CPU_POWERPC_POWER8E_v21,            POWER8,
767                 "POWER8E v2.1")
768     POWERPC_DEF("power8_v2.0",   CPU_POWERPC_POWER8_v20,             POWER8,
769                 "POWER8 v2.0")
770     POWERPC_DEF("power8nvl_v1.0", CPU_POWERPC_POWER8NVL_v10,         POWER8,
771                 "POWER8NVL v1.0")
772     POWERPC_DEF("power9_v1.0",   CPU_POWERPC_POWER9_DD1,             POWER9,
773                 "POWER9 v1.0")
774     POWERPC_DEF("power9_v2.0",   CPU_POWERPC_POWER9_DD20,            POWER9,
775                 "POWER9 v2.0")
776 #endif /* defined (TARGET_PPC64) */
777 
778 /***************************************************************************/
779 /* PowerPC CPU aliases                                                     */
780 
781 PowerPCCPUAlias ppc_cpu_aliases[] = {
782     { "403", "403gc" },
783     { "405", "405d4" },
784     { "405cr", "405crc" },
785     { "405gp", "405gpd" },
786     { "405gpe", "405crc" },
787     { "x2vp7", "x2vp4" },
788     { "x2vp50", "x2vp20" },
789 
790     { "440ep", "440epb" },
791     { "460ex", "460exb" },
792 #if defined(TODO_USER_ONLY)
793     { "440gp", "440gpc" },
794     { "440gr", "440gra" },
795     { "440gx", "440gxf" },
796 
797     { "rcpu", "mpc5xx" },
798     /* MPC5xx microcontrollers */
799     { "mgt560", "mpc5xx" },
800     { "mpc509", "mpc5xx" },
801     { "mpc533", "mpc5xx" },
802     { "mpc534", "mpc5xx" },
803     { "mpc555", "mpc5xx" },
804     { "mpc556", "mpc5xx" },
805     { "mpc560", "mpc5xx" },
806     { "mpc561", "mpc5xx" },
807     { "mpc562", "mpc5xx" },
808     { "mpc563", "mpc5xx" },
809     { "mpc564", "mpc5xx" },
810     { "mpc565", "mpc5xx" },
811     { "mpc566", "mpc5xx" },
812 
813     { "powerquicc", "mpc8xx" },
814     /* MPC8xx microcontrollers */
815     { "mgt823", "mpc8xx" },
816     { "mpc821", "mpc8xx" },
817     { "mpc823", "mpc8xx" },
818     { "mpc850", "mpc8xx" },
819     { "mpc852t", "mpc8xx" },
820     { "mpc855t", "mpc8xx" },
821     { "mpc857", "mpc8xx" },
822     { "mpc859", "mpc8xx" },
823     { "mpc860", "mpc8xx" },
824     { "mpc862", "mpc8xx" },
825     { "mpc866", "mpc8xx" },
826     { "mpc870", "mpc8xx" },
827     { "mpc875", "mpc8xx" },
828     { "mpc880", "mpc8xx" },
829     { "mpc885", "mpc8xx" },
830 #endif
831 
832     /* PowerPC MPC603 microcontrollers */
833     { "mpc8240", "603" },
834 
835     { "mpc52xx", "mpc5200_v12" },
836     { "mpc5200", "mpc5200_v12" },
837     { "mpc5200b", "mpc5200b_v21" },
838 
839     { "mpc82xx", "g2legp3" },
840     { "powerquicc-ii", "g2legp3" },
841     { "mpc8241", "g2hip4" },
842     { "mpc8245", "g2hip4" },
843     { "mpc8247", "g2legp3" },
844     { "mpc8248", "g2legp3" },
845     { "mpc8250", "g2hip4" },
846     { "mpc8250_hip3", "g2hip3" },
847     { "mpc8250_hip4", "g2hip4" },
848     { "mpc8255", "g2hip4" },
849     { "mpc8255_hip3", "g2hip3" },
850     { "mpc8255_hip4", "g2hip4" },
851     { "mpc8260", "g2hip4" },
852     { "mpc8260_hip3", "g2hip3" },
853     { "mpc8260_hip4", "g2hip4" },
854     { "mpc8264", "g2hip4" },
855     { "mpc8264_hip3", "g2hip3" },
856     { "mpc8264_hip4", "g2hip4" },
857     { "mpc8265", "g2hip4" },
858     { "mpc8265_hip3", "g2hip3" },
859     { "mpc8265_hip4", "g2hip4" },
860     { "mpc8266", "g2hip4" },
861     { "mpc8266_hip3", "g2hip3" },
862     { "mpc8266_hip4", "g2hip4" },
863     { "mpc8270", "g2legp3" },
864     { "mpc8271", "g2legp3" },
865     { "mpc8272", "g2legp3" },
866     { "mpc8275", "g2legp3" },
867     { "mpc8280", "g2legp3" },
868     { "e200", "e200z6" },
869     { "e300", "e300c3" },
870     { "mpc8347", "mpc8347t" },
871     { "mpc8347a", "mpc8347at" },
872     { "mpc8347e", "mpc8347et" },
873     { "mpc8347ea", "mpc8347eat" },
874     { "e500", "e500v2_v22" },
875     { "e500v1", "e500_v20" },
876     { "e500v2", "e500v2_v22" },
877     { "mpc8533", "mpc8533_v11" },
878     { "mpc8533e", "mpc8533e_v11" },
879     { "mpc8540", "mpc8540_v21" },
880     { "mpc8541", "mpc8541_v11" },
881     { "mpc8541e", "mpc8541e_v11" },
882     { "mpc8543", "mpc8543_v21" },
883     { "mpc8543e", "mpc8543e_v21" },
884     { "mpc8544", "mpc8544_v11" },
885     { "mpc8544e", "mpc8544e_v11" },
886     { "mpc8545", "mpc8545_v21" },
887     { "mpc8545e", "mpc8545e_v21" },
888     { "mpc8547e", "mpc8547e_v21" },
889     { "mpc8548", "mpc8548_v21" },
890     { "mpc8548e", "mpc8548e_v21" },
891     { "mpc8555", "mpc8555_v11" },
892     { "mpc8555e", "mpc8555e_v11" },
893     { "mpc8560", "mpc8560_v21" },
894     { "601",  "601_v2" },
895     { "601v", "601_v2" },
896     { "vanilla", "603" },
897     { "603e", "603e_v4.1" },
898     { "stretch", "603e_v4.1" },
899     { "vaillant", "603e7v" },
900     { "603r", "603e7t" },
901     { "goldeneye", "603e7t" },
902     { "604e", "604e_v2.4" },
903     { "sirocco", "604e_v2.4" },
904     { "mach5", "604r" },
905     { "740", "740_v3.1" },
906     { "arthur", "740_v3.1" },
907     { "750", "750_v3.1" },
908     { "typhoon", "750_v3.1" },
909     { "g3",      "750_v3.1" },
910     { "conan/doyle", "750p" },
911     { "750cl", "750cl_v2.0" },
912     { "750cx", "750cx_v2.2" },
913     { "750cxe", "750cxe_v3.1b" },
914     { "750fx", "750fx_v2.3" },
915     { "750gx", "750gx_v1.2" },
916     { "750l", "750l_v3.2" },
917     { "lonestar", "750l_v3.2" },
918     { "745", "745_v2.8" },
919     { "755", "755_v2.8" },
920     { "goldfinger", "755_v2.8" },
921     { "7400", "7400_v2.9" },
922     { "max", "7400_v2.9" },
923     { "g4",  "7400_v2.9" },
924     { "7410", "7410_v1.4" },
925     { "nitro", "7410_v1.4" },
926     { "7448", "7448_v2.1" },
927     { "7450", "7450_v2.1" },
928     { "vger", "7450_v2.1" },
929     { "7441", "7441_v2.3" },
930     { "7451", "7451_v2.3" },
931     { "7445", "7445_v3.2" },
932     { "7455", "7455_v3.2" },
933     { "apollo6", "7455_v3.2" },
934     { "7447", "7447_v1.1" },
935     { "7457", "7457_v1.2" },
936     { "apollo7", "7457_v1.2" },
937     { "7447a", "7447a_v1.2" },
938     { "7457a", "7457a_v1.2" },
939     { "apollo7pm", "7457a_v1.0" },
940 #if defined(TARGET_PPC64)
941     { "970", "970_v2.2" },
942     { "970fx", "970fx_v3.1" },
943     { "970mp", "970mp_v1.1" },
944     { "power5+", "power5+_v2.1" },
945     { "power5gs", "power5+_v2.1" },
946     { "power7", "power7_v2.3" },
947     { "power7+", "power7+_v2.1" },
948     { "power8e", "power8e_v2.1" },
949     { "power8", "power8_v2.0" },
950     { "power8nvl", "power8nvl_v1.0" },
951     { "power9", "power9_v2.0" },
952 #endif
953 
954     /* Generic PowerPCs */
955 #if defined(TARGET_PPC64)
956     { "ppc64", "970fx_v3.1" },
957 #endif
958     { "ppc32", "604" },
959     { "ppc", "604" },
960     { "default", "604" },
961     { NULL, NULL }
962 };
963