Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/cpu_features.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Kurushin <ajax16384@gmail.com>2022-07-13 11:28:34 +0300
committerGitHub <noreply@github.com>2022-07-13 11:28:34 +0300
commit8eb944f55d768a3c0250a1e80bb94de7b2560971 (patch)
tree79598482d7e5f7b52256d4d8b5a3dc7a8a09e23c
parentdb9ad9fc2ccfbbb1815c1459b2151d57b773ddd3 (diff)
add comet lake support #248 (#249)
-rw-r--r--include/cpuinfo_x86.h1
-rw-r--r--src/impl_x86__base_implementation.inl6
2 files changed, 7 insertions, 0 deletions
diff --git a/include/cpuinfo_x86.h b/include/cpuinfo_x86.h
index 66b06ba..9cb56e5 100644
--- a/include/cpuinfo_x86.h
+++ b/include/cpuinfo_x86.h
@@ -141,6 +141,7 @@ typedef enum {
INTEL_KBL, // KABY LAKE
INTEL_CFL, // COFFEE LAKE
INTEL_WHL, // WHISKEY LAKE
+ INTEL_CML, // COMET LAKE
INTEL_CNL, // CANNON LAKE
INTEL_ICL, // ICE LAKE
INTEL_TGL, // TIGER LAKE
diff --git a/src/impl_x86__base_implementation.inl b/src/impl_x86__base_implementation.inl
index 4ff23b1..fb29547 100644
--- a/src/impl_x86__base_implementation.inl
+++ b/src/impl_x86__base_implementation.inl
@@ -532,6 +532,8 @@ X86Microarchitecture GetX86Microarchitecture(const X86Info* info) {
return INTEL_CFL; // https://en.wikipedia.org/wiki/Coffee_Lake
case 11:
return INTEL_WHL; // https://en.wikipedia.org/wiki/Whiskey_Lake_(microarchitecture)
+ case 12:
+ return INTEL_CML; // https://en.wikichip.org/wiki/intel/microarchitectures/comet_lake
default:
return X86_UNKNOWN;
}
@@ -547,6 +549,9 @@ X86Microarchitecture GetX86Microarchitecture(const X86Info* info) {
case CPUID(0x06, 0x9A):
// https://en.wikichip.org/wiki/intel/microarchitectures/alder_lake
return INTEL_ADL;
+ case CPUID(0x06, 0xA5):
+ // https://en.wikichip.org/wiki/intel/microarchitectures/comet_lake
+ return INTEL_CML;
case CPUID(0x06, 0xA7):
// https://en.wikichip.org/wiki/intel/microarchitectures/rocket_lake
return INTEL_RCL;
@@ -1779,6 +1784,7 @@ CacheInfo GetX86CacheInfo(void) {
LINE(INTEL_KBL) \
LINE(INTEL_CFL) \
LINE(INTEL_WHL) \
+ LINE(INTEL_CML) \
LINE(INTEL_CNL) \
LINE(INTEL_ICL) \
LINE(INTEL_TGL) \