From 688267edf3e46f73773296cbfa47f234171ee0fa Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Thu, 2 Mar 2017 17:36:16 +0100 Subject: [PATCH] Fix core detection for Kaby Lake without AVX (G4560) Should fix #1109) --- cpuid_x86.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cpuid_x86.c b/cpuid_x86.c index 3e8a92b31..814a79d4d 100644 --- a/cpuid_x86.c +++ b/cpuid_x86.c @@ -1777,7 +1777,14 @@ int get_coretype(void){ case 9: case 8: if (model == 14) // Kaby Lake - return CORE_HASWELL; + if(support_avx()) +#ifndef NO_AVX2 + return CORE_HASWELL; +#else + return CORE_SANDYBRIDGE; +#endif + else + return CORE_NEHALEM; } break;