mirror of
https://github.com/google/cpu_features.git
synced 2025-07-01 05:11:15 +02:00
Add support for detecting Intel CascadeLake CPUs (#271)
Should close https://github.com/google/cpu_features/issues/260
This commit is contained in:

committed by
GitHub

parent
cee2648cf0
commit
b69591add3
@ -514,10 +514,15 @@ X86Microarchitecture GetX86Microarchitecture(const X86Info* info) {
|
||||
// https://en.wikipedia.org/wiki/Broadwell_(microarchitecture)
|
||||
return INTEL_BDW;
|
||||
case CPUID(0x06, 0x4E):
|
||||
case CPUID(0x06, 0x55):
|
||||
case CPUID(0x06, 0x5E):
|
||||
// https://en.wikipedia.org/wiki/Skylake_(microarchitecture)
|
||||
return INTEL_SKL;
|
||||
case CPUID(0x06, 0x55):
|
||||
if (info->stepping >= 6 && info->stepping <= 7) {
|
||||
// https://en.wikipedia.org/wiki/Cascade_Lake_(microprocessor)
|
||||
return INTEL_CCL;
|
||||
}
|
||||
return INTEL_SKL;
|
||||
case CPUID(0x06, 0x66):
|
||||
// https://en.wikipedia.org/wiki/Cannon_Lake_(microarchitecture)
|
||||
return INTEL_CNL;
|
||||
@ -1911,6 +1916,7 @@ CacheInfo GetX86CacheInfo(void) {
|
||||
LINE(INTEL_HSW) \
|
||||
LINE(INTEL_BDW) \
|
||||
LINE(INTEL_SKL) \
|
||||
LINE(INTEL_CCL) \
|
||||
LINE(INTEL_ATOM_GMT) \
|
||||
LINE(INTEL_ATOM_GMT_PLUS) \
|
||||
LINE(INTEL_ATOM_TMT) \
|
||||
|
Reference in New Issue
Block a user