summaryrefslogtreecommitdiff
path: root/Source/Core/Common/x64CPUDetect.cpp
diff options
context:
space:
mode:
authoraltimumdelta <48530820+altimumdelta@users.noreply.github.com>2020-11-08 14:27:24 +0100
committeraltimumdelta <48530820+altimumdelta@users.noreply.github.com>2020-11-08 14:27:24 +0100
commit77dc289517a977df67d660bbcfa6b2ac5b5a9b36 (patch)
tree2448eb9c2de895d4efe08a572cc6d2d58fbd124c /Source/Core/Common/x64CPUDetect.cpp
parent2acd3abe359de3ebba49d9caa0552272d159d29c (diff)
CPUDetect: Indicate slow PDEP/PEXT only for Zen1/+/2 (Family 23)
Diffstat (limited to 'Source/Core/Common/x64CPUDetect.cpp')
-rw-r--r--Source/Core/Common/x64CPUDetect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/x64CPUDetect.cpp b/Source/Core/Common/x64CPUDetect.cpp
index 338c74b808..8129d8ddfa 100644
--- a/Source/Core/Common/x64CPUDetect.cpp
+++ b/Source/Core/Common/x64CPUDetect.cpp
@@ -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)
{