mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-10 22:59:13 +00:00
Fix max extended level check
This commit is contained in:
parent
2834683640
commit
da68fd8bf8
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ static void load_amd_features(struct cpu_raw_data_t* raw, struct cpu_id_t* data)
|
||||||
match_features(matchtable_edx81, COUNT_OF(matchtable_edx81), raw->ext_cpuid[1][3], data);
|
match_features(matchtable_edx81, COUNT_OF(matchtable_edx81), raw->ext_cpuid[1][3], data);
|
||||||
match_features(matchtable_ecx81, COUNT_OF(matchtable_ecx81), raw->ext_cpuid[1][2], data);
|
match_features(matchtable_ecx81, COUNT_OF(matchtable_ecx81), raw->ext_cpuid[1][2], data);
|
||||||
}
|
}
|
||||||
if (raw->ext_cpuid[0][0] >= 0x80000001)
|
if (raw->ext_cpuid[0][0] >= 0x80000007)
|
||||||
match_features(matchtable_edx87, COUNT_OF(matchtable_edx87), raw->ext_cpuid[7][3], data);
|
match_features(matchtable_edx87, COUNT_OF(matchtable_edx87), raw->ext_cpuid[7][3], data);
|
||||||
if (raw->ext_cpuid[0][0] >= 0x8000001a) {
|
if (raw->ext_cpuid[0][0] >= 0x8000001a) {
|
||||||
/* We have the extended info about SSE unit size */
|
/* We have the extended info about SSE unit size */
|
||||||
|
|
Loading…
Reference in a new issue