From fe613de8e1b72b8225e81556511ac22ea1e2201d Mon Sep 17 00:00:00 2001 From: Xianyi Zhang Date: Mon, 13 Feb 2012 19:20:35 +0800 Subject: [PATCH] refs #69. Auto-detect Intel Core i6/i7 (Sandy Bridge) CPU with Nehalem assembly kernels. --- cpuid_x86.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpuid_x86.c b/cpuid_x86.c index b68f535..e183e9f 100644 --- a/cpuid_x86.c +++ b/cpuid_x86.c @@ -981,6 +981,9 @@ int get_cpuname(void){ // Pentium (Clarkdale) / Pentium Mobile (Arrandale) // Xeon (Clarkdale), 32nm return CPUTYPE_NEHALEM; + case 10: + //Intel Core i5-2000 /i7-2000 (Sandy Bridge) + return CPUTYPE_NEHALEM; case 12: //Xeon Processor 5600 (Westmere-EP) return CPUTYPE_NEHALEM; @@ -1310,6 +1313,9 @@ int get_coretype(void){ // Pentium (Clarkdale) / Pentium Mobile (Arrandale) // Xeon (Clarkdale), 32nm return CORE_NEHALEM; + case 10: + //Intel Core i5-2000 /i7-2000 (Sandy Bridge) + return CORE_NEHALEM; case 12: //Xeon Processor 5600 (Westmere-EP) return CORE_NEHALEM; -- 2.7.4