CPUDetect: Indicate slow PDEP/PEXT only for Zen1/+/2 (Family 23)

This commit is contained in:
altimumdelta
2020-11-08 14:27:24 +01:00
parent 2acd3abe35
commit 77dc289517
2 changed files with 5 additions and 6 deletions

View File

@ -118,9 +118,9 @@ void CPUInfo::Detect()
(model == 0x1C || model == 0x26 || model == 0x27 || model == 0x35 || model == 0x36 ||
model == 0x37 || model == 0x4A || model == 0x4D || model == 0x5A || model == 0x5D))
bAtom = true;
// Detect AMD Zen (all models)
// Detect AMD Zen1, Zen1+ and Zen2
if (family == 23)
bZen = true;
bZen1p2 = true;
logical_cpu_count = (cpu_id[1] >> 16) & 0xFF;
ht = (cpu_id[3] >> 28) & 1;
@ -175,7 +175,7 @@ void CPUInfo::Detect()
}
bFlushToZero = bSSE;
bFastBMI2 = bBMI2 && !bZen;
bFastBMI2 = bBMI2 && !bZen1p2;
if (max_ex_fn >= 0x80000004)
{