From bbd227ce4a657a137bc08d93ec23e49f31dff095 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Mon, 6 May 2024 00:11:44 +0200 Subject: [PATCH] Add Intel Meteor Lake and Emerald Rapids --- cpuid_x86.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cpuid_x86.c b/cpuid_x86.c index 6cf4d6503f..40735c5634 100644 --- a/cpuid_x86.c +++ b/cpuid_x86.c @@ -1535,6 +1535,7 @@ int get_cpuname(void){ return CPUTYPE_SANDYBRIDGE; else return CPUTYPE_NEHALEM; + case 0: // Meteor Lake case 7: // Rocket Lake if(support_avx512()) return CPUTYPE_SKYLAKEX; @@ -1560,6 +1561,19 @@ int get_cpuname(void){ return CPUTYPE_NEHALEM; } break; + case 12: //family 6 exmodel 12 + switch (model) { + case 15: + if(support_avx512()) + return CPUTYPE_SAPPHIRERAPIDS; + if(support_avx2()) + return CPUTYPE_HASWELL; + if(support_avx()) + return CPUTYPE_SANDYBRIDGE; + else + return CPUTYPE_NEHALEM; + } + break; } break; case 0x7: