1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-16 16:35:45 +00:00

Tests: add amd_fn8000001dh subleaf

See e562798cec
This commit is contained in:
Xorg 2020-05-09 22:48:07 +02:00
parent 3a346d4d72
commit 6b5a1f5ea6
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A
5 changed files with 136 additions and 7293 deletions

View file

@ -1,28 +1,44 @@
basic_cpuid[0]=00000010 68747541 444d4163 69746e65 basic_cpuid[0]=00000010 68747541 444d4163 69746e65
basic_cpuid[1]=00870f10 000c0800 7ed8320b 178bfbff basic_cpuid[1]=00870f10 050c0800 7ed8320b 178bfbff
basic_cpuid[2]=00000000 00000000 00000000 00000000 basic_cpuid[2]=00000000 00000000 00000000 00000000
basic_cpuid[3]=00000000 00000000 00000000 00000000 basic_cpuid[3]=00000000 00000000 00000000 00000000
basic_cpuid[4]=00000000 00000000 00000000 00000000
basic_cpuid[5]=00000040 00000040 00000003 00000011 basic_cpuid[5]=00000040 00000040 00000003 00000011
basic_cpuid[6]=00000004 00000000 00000001 00000000 basic_cpuid[6]=00000004 00000000 00000001 00000000
basic_cpuid[7]=00000000 219c91a9 00400004 00000000 basic_cpuid[7]=00000000 219c91a9 00400004 00000000
basic_cpuid[8]=00000000 00000000 00000000 00000000 basic_cpuid[8]=00000000 00000000 00000000 00000000
basic_cpuid[9]=00000000 00000000 00000000 00000000 basic_cpuid[9]=00000000 00000000 00000000 00000000
basic_cpuid[10]=00000000 00000000 00000000 00000000 basic_cpuid[10]=00000000 00000000 00000000 00000000
basic_cpuid[11]=00000001 00000002 00000100 00000000 basic_cpuid[11]=00000001 00000002 00000100 00000005
basic_cpuid[12]=00000000 00000000 00000000 00000000 basic_cpuid[12]=00000000 00000000 00000000 00000000
basic_cpuid[13]=00000207 00000340 00000380 00000000 basic_cpuid[13]=00000207 00000340 00000380 00000000
basic_cpuid[14]=00000000 00000000 00000000 00000000 basic_cpuid[14]=00000000 00000000 00000000 00000000
basic_cpuid[15]=00000000 000000ff 00000000 00000002 basic_cpuid[15]=00000000 000000ff 00000000 00000002
basic_cpuid[16]=00000000 00000002 00000000 00000000 basic_cpuid[16]=00000000 00000002 00000000 00000000
basic_cpuid[17]=00000000 00000000 00000000 00000000
basic_cpuid[18]=00000000 00000000 00000000 00000000
basic_cpuid[19]=00000000 00000000 00000000 00000000
basic_cpuid[20]=00000000 00000000 00000000 00000000
basic_cpuid[21]=00000000 00000000 00000000 00000000
basic_cpuid[22]=00000000 00000000 00000000 00000000
basic_cpuid[23]=00000000 00000000 00000000 00000000
basic_cpuid[24]=00000000 00000000 00000000 00000000
basic_cpuid[25]=00000000 00000000 00000000 00000000
basic_cpuid[26]=00000000 00000000 00000000 00000000
basic_cpuid[27]=00000000 00000000 00000000 00000000
basic_cpuid[28]=00000000 00000000 00000000 00000000
basic_cpuid[29]=00000000 00000000 00000000 00000000
basic_cpuid[30]=00000000 00000000 00000000 00000000
basic_cpuid[31]=00000000 00000000 00000000 00000000
ext_cpuid[0]=80000020 68747541 444d4163 69746e65 ext_cpuid[0]=80000020 68747541 444d4163 69746e65
ext_cpuid[1]=00870f10 20000000 75c237ff 2fd3fbff ext_cpuid[1]=00870f10 20000000 75c237ff 2fd3fbff
ext_cpuid[2]=20444d41 657a7952 2035206e 30303633 ext_cpuid[2]=20444d41 657a7952 2035206e 30303633
ext_cpuid[3]=432d3620 2065726f 636f7250 6f737365 ext_cpuid[3]=2d362058 65726f43 6f725020 73736563
ext_cpuid[4]=20202072 20202020 20202020 00202020 ext_cpuid[4]=2020726f 20202020 20202020 00202020
ext_cpuid[5]=ff40ff40 ff40ff40 20080140 20080140 ext_cpuid[5]=ff40ff40 ff40ff40 20080140 20080140
ext_cpuid[6]=48006400 68006400 02006140 01009140 ext_cpuid[6]=48006400 68006400 02006140 01009140
ext_cpuid[7]=00000000 0000001b 00000000 00006799 ext_cpuid[7]=00000000 0000001b 00000000 00006799
ext_cpuid[8]=00003030 010eb757 0000700b 00010000 ext_cpuid[8]=00003030 010cb657 0000700b 00010000
ext_cpuid[9]=00000000 00000000 00000000 00000000 ext_cpuid[9]=00000000 00000000 00000000 00000000
ext_cpuid[10]=00000001 00008000 00000000 0013bcff ext_cpuid[10]=00000001 00008000 00000000 0013bcff
ext_cpuid[11]=00000000 00000000 00000000 00000000 ext_cpuid[11]=00000000 00000000 00000000 00000000
@ -44,8 +60,24 @@ ext_cpuid[26]=00000006 00000000 00000000 00000000
ext_cpuid[27]=000003ff 00000000 00000000 00000000 ext_cpuid[27]=000003ff 00000000 00000000 00000000
ext_cpuid[28]=00000000 00000000 00000000 00000000 ext_cpuid[28]=00000000 00000000 00000000 00000000
ext_cpuid[29]=00004121 01c0003f 0000003f 00000000 ext_cpuid[29]=00004121 01c0003f 0000003f 00000000
ext_cpuid[30]=00000000 00000100 00000000 00000000 ext_cpuid[30]=00000005 00000102 00000000 00000000
ext_cpuid[31]=0001000f 0000016f 000001fd 00000001 ext_cpuid[31]=0001000f 0000016f 000001fd 00000001
intel_fn4[0]=00000000 00000000 00000000 00000000
intel_fn4[1]=00000000 00000000 00000000 00000000
intel_fn4[2]=00000000 00000000 00000000 00000000
intel_fn4[3]=00000000 00000000 00000000 00000000
intel_fn4[4]=00000000 00000000 00000000 00000000
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 00000005
intel_fn11[1]=00000007 0000000c 00000201 00000005
intel_fn11[2]=00000000 00000000 00000002 00000005
intel_fn11[3]=00000000 00000000 00000003 00000005
amd_fn8000001dh[0]=00004121 01c0003f 0000003f 00000000
amd_fn8000001dh[1]=00004122 01c0003f 0000003f 00000000
amd_fn8000001dh[2]=00004143 01c0003f 000003ff 00000002
amd_fn8000001dh[3]=00014163 03c0003f 00003fff 00000001
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
15 15
1 1

View file

@ -2,6 +2,7 @@ basic_cpuid[0]=00000010 68747541 444d4163 69746e65
basic_cpuid[1]=00870f10 00100800 7ed8320b 178bfbff basic_cpuid[1]=00870f10 00100800 7ed8320b 178bfbff
basic_cpuid[2]=00000000 00000000 00000000 00000000 basic_cpuid[2]=00000000 00000000 00000000 00000000
basic_cpuid[3]=00000000 00000000 00000000 00000000 basic_cpuid[3]=00000000 00000000 00000000 00000000
basic_cpuid[4]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[5]=00000040 00000040 00000003 00000011 basic_cpuid[5]=00000040 00000040 00000003 00000011
basic_cpuid[6]=00000004 00000000 00000001 00000000 basic_cpuid[6]=00000004 00000000 00000001 00000000
basic_cpuid[7]=00000000 219c91a9 00400004 00000000 basic_cpuid[7]=00000000 219c91a9 00400004 00000000
@ -14,6 +15,21 @@ basic_cpuid[13]=00000207 00000340 00000380 00000000
basic_cpuid[14]=00000000 00000000 00000000 00000000 basic_cpuid[14]=00000000 00000000 00000000 00000000
basic_cpuid[15]=00000000 000000ff 00000000 00000002 basic_cpuid[15]=00000000 000000ff 00000000 00000002
basic_cpuid[16]=00000000 00000002 00000000 00000000 basic_cpuid[16]=00000000 00000002 00000000 00000000
basic_cpuid[17]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[18]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[19]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[20]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[21]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[22]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[23]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[24]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[25]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[26]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[27]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[28]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[29]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[30]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[31]=ffffffff ffffffff ffffffff ffffffff
ext_cpuid[0]=80000020 68747541 444d4163 69746e65 ext_cpuid[0]=80000020 68747541 444d4163 69746e65
ext_cpuid[1]=00870f10 20000000 75c237ff 2fd3fbff ext_cpuid[1]=00870f10 20000000 75c237ff 2fd3fbff
ext_cpuid[2]=20444d41 657a7952 2037206e 30303733 ext_cpuid[2]=20444d41 657a7952 2037206e 30303733
@ -46,6 +62,22 @@ ext_cpuid[28]=00000000 00000000 00000000 00000000
ext_cpuid[29]=00004121 01c0003f 0000003f 00000000 ext_cpuid[29]=00004121 01c0003f 0000003f 00000000
ext_cpuid[30]=00000000 00000100 00000000 00000000 ext_cpuid[30]=00000000 00000100 00000000 00000000
ext_cpuid[31]=0001000f 0000016f 000001fd 00000001 ext_cpuid[31]=0001000f 0000016f 000001fd 00000001
intel_fn4[0]=ffffffff ffffffff ffffffff ffffffff
intel_fn4[1]=ffffffff ffffffff ffffffff ffffffff
intel_fn4[2]=ffffffff ffffffff ffffffff ffffffff
intel_fn4[3]=ffffffff ffffffff ffffffff ffffffff
intel_fn4[4]=ffffffff ffffffff ffffffff ffffffff
intel_fn4[5]=ffffffff ffffffff ffffffff ffffffff
intel_fn4[6]=ffffffff ffffffff ffffffff ffffffff
intel_fn4[7]=ffffffff ffffffff ffffffff ffffffff
intel_fn11[0]=00000001 00000002 00000100 00000000
intel_fn11[1]=00000007 00000010 00000201 00000000
intel_fn11[2]=ffffffff ffffffff ffffffff ffffffff
intel_fn11[3]=ffffffff ffffffff ffffffff ffffffff
amd_fn8000001dh[0]=00004121 01c0003f 0000003f 00000000
amd_fn8000001dh[1]=00004122 01c0003f 0000003f 00000000
amd_fn8000001dh[2]=00004143 01c0003f 000003ff 00000002
amd_fn8000001dh[3]=0001c163 03c0003f 00003fff 00000001
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
15 15
1 1

View file

@ -2,6 +2,7 @@ basic_cpuid[0]=00000010 68747541 444d4163 69746e65
basic_cpuid[1]=00870f10 00180800 7ed8320b 178bfbff basic_cpuid[1]=00870f10 00180800 7ed8320b 178bfbff
basic_cpuid[2]=00000000 00000000 00000000 00000000 basic_cpuid[2]=00000000 00000000 00000000 00000000
basic_cpuid[3]=00000000 00000000 00000000 00000000 basic_cpuid[3]=00000000 00000000 00000000 00000000
basic_cpuid[4]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[5]=00000040 00000040 00000003 00000011 basic_cpuid[5]=00000040 00000040 00000003 00000011
basic_cpuid[6]=00000004 00000000 00000001 00000000 basic_cpuid[6]=00000004 00000000 00000001 00000000
basic_cpuid[7]=00000000 219c91a9 00400004 00000000 basic_cpuid[7]=00000000 219c91a9 00400004 00000000
@ -14,6 +15,21 @@ basic_cpuid[13]=00000207 00000340 00000380 00000000
basic_cpuid[14]=00000000 00000000 00000000 00000000 basic_cpuid[14]=00000000 00000000 00000000 00000000
basic_cpuid[15]=00000000 000000ff 00000000 00000002 basic_cpuid[15]=00000000 000000ff 00000000 00000002
basic_cpuid[16]=00000000 00000002 00000000 00000000 basic_cpuid[16]=00000000 00000002 00000000 00000000
basic_cpuid[17]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[18]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[19]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[20]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[21]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[22]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[23]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[24]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[25]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[26]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[27]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[28]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[29]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[30]=ffffffff ffffffff ffffffff ffffffff
basic_cpuid[31]=ffffffff ffffffff ffffffff ffffffff
ext_cpuid[0]=80000020 68747541 444d4163 69746e65 ext_cpuid[0]=80000020 68747541 444d4163 69746e65
ext_cpuid[1]=00870f10 20000000 75c237ff 2fd3fbff ext_cpuid[1]=00870f10 20000000 75c237ff 2fd3fbff
ext_cpuid[2]=20444d41 657a7952 2039206e 204f5250 ext_cpuid[2]=20444d41 657a7952 2039206e 204f5250
@ -46,6 +62,22 @@ ext_cpuid[28]=00000000 00000000 00000000 00000000
ext_cpuid[29]=00004121 01c0003f 0000003f 00000000 ext_cpuid[29]=00004121 01c0003f 0000003f 00000000
ext_cpuid[30]=00000000 00000100 00000000 00000000 ext_cpuid[30]=00000000 00000100 00000000 00000000
ext_cpuid[31]=0001000f 0000016f 000001fd 00000001 ext_cpuid[31]=0001000f 0000016f 000001fd 00000001
intel_fn4[0]=ffffffff ffffffff ffffffff ffffffff
intel_fn4[1]=ffffffff ffffffff ffffffff ffffffff
intel_fn4[2]=ffffffff ffffffff ffffffff ffffffff
intel_fn4[3]=ffffffff ffffffff ffffffff ffffffff
intel_fn4[4]=ffffffff ffffffff ffffffff ffffffff
intel_fn4[5]=ffffffff ffffffff ffffffff ffffffff
intel_fn4[6]=ffffffff ffffffff ffffffff ffffffff
intel_fn4[7]=ffffffff ffffffff ffffffff ffffffff
intel_fn11[0]=00000001 00000002 00000100 00000000
intel_fn11[1]=00000007 00000018 00000201 00000000
intel_fn11[2]=ffffffff ffffffff ffffffff ffffffff
intel_fn11[3]=ffffffff ffffffff ffffffff ffffffff
amd_fn8000001dh[0]=00004121 01c0003f 0000003f 00000000
amd_fn8000001dh[1]=00004122 01c0003f 0000003f 00000000
amd_fn8000001dh[2]=00004143 01c0003f 000003ff 00000002
amd_fn8000001dh[3]=00014163 03c0003f 00003fff 00000001
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
15 15
1 1

File diff suppressed because it is too large Load diff

View file

@ -12,7 +12,7 @@ if len(args) != 3:
def readRawFile(): def readRawFile():
rawdata = [] rawdata = []
for line in open(args[1], "rt").readlines(): for line in open(args[1], "rt").readlines():
lookfor = ["basic_cpuid", "ext_cpuid", "intel_fn4", "intel_fn11"] lookfor = ["basic_cpuid", "ext_cpuid", "intel_fn4", "intel_fn11", "amd_fn8000001dh"]
good = False good = False
for match in lookfor: for match in lookfor:
if line.find(match) != -1: if line.find(match) != -1: