Skip to content

Commit 66063d1

Browse files
authored
Merge pull request #5679 from martin-frbg/issue5678
Add Jasper Lake Celeron N5105 and allow default fallback to Nehalem
2 parents ddfbc64 + 99c6a74 commit 66063d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpuid_x86.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,6 +1588,8 @@ int get_cpuname(void)
15881588
if (support_avx2()) return CPUTYPE_HASWELL;
15891589
if (support_avx()) return CPUTYPE_SANDYBRIDGE;
15901590
else return CPUTYPE_NEHALEM;
1591+
case 12: // Jasper Lake Celeron N5105
1592+
return CPUTYPE_NEHALEM;
15911593
case 13: // Ice Lake NNPI
15921594
if (support_avx512()) return CPUTYPE_SKYLAKEX;
15931595
if (support_avx2()) return CPUTYPE_HASWELL;
@@ -2302,6 +2304,8 @@ int get_coretype(void)
23022304
if (support_avx()) return CORE_SANDYBRIDGE;
23032305
else return CORE_NEHALEM;
23042306
}
2307+
if (model == 12) // Jasper Lake
2308+
return CORE_NEHALEM;
23052309
if (model == 13) { // Ice Lake NNPI
23062310
if (support_avx512()) return CORE_SKYLAKEX;
23072311
if (support_avx2()) return CORE_HASWELL;
@@ -2400,6 +2404,7 @@ int get_coretype(void)
24002404
if (support_avx512()) return CORE_SKYLAKEX;
24012405
if (support_avx2()) return CORE_HASWELL;
24022406
if (support_avx()) return CORE_SANDYBRIDGE;
2407+
return CORE_NEHALEM;
24032408
}
24042409
}
24052410

0 commit comments

Comments
 (0)