changeset 29072:4520c6c724a6

More flags; sync with Linux kernel.
author zuxy
date Tue, 31 Mar 2009 06:30:38 +0000
parents 02d3778bf947
children a5f19a8ecc86
files cpuinfo.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cpuinfo.c	Mon Mar 30 22:49:28 2009 +0000
+++ b/cpuinfo.c	Tue Mar 31 06:30:38 2009 +0000
@@ -186,6 +186,8 @@
       char *desc;
     } cap2[] = {
       CPUID_FEATURE_DEF(0, "pni", "SSE3 Extensions"),
+      CPUID_FEATURE_DEF(1, "pclmulqdq", "Carryless Multiplication"),
+      CPUID_FEATURE_DEF(2, "dtes64", "64-bit Debug Store"),
       CPUID_FEATURE_DEF(3, "monitor", "MONITOR/MWAIT"),
       CPUID_FEATURE_DEF(4, "ds_cpl", "CPL Qualified Debug Store"),
       CPUID_FEATURE_DEF(5, "vmx", "Virtual Machine Extensions"),
@@ -194,13 +196,20 @@
       CPUID_FEATURE_DEF(8, "tm2", "Thermal Monitor 2"),
       CPUID_FEATURE_DEF(9, "ssse3", "Supplemental SSE3"),
       CPUID_FEATURE_DEF(10, "cid", "L1 Context ID"),
+      CPUID_FEATURE_DEF(12, "fma", "Fused Multiply Add"),
       CPUID_FEATURE_DEF(13, "cx16", "CMPXCHG16B Available"),
       CPUID_FEATURE_DEF(14, "xtpr", "xTPR Disable"),
       CPUID_FEATURE_DEF(15, "pdcm", "Perf/Debug Capability MSR"),
       CPUID_FEATURE_DEF(18, "dca", "Direct Cache Access"),
       CPUID_FEATURE_DEF(19, "sse4_1", "SSE4.1 Extensions"),
       CPUID_FEATURE_DEF(20, "sse4_2", "SSE4.2 Extensions"),
+      CPUID_FEATURE_DEF(21, "x2apic", "x2APIC Feature"),
+      CPUID_FEATURE_DEF(22, "movbe", "MOVBE Instruction"),
       CPUID_FEATURE_DEF(23, "popcnt", "Pop Count Instruction"),
+      CPUID_FEATURE_DEF(25, "aes", "AES Instruction"),
+      CPUID_FEATURE_DEF(26, "xsave", "XSAVE/XRSTOR Extensions"),
+      CPUID_FEATURE_DEF(27, "osxsave", "XSAVE/XRSTOR Enabled in the OS"),
+      CPUID_FEATURE_DEF(28, "avx", "Advanced Vector Extension"),
       { -1 }
     };
     static struct {
@@ -227,7 +236,7 @@
       CPUID_FEATURE_DEF(1, "cmp_legacy", "Chip Multi-Core"),
       CPUID_FEATURE_DEF(2, "svm", "Secure Virtual Machine"),
       CPUID_FEATURE_DEF(3, "extapic", "Extended APIC Space"),
-      CPUID_FEATURE_DEF(4, "cr8legacy", "CR8 Available in Legacy Mode"),
+      CPUID_FEATURE_DEF(4, "cr8_legacy", "CR8 Available in Legacy Mode"),
       CPUID_FEATURE_DEF(5, "abm", "Advanced Bit Manipulation"),
       CPUID_FEATURE_DEF(6, "sse4a", "SSE4A Extensions"),
       CPUID_FEATURE_DEF(7, "misalignsse", "Misaligned SSE Mode"),