Mercurial > mplayer.hg
comparison cpuinfo.c @ 23344:57692910afd4
New tags introduced for AMD K10 and Intel Penryn
author | zuxy |
---|---|
date | Mon, 21 May 2007 07:42:58 +0000 |
parents | 41d042563508 |
children | ec89cf1d721e |
comparison
equal
deleted
inserted
replaced
23343:a982544e5c08 | 23344:57692910afd4 |
---|---|
203 CPUID_FEATURE_DEF(8, "tm2", "Thermal Monitor 2"), | 203 CPUID_FEATURE_DEF(8, "tm2", "Thermal Monitor 2"), |
204 CPUID_FEATURE_DEF(9, "ssse3", "Supplemental SSE3"), | 204 CPUID_FEATURE_DEF(9, "ssse3", "Supplemental SSE3"), |
205 CPUID_FEATURE_DEF(10, "cid", "L1 Context ID"), | 205 CPUID_FEATURE_DEF(10, "cid", "L1 Context ID"), |
206 CPUID_FEATURE_DEF(13, "cx16", "CMPXCHG16B Available"), | 206 CPUID_FEATURE_DEF(13, "cx16", "CMPXCHG16B Available"), |
207 CPUID_FEATURE_DEF(14, "xtpr", "xTPR Disable"), | 207 CPUID_FEATURE_DEF(14, "xtpr", "xTPR Disable"), |
208 CPUID_FEATURE_DEF(15, "pdcm", "Perf/Debug Capability MSR"), | |
208 CPUID_FEATURE_DEF(18, "dca", "Direct Cache Access"), | 209 CPUID_FEATURE_DEF(18, "dca", "Direct Cache Access"), |
210 CPUID_FEATURE_DEF(19, "sse41", "SSE4.1 Extensions"), | |
211 CPUID_FEATURE_DEF(20, "sse42", "SSE4.2 Extensions"), | |
212 CPUID_FEATURE_DEF(23, "popcnt", "Pop Count Instruction"), | |
209 { -1 } | 213 { -1 } |
210 }; | 214 }; |
211 static struct { | 215 static struct { |
212 int bit; | 216 int bit; |
213 char *desc; | 217 char *desc; |
215 CPUID_FEATURE_DEF(11, "syscall", "SYSCALL and SYSRET"), | 219 CPUID_FEATURE_DEF(11, "syscall", "SYSCALL and SYSRET"), |
216 CPUID_FEATURE_DEF(19, "mp", "MP Capable"), | 220 CPUID_FEATURE_DEF(19, "mp", "MP Capable"), |
217 CPUID_FEATURE_DEF(20, "nx", "No-Execute Page Protection"), | 221 CPUID_FEATURE_DEF(20, "nx", "No-Execute Page Protection"), |
218 CPUID_FEATURE_DEF(22, "mmxext", "MMX Technology (AMD Extensions)"), | 222 CPUID_FEATURE_DEF(22, "mmxext", "MMX Technology (AMD Extensions)"), |
219 CPUID_FEATURE_DEF(25, "fxsr_opt", "Fast FXSAVE/FXRSTOR"), | 223 CPUID_FEATURE_DEF(25, "fxsr_opt", "Fast FXSAVE/FXRSTOR"), |
224 CPUID_FEATURE_DEF(26, "pdpe1gb", "PDP Entry for 1GiB Page"), | |
220 CPUID_FEATURE_DEF(27, "rdtscp", "RDTSCP Instruction"), | 225 CPUID_FEATURE_DEF(27, "rdtscp", "RDTSCP Instruction"), |
221 CPUID_FEATURE_DEF(29, "lm", "Long Mode Capable"), | 226 CPUID_FEATURE_DEF(29, "lm", "Long Mode Capable"), |
222 CPUID_FEATURE_DEF(30, "3dnowext", "3DNow! Extensions"), | 227 CPUID_FEATURE_DEF(30, "3dnowext", "3DNow! Extensions"), |
223 CPUID_FEATURE_DEF(31, "3dnow", "3DNow!"), | 228 CPUID_FEATURE_DEF(31, "3dnow", "3DNow!"), |
224 { -1 } | 229 { -1 } |
228 char *desc; | 233 char *desc; |
229 } cap_amd2[] = { | 234 } cap_amd2[] = { |
230 CPUID_FEATURE_DEF(0, "lahf_lm", "LAHF/SAHF Supported in 64-bit Mode"), | 235 CPUID_FEATURE_DEF(0, "lahf_lm", "LAHF/SAHF Supported in 64-bit Mode"), |
231 CPUID_FEATURE_DEF(1, "cmp_legacy", "Chip Multi-Core"), | 236 CPUID_FEATURE_DEF(1, "cmp_legacy", "Chip Multi-Core"), |
232 CPUID_FEATURE_DEF(2, "svm", "Secure Virtual Machine"), | 237 CPUID_FEATURE_DEF(2, "svm", "Secure Virtual Machine"), |
238 CPUID_FEATURE_DEF(3, "extapic", "Extended APIC Space"), | |
233 CPUID_FEATURE_DEF(4, "cr8legacy", "CR8 Available in Legacy Mode"), | 239 CPUID_FEATURE_DEF(4, "cr8legacy", "CR8 Available in Legacy Mode"), |
240 CPUID_FEATURE_DEF(5, "abm", "Advanced Bit Manipulation"), | |
241 CPUID_FEATURE_DEF(6, "sse4a", "SSE4A Extensions"), | |
242 CPUID_FEATURE_DEF(7, "misalignsse", "Misaligned SSE Mode"), | |
243 CPUID_FEATURE_DEF(8, "3dnowprefetch", "3DNow! Prefetch/PrefetchW"), | |
244 CPUID_FEATURE_DEF(9, "osvw", "OS Visible Workaround"), | |
245 CPUID_FEATURE_DEF(10, "ibs", ""), | |
234 { -1 } | 246 { -1 } |
235 }; | 247 }; |
236 unsigned int family, model, stepping; | 248 unsigned int family, model, stepping; |
237 | 249 |
238 regs = cpuid(1); | 250 regs = cpuid(1); |