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