mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-10 22:59:13 +00:00
Add a test with L4 cache (courtesy of @phprus).
The test is a snapshot of a Haswell i7 (a.k.a. "Crystalwell") core. This is the only test in the test DB right now which has lines for L4 cache size, associativity and cacheline size different than "-1". Also update create_test.py to accommodate for the new fields.
This commit is contained in:
parent
f52c02d394
commit
87f3052a7b
2 changed files with 103 additions and 2 deletions
|
@ -31,8 +31,9 @@ def readResultFile():
|
||||||
continue
|
continue
|
||||||
numeric = ["family", "model", "stepping", "ext_family", "ext_model",
|
numeric = ["family", "model", "stepping", "ext_family", "ext_model",
|
||||||
"num_cores", "num_logical", "L1 D cache", "L1 I cache",
|
"num_cores", "num_logical", "L1 D cache", "L1 I cache",
|
||||||
"L2 cache", "L3 cache", "L1D assoc.", "L2 assoc.",
|
"L2 cache", "L3 cache", "L4 cache", "L1D assoc.",
|
||||||
"L3 assoc.", "L1D line sz", "L2 line sz", "L3 line sz"]
|
"L2 assoc.", "L3 assoc.", "L4 assoc.", "L1D line sz",
|
||||||
|
"L2 line sz", "L3 line sz", "L4 line sz"]
|
||||||
field = s[:s.find(":")].strip()
|
field = s[:s.find(":")].strip()
|
||||||
if field in numeric:
|
if field in numeric:
|
||||||
value = s[s.find(":")+1:].strip()
|
value = s[s.find(":")+1:].strip()
|
||||||
|
|
100
tests/intel/haswell/crystalwell-i7.test
Normal file
100
tests/intel/haswell/crystalwell-i7.test
Normal file
|
@ -0,0 +1,100 @@
|
||||||
|
basic_cpuid[0]=0000000d 756e6547 6c65746e 49656e69
|
||||||
|
basic_cpuid[1]=00040661 06100800 7ffafbbf bfebfbff
|
||||||
|
basic_cpuid[2]=76036301 00f0b5ff 00000000 00c10000
|
||||||
|
basic_cpuid[3]=00000000 00000000 00000000 00000000
|
||||||
|
basic_cpuid[4]=1c004121 01c0003f 0000003f 00000000
|
||||||
|
basic_cpuid[5]=00000040 00000040 00000003 00042120
|
||||||
|
basic_cpuid[6]=00000077 00000002 00000009 00000000
|
||||||
|
basic_cpuid[7]=00000000 000027ab 00000000 00000000
|
||||||
|
basic_cpuid[8]=00000000 00000000 00000000 00000000
|
||||||
|
basic_cpuid[9]=00000000 00000000 00000000 00000000
|
||||||
|
basic_cpuid[10]=07300403 00000000 00000000 00000603
|
||||||
|
basic_cpuid[11]=00000001 00000002 00000100 00000006
|
||||||
|
basic_cpuid[12]=00000000 00000000 00000000 00000000
|
||||||
|
basic_cpuid[13]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[14]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[15]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[16]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[17]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[18]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[19]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[20]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[21]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[22]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[23]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[24]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[25]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[26]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[27]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[28]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[29]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[30]=00000007 00000340 00000340 00000000
|
||||||
|
basic_cpuid[31]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[0]=80000008 00000000 00000000 00000000
|
||||||
|
ext_cpuid[1]=00000000 00000000 00000021 2c100800
|
||||||
|
ext_cpuid[2]=65746e49 2952286c 726f4320 4d542865
|
||||||
|
ext_cpuid[3]=37692029 3537342d 20514830 20555043
|
||||||
|
ext_cpuid[4]=2e322040 48473030 0000007a 00000000
|
||||||
|
ext_cpuid[5]=00000000 00000000 00000000 00000000
|
||||||
|
ext_cpuid[6]=00000000 00000000 01006040 00000000
|
||||||
|
ext_cpuid[7]=00000000 00000000 00000000 00000100
|
||||||
|
ext_cpuid[8]=00003027 00000000 00000000 00000000
|
||||||
|
ext_cpuid[9]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[10]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[11]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[12]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[13]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[14]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[15]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[16]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[17]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[18]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[19]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[20]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[21]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[22]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[23]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[24]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[25]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[26]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[27]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[28]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[29]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[30]=00000007 00000340 00000340 00000000
|
||||||
|
ext_cpuid[31]=00000007 00000340 00000340 00000000
|
||||||
|
intel_fn4[0]=1c004121 01c0003f 0000003f 00000000
|
||||||
|
intel_fn4[1]=1c004122 01c0003f 0000003f 00000000
|
||||||
|
intel_fn4[2]=1c004143 01c0003f 000001ff 00000000
|
||||||
|
intel_fn4[3]=1c03c163 02c0003f 00001fff 00000006
|
||||||
|
intel_fn4[4]=1c03c183 03c0f03f 00001fff 00000004
|
||||||
|
intel_fn4[5]=00000000 00000000 00000000 00000000
|
||||||
|
intel_fn4[6]=00000000 00000000 00000000 00000000
|
||||||
|
intel_fn4[7]=00000000 00000000 00000000 00000000
|
||||||
|
intel_fn11[0]=00000001 00000002 00000100 00000006
|
||||||
|
intel_fn11[1]=00000004 00000008 00000201 00000006
|
||||||
|
intel_fn11[2]=00000000 00000000 00000002 00000006
|
||||||
|
intel_fn11[3]=00000000 00000000 00000003 00000006
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
6
|
||||||
|
6
|
||||||
|
1
|
||||||
|
6
|
||||||
|
70
|
||||||
|
4
|
||||||
|
8
|
||||||
|
32
|
||||||
|
32
|
||||||
|
256
|
||||||
|
6144
|
||||||
|
131072
|
||||||
|
8
|
||||||
|
8
|
||||||
|
12
|
||||||
|
16
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
64
|
||||||
|
128 (non-authoritative)
|
||||||
|
Haswell (Core i7)
|
||||||
|
fpu vme de pse tsc msr pae mce cx8 apic mtrr sep pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni pclmul dts64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 syscall xd movbe popcnt aes xsave osxsave avx rdtscp lm lahf_lm constant_tsc fma3 f16c rdrand x2apic avx2 bmi1 bmi2
|
Loading…
Reference in a new issue