From da68fd8bf880a4fde6809e4e9500f39ec19c892a Mon Sep 17 00:00:00 2001 From: Kurt Cancemi Date: Sun, 17 May 2015 17:06:05 -0400 Subject: [PATCH] Fix max extended level check --- libcpuid/recog_amd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcpuid/recog_amd.c b/libcpuid/recog_amd.c index c5390b9..59ec8f5 100644 --- a/libcpuid/recog_amd.c +++ b/libcpuid/recog_amd.c @@ -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_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); if (raw->ext_cpuid[0][0] >= 0x8000001a) { /* We have the extended info about SSE unit size */