David Howells | c3617f7 | 2012-10-09 09:47:26 +0100 | [diff] [blame] | 1 | #ifndef _UAPI__ASM_POWERPC_CPUTABLE_H |
| 2 | #define _UAPI__ASM_POWERPC_CPUTABLE_H |
| 3 | |
Nishanth Aravamudan | cbbc6f1 | 2013-05-03 14:47:56 +0000 | [diff] [blame] | 4 | /* in AT_HWCAP */ |
David Howells | c3617f7 | 2012-10-09 09:47:26 +0100 | [diff] [blame] | 5 | #define PPC_FEATURE_32 0x80000000 |
| 6 | #define PPC_FEATURE_64 0x40000000 |
| 7 | #define PPC_FEATURE_601_INSTR 0x20000000 |
| 8 | #define PPC_FEATURE_HAS_ALTIVEC 0x10000000 |
| 9 | #define PPC_FEATURE_HAS_FPU 0x08000000 |
| 10 | #define PPC_FEATURE_HAS_MMU 0x04000000 |
| 11 | #define PPC_FEATURE_HAS_4xxMAC 0x02000000 |
| 12 | #define PPC_FEATURE_UNIFIED_CACHE 0x01000000 |
| 13 | #define PPC_FEATURE_HAS_SPE 0x00800000 |
| 14 | #define PPC_FEATURE_HAS_EFP_SINGLE 0x00400000 |
| 15 | #define PPC_FEATURE_HAS_EFP_DOUBLE 0x00200000 |
| 16 | #define PPC_FEATURE_NO_TB 0x00100000 |
| 17 | #define PPC_FEATURE_POWER4 0x00080000 |
| 18 | #define PPC_FEATURE_POWER5 0x00040000 |
| 19 | #define PPC_FEATURE_POWER5_PLUS 0x00020000 |
| 20 | #define PPC_FEATURE_CELL 0x00010000 |
| 21 | #define PPC_FEATURE_BOOKE 0x00008000 |
| 22 | #define PPC_FEATURE_SMT 0x00004000 |
| 23 | #define PPC_FEATURE_ICACHE_SNOOP 0x00002000 |
| 24 | #define PPC_FEATURE_ARCH_2_05 0x00001000 |
| 25 | #define PPC_FEATURE_PA6T 0x00000800 |
| 26 | #define PPC_FEATURE_HAS_DFP 0x00000400 |
| 27 | #define PPC_FEATURE_POWER6_EXT 0x00000200 |
| 28 | #define PPC_FEATURE_ARCH_2_06 0x00000100 |
| 29 | #define PPC_FEATURE_HAS_VSX 0x00000080 |
| 30 | |
| 31 | #define PPC_FEATURE_PSERIES_PERFMON_COMPAT \ |
| 32 | 0x00000040 |
| 33 | |
Anton Blanchard | 6997e57 | 2016-04-15 12:06:13 +1000 | [diff] [blame] | 34 | /* Reserved - do not use 0x00000004 */ |
David Howells | c3617f7 | 2012-10-09 09:47:26 +0100 | [diff] [blame] | 35 | #define PPC_FEATURE_TRUE_LE 0x00000002 |
| 36 | #define PPC_FEATURE_PPC_LE 0x00000001 |
| 37 | |
Nishanth Aravamudan | cbbc6f1 | 2013-05-03 14:47:56 +0000 | [diff] [blame] | 38 | /* in AT_HWCAP2 */ |
| 39 | #define PPC_FEATURE2_ARCH_2_07 0x80000000 |
| 40 | #define PPC_FEATURE2_HTM 0x40000000 |
| 41 | #define PPC_FEATURE2_DSCR 0x20000000 |
| 42 | #define PPC_FEATURE2_EBB 0x10000000 |
| 43 | #define PPC_FEATURE2_ISEL 0x08000000 |
| 44 | #define PPC_FEATURE2_TAR 0x04000000 |
Benjamin Herrenschmidt | dd58a09 | 2014-06-10 15:04:40 +1000 | [diff] [blame] | 45 | #define PPC_FEATURE2_VEC_CRYPTO 0x02000000 |
Sam bobroff | b4b56f9 | 2015-06-12 11:06:32 +1000 | [diff] [blame] | 46 | #define PPC_FEATURE2_HTM_NOSC 0x01000000 |
Michael Ellerman | e708c24 | 2016-01-11 13:59:04 +1100 | [diff] [blame] | 47 | #define PPC_FEATURE2_ARCH_3_00 0x00800000 /* ISA 3.00 */ |
| 48 | #define PPC_FEATURE2_HAS_IEEE128 0x00400000 /* VSX IEEE Binary Float 128-bit */ |
Nishanth Aravamudan | cbbc6f1 | 2013-05-03 14:47:56 +0000 | [diff] [blame] | 49 | |
David Howells | c3617f7 | 2012-10-09 09:47:26 +0100 | [diff] [blame] | 50 | #endif /* _UAPI__ASM_POWERPC_CPUTABLE_H */ |