xref: /qemu/host/include/ppc/host/cpuinfo.h (revision aa903cf3)
1 /*
2  * SPDX-License-Identifier: GPL-2.0-or-later
3  * Host specific cpu indentification for ppc.
4  */
5 
6 #ifndef HOST_CPUINFO_H
7 #define HOST_CPUINFO_H
8 
9 /* Digested version of <cpuid.h> */
10 
11 #define CPUINFO_ALWAYS          (1u << 0)  /* so cpuinfo is nonzero */
12 #define CPUINFO_V2_06           (1u << 1)
13 #define CPUINFO_V2_07           (1u << 2)
14 #define CPUINFO_V3_0            (1u << 3)
15 #define CPUINFO_V3_1            (1u << 4)
16 #define CPUINFO_ISEL            (1u << 5)
17 #define CPUINFO_ALTIVEC         (1u << 6)
18 #define CPUINFO_VSX             (1u << 7)
19 #define CPUINFO_CRYPTO          (1u << 8)
20 
21 /* Initialized with a constructor. */
22 extern unsigned cpuinfo;
23 
24 /*
25  * We cannot rely on constructor ordering, so other constructors must
26  * use the function interface rather than the variable above.
27  */
28 unsigned cpuinfo_init(void);
29 
30 #endif /* HOST_CPUINFO_H */
31