]> git.cameronkatri.com Git - ldid.git/blob - machine.h
2735661483c24733fef5ef04b01a9c0954589c98
[ldid.git] / machine.h
1 /*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23 /*
24 * Mach Operating System
25 * Copyright (c) 1989 Carnegie-Mellon University
26 * Copyright (c) 1988 Carnegie-Mellon University
27 * Copyright (c) 1987 Carnegie-Mellon University
28 * All rights reserved. The CMU software License Agreement specifies
29 * the terms and conditions for use and redistribution.
30 */
31 /*
32 * HISTORY
33 * Revision 1.1.1.1 1997/09/03 20:53:37 roland
34 * Initial checkin of SGS release 244
35 *
36 * 2 July 1992 Mac Gillon at NeXT
37 * Changed HPPA subtypes to follow our practice.
38 *
39 * 11 September 1992 David E. Bohman at NeXT
40 * Added CPU_SUBTYPE_486SX to the i386 family.
41 *
42 * 16 July 1992 David E. Bohman at NeXT
43 * Added CPU_SUBTYPE_586 to the i386 family.
44 *
45 * 17-Dec-91 Peter King (king) at NeXT
46 * Added support for the XXX_ALL subtypes. These are used to
47 * tag object files that can run on any implementation of a
48 * particular family.
49 *
50 * 1-Mar-90 John Seamons (jks) at NeXT
51 * Redefined cpu_type and cpu_subtype definitions to indicate processor
52 * architecture instead of product types for the MC680x0.
53 *
54 * Revision 2.15 89/10/11 14:39:56 dlb
55 * Removed should_exit - replaced by action thread.
56 * [89/01/25 dlb]
57 *
58 * Revision 2.14 89/07/14 17:21:39 rvb
59 * Added CPU types and subtypes for MC68030, MC68040, MC88000,
60 * HPPA, ARM and Sun4-SPARC.
61 * [89/07/13 mrt]
62 *
63 * Revision 2.12 89/05/30 10:38:58 rvb
64 * Add R2000 machine types.
65 * [89/05/30 08:28:53 rvb]
66 *
67 * Revision 2.11 89/04/18 16:43:32 mwyoung
68 * Use <machine/vm_types.h> rather than <vm/vm_param.h> to get
69 * VM types. Remove old history... none of it was insightful.
70 *
71 * The variable declarations should be moved elsewhere.
72 * [89/01/24 mwyoung]
73 *
74 */
75 /*
76 * Machine independent machine abstraction.
77 * Copyright (C) 1986, Avadis Tevanian, Jr.
78 */
79
80 #ifndef _MACH_MACHINE_H_
81 #define _MACH_MACHINE_H_
82
83 #include <stdint.h>
84
85 /*
86 * For each host, there is a maximum possible number of
87 * cpus that may be available in the system. This is the
88 * compile-time constant NCPUS, which is defined in cpus.h.
89 *
90 * In addition, there is a machine_slot specifier for each
91 * possible cpu in the system.
92 */
93
94 typedef uint32_t cpu_type_t;
95 typedef uint32_t cpu_subtype_t;
96 typedef uint32_t cpu_threadtype_t;
97
98 /*
99 * Machine types known by all.
100 */
101
102 #define CPU_TYPE_ANY ((cpu_type_t) -1)
103
104 #define CPU_TYPE_VAX ((cpu_type_t) 1)
105 #define CPU_TYPE_ROMP ((cpu_type_t) 2)
106 #define CPU_TYPE_NS32032 ((cpu_type_t) 4)
107 #define CPU_TYPE_NS32332 ((cpu_type_t) 5)
108 #define CPU_TYPE_MC680x0 ((cpu_type_t) 6)
109 #define CPU_TYPE_I386 ((cpu_type_t) 7)
110 #define CPU_TYPE_X86 ((cpu_type_t) 7)
111 #define CPU_TYPE_X86_64 ((cpu_type_t) (CPU_TYPE_I386 | CPU_ARCH_ABI64))
112 #define CPU_TYPE_MIPS ((cpu_type_t) 8)
113 #define CPU_TYPE_NS32532 ((cpu_type_t) 9)
114 #define CPU_TYPE_HPPA ((cpu_type_t) 11)
115 #define CPU_TYPE_ARM ((cpu_type_t) 12)
116 #define CPU_TYPE_MC88000 ((cpu_type_t) 13)
117 #define CPU_TYPE_SPARC ((cpu_type_t) 14)
118 #define CPU_TYPE_I860 ((cpu_type_t) 15) // big-endian
119 #define CPU_TYPE_I860_LITTLE ((cpu_type_t) 16) // little-endian
120 #define CPU_TYPE_RS6000 ((cpu_type_t) 17)
121 #define CPU_TYPE_MC98000 ((cpu_type_t) 18)
122 #define CPU_TYPE_POWERPC ((cpu_type_t) 18)
123 #define CPU_ARCH_ABI64 0x1000000
124 #define CPU_ARCH_ABI64_32 0x2000000
125 #define CPU_ARCH_MASK 0xff000000 /* cctools-port */
126 #define CPU_TYPE_POWERPC64 ((cpu_type_t)(CPU_TYPE_POWERPC | CPU_ARCH_ABI64))
127 #define CPU_TYPE_VEO ((cpu_type_t) 255)
128 #define CPU_TYPE_ARM64 ((cpu_type_t)(CPU_TYPE_ARM | CPU_ARCH_ABI64))
129 #define CPU_TYPE_ARM64_32 ((cpu_type_t)(CPU_TYPE_ARM | CPU_ARCH_ABI64_32))
130
131
132 /*
133 * Machine subtypes (these are defined here, instead of in a machine
134 * dependent directory, so that any program can get all definitions
135 * regardless of where is it compiled).
136 */
137
138 /*
139 * Capability bits used in the definition of cpu_subtype.
140 */
141 #define CPU_SUBTYPE_MASK 0xff000000 /* mask for feature flags */
142 #define CPU_SUBTYPE_LIB64 0x80000000 /* 64 bit libraries */
143
144 /* CPU subtype capability flags for ptrauth on arm64e platforms */
145 #define CPU_SUBTYPE_ARM64_PTR_AUTH_MASK 0x0f000000
146
147 /* CPU subtype capability flags for ptrauth on arm64e platforms, take 2 */
148 #define CPU_SUBTYPE_ARM64E_VERSIONED_ABI_MASK 0x80000000
149 #define CPU_SUBTYPE_ARM64E_KERNEL_ABI_MASK 0x40000000
150 #define CPU_SUBTYPE_ARM64E_PTR_AUTH_MASK 0x3f000000
151
152 /*
153 * Object files that are hand-crafted to run on any
154 * implementation of an architecture are tagged with
155 * CPU_SUBTYPE_MULTIPLE. This functions essentially the same as
156 * the "ALL" subtype of an architecture except that it allows us
157 * to easily find object files that may need to be modified
158 * whenever a new implementation of an architecture comes out.
159 *
160 * It is the responsibility of the implementor to make sure the
161 * software handles unsupported implementations elegantly.
162 */
163 #define CPU_SUBTYPE_MULTIPLE ((cpu_subtype_t) -1)
164
165
166 /*
167 * VAX subtypes (these do *not* necessary conform to the actual cpu
168 * ID assigned by DEC available via the SID register).
169 */
170
171 #define CPU_SUBTYPE_VAX_ALL ((cpu_subtype_t) 0)
172 #define CPU_SUBTYPE_VAX780 ((cpu_subtype_t) 1)
173 #define CPU_SUBTYPE_VAX785 ((cpu_subtype_t) 2)
174 #define CPU_SUBTYPE_VAX750 ((cpu_subtype_t) 3)
175 #define CPU_SUBTYPE_VAX730 ((cpu_subtype_t) 4)
176 #define CPU_SUBTYPE_UVAXI ((cpu_subtype_t) 5)
177 #define CPU_SUBTYPE_UVAXII ((cpu_subtype_t) 6)
178 #define CPU_SUBTYPE_VAX8200 ((cpu_subtype_t) 7)
179 #define CPU_SUBTYPE_VAX8500 ((cpu_subtype_t) 8)
180 #define CPU_SUBTYPE_VAX8600 ((cpu_subtype_t) 9)
181 #define CPU_SUBTYPE_VAX8650 ((cpu_subtype_t) 10)
182 #define CPU_SUBTYPE_VAX8800 ((cpu_subtype_t) 11)
183 #define CPU_SUBTYPE_UVAXIII ((cpu_subtype_t) 12)
184
185 /*
186 * ROMP subtypes.
187 */
188
189 #define CPU_SUBTYPE_RT_ALL ((cpu_subtype_t) 0)
190 #define CPU_SUBTYPE_RT_PC ((cpu_subtype_t) 1)
191 #define CPU_SUBTYPE_RT_APC ((cpu_subtype_t) 2)
192 #define CPU_SUBTYPE_RT_135 ((cpu_subtype_t) 3)
193
194 /*
195 * 32032/32332/32532 subtypes.
196 */
197
198 #define CPU_SUBTYPE_MMAX_ALL ((cpu_subtype_t) 0)
199 #define CPU_SUBTYPE_MMAX_DPC ((cpu_subtype_t) 1) /* 032 CPU */
200 #define CPU_SUBTYPE_SQT ((cpu_subtype_t) 2)
201 #define CPU_SUBTYPE_MMAX_APC_FPU ((cpu_subtype_t) 3) /* 32081 FPU */
202 #define CPU_SUBTYPE_MMAX_APC_FPA ((cpu_subtype_t) 4) /* Weitek FPA */
203 #define CPU_SUBTYPE_MMAX_XPC ((cpu_subtype_t) 5) /* 532 CPU */
204
205 /*
206 * I386 subtypes.
207 */
208
209 #define CPU_SUBTYPE_I386_ALL ((cpu_subtype_t) 3)
210 #define CPU_SUBTYPE_X86_64_ALL CPU_SUBTYPE_I386_ALL
211 #define CPU_SUBTYPE_386 ((cpu_subtype_t) 3)
212 #define CPU_SUBTYPE_486 ((cpu_subtype_t) 4)
213 #define CPU_SUBTYPE_486SX ((cpu_subtype_t) 4 + 128)
214 #define CPU_SUBTYPE_586 ((cpu_subtype_t) 5)
215 #define CPU_SUBTYPE_INTEL(f, m) ((cpu_subtype_t) (f) + ((m) << 4))
216 #define CPU_SUBTYPE_PENT CPU_SUBTYPE_INTEL(5, 0)
217 #define CPU_SUBTYPE_PENTPRO CPU_SUBTYPE_INTEL(6, 1)
218 #define CPU_SUBTYPE_PENTII_M3 CPU_SUBTYPE_INTEL(6, 3)
219 #define CPU_SUBTYPE_PENTII_M5 CPU_SUBTYPE_INTEL(6, 5)
220 #define CPU_SUBTYPE_PENTIUM_4 CPU_SUBTYPE_INTEL(10, 0)
221
222 #define CPU_SUBTYPE_INTEL_FAMILY(x) ((x) & 15)
223 #define CPU_SUBTYPE_INTEL_FAMILY_MAX 15
224
225 #define CPU_SUBTYPE_INTEL_MODEL(x) ((x) >> 4)
226 #define CPU_SUBTYPE_INTEL_MODEL_ALL 0
227
228 #define CPU_SUBTYPE_X86_64_H ((cpu_subtype_t)8) /* Haswell and compatible */
229
230 /*
231 * Mips subtypes.
232 */
233
234 #define CPU_SUBTYPE_MIPS_ALL ((cpu_subtype_t) 0)
235 #define CPU_SUBTYPE_MIPS_R2300 ((cpu_subtype_t) 1)
236 #define CPU_SUBTYPE_MIPS_R2600 ((cpu_subtype_t) 2)
237 #define CPU_SUBTYPE_MIPS_R2800 ((cpu_subtype_t) 3)
238 #define CPU_SUBTYPE_MIPS_R2000a ((cpu_subtype_t) 4)
239
240 /*
241 * 680x0 subtypes
242 *
243 * The subtype definitions here are unusual for historical reasons.
244 * NeXT used to consider 68030 code as generic 68000 code. For
245 * backwards compatability:
246 *
247 * CPU_SUBTYPE_MC68030 symbol has been preserved for source code
248 * compatability.
249 *
250 * CPU_SUBTYPE_MC680x0_ALL has been defined to be the same
251 * subtype as CPU_SUBTYPE_MC68030 for binary comatability.
252 *
253 * CPU_SUBTYPE_MC68030_ONLY has been added to allow new object
254 * files to be tagged as containing 68030-specific instructions.
255 */
256
257 #define CPU_SUBTYPE_MC680x0_ALL ((cpu_subtype_t) 1)
258 #define CPU_SUBTYPE_MC68030 ((cpu_subtype_t) 1) /* compat */
259 #define CPU_SUBTYPE_MC68040 ((cpu_subtype_t) 2)
260 #define CPU_SUBTYPE_MC68030_ONLY ((cpu_subtype_t) 3)
261
262 /*
263 * HPPA subtypes for Hewlett-Packard HP-PA family of
264 * risc processors. Port by NeXT to 700 series.
265 */
266
267 #define CPU_SUBTYPE_HPPA_ALL ((cpu_subtype_t) 0)
268 #define CPU_SUBTYPE_HPPA_7100 ((cpu_subtype_t) 0) /* compat */
269 #define CPU_SUBTYPE_HPPA_7100LC ((cpu_subtype_t) 1)
270
271 /*
272 * Acorn subtypes - Acorn Risc Machine port done by
273 * Olivetti System Software Laboratory
274 */
275
276 #define CPU_SUBTYPE_ARM_ALL ((cpu_subtype_t) 0)
277 #define CPU_SUBTYPE_ARM_A500_ARCH ((cpu_subtype_t) 1)
278 #define CPU_SUBTYPE_ARM_A500 ((cpu_subtype_t) 2)
279 #define CPU_SUBTYPE_ARM_A440 ((cpu_subtype_t) 3)
280 #define CPU_SUBTYPE_ARM_M4 ((cpu_subtype_t) 4)
281 #define CPU_SUBTYPE_ARM_V4T ((cpu_subtype_t) 5)
282 #define CPU_SUBTYPE_ARM_V6 ((cpu_subtype_t) 6)
283 #define CPU_SUBTYPE_ARM_V5TEJ ((cpu_subtype_t) 7)
284 #define CPU_SUBTYPE_ARM_XSCALE ((cpu_subtype_t) 8)
285 #define CPU_SUBTYPE_ARM_V7 ((cpu_subtype_t) 9)
286 #define CPU_SUBTYPE_ARM_V7F ((cpu_subtype_t) 10) /* Cortex A9 */
287 #define CPU_SUBTYPE_ARM_V7S ((cpu_subtype_t) 11) /* Swift */
288 #define CPU_SUBTYPE_ARM_V7K ((cpu_subtype_t) 12) /* Kirkwood40 */
289 #define CPU_SUBTYPE_ARM_V6M ((cpu_subtype_t) 14) /* Not meant to be run under xnu */
290 #define CPU_SUBTYPE_ARM_V7M ((cpu_subtype_t) 15) /* Not meant to be run under xnu */
291 #define CPU_SUBTYPE_ARM_V7EM ((cpu_subtype_t) 16) /* Not meant to be run under xnu */
292 #define CPU_SUBTYPE_ARM_V8 ((cpu_subtype_t) 13)
293
294 #define CPU_SUBTYPE_ARM64_ALL ((cpu_subtype_t) 0)
295 #define CPU_SUBTYPE_ARM64_V8 ((cpu_subtype_t) 1)
296 #define CPU_SUBTYPE_ARM64E ((cpu_subtype_t) 2)
297 #define CPU_SUBTYPE_ARM64_E CPU_SUBTYPE_ARM64E /* cctools-port */
298
299 #define CPU_SUBTYPE_ARM64_32_V8 ((cpu_subtype_t) 1)
300
301
302 /*
303 * MC88000 subtypes
304 */
305 #define CPU_SUBTYPE_MC88000_ALL ((cpu_subtype_t) 0)
306 #define CPU_SUBTYPE_MMAX_JPC ((cpu_subtype_t) 1)
307 #define CPU_SUBTYPE_MC88100 ((cpu_subtype_t) 1)
308 #define CPU_SUBTYPE_MC88110 ((cpu_subtype_t) 2)
309
310 /*
311 * MC98000 (PowerPC) subtypes
312 */
313 #define CPU_SUBTYPE_MC98000_ALL ((cpu_subtype_t) 0)
314 #define CPU_SUBTYPE_MC98601 ((cpu_subtype_t) 1)
315
316 /*
317 * I860 subtypes
318 */
319 #define CPU_SUBTYPE_I860_ALL ((cpu_subtype_t) 0)
320 #define CPU_SUBTYPE_I860_860 ((cpu_subtype_t) 1)
321
322 /*
323 * I860 subtypes for NeXT-internal backwards compatability.
324 * These constants will be going away. DO NOT USE THEM!!!
325 */
326 #define CPU_SUBTYPE_LITTLE_ENDIAN ((cpu_subtype_t) 0)
327 #define CPU_SUBTYPE_BIG_ENDIAN ((cpu_subtype_t) 1)
328
329 /*
330 * I860_LITTLE subtypes
331 */
332 #define CPU_SUBTYPE_I860_LITTLE_ALL ((cpu_subtype_t) 0)
333 #define CPU_SUBTYPE_I860_LITTLE ((cpu_subtype_t) 1)
334
335 /*
336 * RS6000 subtypes
337 */
338 #define CPU_SUBTYPE_RS6000_ALL ((cpu_subtype_t) 0)
339 #define CPU_SUBTYPE_RS6000 ((cpu_subtype_t) 1)
340
341 /*
342 * Sun4 subtypes - port done at CMU
343 */
344 #define CPU_SUBTYPE_SUN4_ALL ((cpu_subtype_t) 0)
345 #define CPU_SUBTYPE_SUN4_260 ((cpu_subtype_t) 1)
346 #define CPU_SUBTYPE_SUN4_110 ((cpu_subtype_t) 2)
347
348 #define CPU_SUBTYPE_SPARC_ALL ((cpu_subtype_t) 0)
349
350 /*
351 * PowerPC subtypes
352 */
353 #define CPU_SUBTYPE_POWERPC_ALL ((cpu_subtype_t) 0)
354 #define CPU_SUBTYPE_POWERPC_601 ((cpu_subtype_t) 1)
355 #define CPU_SUBTYPE_POWERPC_602 ((cpu_subtype_t) 2)
356 #define CPU_SUBTYPE_POWERPC_603 ((cpu_subtype_t) 3)
357 #define CPU_SUBTYPE_POWERPC_603e ((cpu_subtype_t) 4)
358 #define CPU_SUBTYPE_POWERPC_603ev ((cpu_subtype_t) 5)
359 #define CPU_SUBTYPE_POWERPC_604 ((cpu_subtype_t) 6)
360 #define CPU_SUBTYPE_POWERPC_604e ((cpu_subtype_t) 7)
361 #define CPU_SUBTYPE_POWERPC_620 ((cpu_subtype_t) 8)
362 #define CPU_SUBTYPE_POWERPC_750 ((cpu_subtype_t) 9)
363 #define CPU_SUBTYPE_POWERPC_7400 ((cpu_subtype_t) 10)
364 #define CPU_SUBTYPE_POWERPC_7450 ((cpu_subtype_t) 11)
365 #define CPU_SUBTYPE_POWERPC_970 ((cpu_subtype_t) 100)
366
367 /*
368 * VEO subtypes
369 * Note: the CPU_SUBTYPE_VEO_ALL will likely change over time to be defined as
370 * one of the specific subtypes.
371 */
372 #define CPU_SUBTYPE_VEO_1 ((cpu_subtype_t) 1)
373 #define CPU_SUBTYPE_VEO_2 ((cpu_subtype_t) 2)
374 #define CPU_SUBTYPE_VEO_3 ((cpu_subtype_t) 3)
375 #define CPU_SUBTYPE_VEO_4 ((cpu_subtype_t) 4)
376 #define CPU_SUBTYPE_VEO_ALL CPU_SUBTYPE_VEO_2
377
378 struct archs {
379 const char *name;
380 cpu_type_t cputype;
381 cpu_subtype_t cpusubtype;
382 };
383
384 static const struct archs archs[] = {
385 { "any", CPU_TYPE_ANY, CPU_SUBTYPE_MULTIPLE },
386 { "little", CPU_TYPE_ANY, CPU_SUBTYPE_LITTLE_ENDIAN },
387 { "big", CPU_TYPE_ANY, CPU_SUBTYPE_BIG_ENDIAN },
388
389 /* 64-bit Mach-O architectures */
390
391 /* architecture families */
392 { "ppc64", CPU_TYPE_POWERPC64, CPU_SUBTYPE_POWERPC_ALL },
393 { "x86_64", CPU_TYPE_X86_64, CPU_SUBTYPE_X86_64_ALL },
394 { "x86_64h", CPU_TYPE_X86_64, CPU_SUBTYPE_X86_64_H },
395 { "arm64", CPU_TYPE_ARM64, CPU_SUBTYPE_ARM64_ALL },
396 /* specific architecture implementations */
397 { "ppc970-64", CPU_TYPE_POWERPC64, CPU_SUBTYPE_POWERPC_970 },
398 { "arm64_32", CPU_TYPE_ARM64_32, CPU_SUBTYPE_ARM64_32_V8 },
399 { "arm64e", CPU_TYPE_ARM64, CPU_SUBTYPE_ARM64E },
400
401 /* 32-bit Mach-O architectures */
402
403 /* architecture families */
404 { "ppc", CPU_TYPE_POWERPC, CPU_SUBTYPE_POWERPC_ALL },
405 { "i386", CPU_TYPE_I386, CPU_SUBTYPE_I386_ALL },
406 { "m68k", CPU_TYPE_MC680x0, CPU_SUBTYPE_MC680x0_ALL },
407 { "hppa", CPU_TYPE_HPPA, CPU_SUBTYPE_HPPA_ALL },
408 { "sparc", CPU_TYPE_SPARC, CPU_SUBTYPE_SPARC_ALL },
409 { "m88k", CPU_TYPE_MC88000, CPU_SUBTYPE_MC88000_ALL },
410 { "i860", CPU_TYPE_I860, CPU_SUBTYPE_I860_ALL },
411 { "veo", CPU_TYPE_VEO, CPU_SUBTYPE_VEO_ALL },
412 { "arm", CPU_TYPE_ARM, CPU_SUBTYPE_ARM_ALL },
413 /* specific architecture implementations */
414 { "ppc601", CPU_TYPE_POWERPC, CPU_SUBTYPE_POWERPC_601 },
415 { "ppc603", CPU_TYPE_POWERPC, CPU_SUBTYPE_POWERPC_603 },
416 { "ppc603e",CPU_TYPE_POWERPC, CPU_SUBTYPE_POWERPC_603e },
417 { "ppc603ev",CPU_TYPE_POWERPC,CPU_SUBTYPE_POWERPC_603ev },
418 { "ppc604", CPU_TYPE_POWERPC, CPU_SUBTYPE_POWERPC_604 },
419 { "ppc604e",CPU_TYPE_POWERPC, CPU_SUBTYPE_POWERPC_604e },
420 { "ppc750", CPU_TYPE_POWERPC, CPU_SUBTYPE_POWERPC_750 },
421 { "ppc7400",CPU_TYPE_POWERPC, CPU_SUBTYPE_POWERPC_7400 },
422 { "ppc7450",CPU_TYPE_POWERPC, CPU_SUBTYPE_POWERPC_7450 },
423 { "ppc970", CPU_TYPE_POWERPC, CPU_SUBTYPE_POWERPC_970 },
424 { "i486", CPU_TYPE_I386, CPU_SUBTYPE_486 },
425 { "i486SX", CPU_TYPE_I386, CPU_SUBTYPE_486SX },
426 { "pentium",CPU_TYPE_I386, CPU_SUBTYPE_PENT }, /* same as i586 */
427 { "i586", CPU_TYPE_I386, CPU_SUBTYPE_586 },
428 { "pentpro", CPU_TYPE_I386, CPU_SUBTYPE_PENTPRO }, /* same as i686 */
429 { "i686", CPU_TYPE_I386, CPU_SUBTYPE_PENTPRO },
430 { "pentIIm3",CPU_TYPE_I386, CPU_SUBTYPE_PENTII_M3 },
431 { "pentIIm5",CPU_TYPE_I386, CPU_SUBTYPE_PENTII_M5 },
432 { "pentium4",CPU_TYPE_I386, CPU_SUBTYPE_PENTIUM_4 },
433 { "m68030", CPU_TYPE_MC680x0, CPU_SUBTYPE_MC68030_ONLY },
434 { "m68040", CPU_TYPE_MC680x0, CPU_SUBTYPE_MC68040 },
435 { "hppa7100LC", CPU_TYPE_HPPA, CPU_SUBTYPE_HPPA_7100LC },
436 { "veo1", CPU_TYPE_VEO, CPU_SUBTYPE_VEO_1 },
437 { "veo2", CPU_TYPE_VEO, CPU_SUBTYPE_VEO_2 },
438 { "veo3", CPU_TYPE_VEO, CPU_SUBTYPE_VEO_3 },
439 { "veo4", CPU_TYPE_VEO, CPU_SUBTYPE_VEO_4 },
440 { "armv4t", CPU_TYPE_ARM, CPU_SUBTYPE_ARM_V4T},
441 { "armv5", CPU_TYPE_ARM, CPU_SUBTYPE_ARM_V5TEJ},
442 { "xscale", CPU_TYPE_ARM, CPU_SUBTYPE_ARM_XSCALE},
443 { "armv6", CPU_TYPE_ARM, CPU_SUBTYPE_ARM_V6 },
444 { "armv6m", CPU_TYPE_ARM, CPU_SUBTYPE_ARM_V6M },
445 { "armv7", CPU_TYPE_ARM, CPU_SUBTYPE_ARM_V7 },
446 { "armv7f", CPU_TYPE_ARM, CPU_SUBTYPE_ARM_V7F },
447 { "armv7s", CPU_TYPE_ARM, CPU_SUBTYPE_ARM_V7S },
448 { "armv7k", CPU_TYPE_ARM, CPU_SUBTYPE_ARM_V7K },
449 { "armv7m", CPU_TYPE_ARM, CPU_SUBTYPE_ARM_V7M },
450 { "armv7em", CPU_TYPE_ARM, CPU_SUBTYPE_ARM_V7EM },
451 { "arm64v8",CPU_TYPE_ARM64, CPU_SUBTYPE_ARM64_V8 },
452 { NULL, 0, 0 }
453 };
454
455 #endif /* _MACH_MACHINE_H_ */