summaryrefslogtreecommitdiff
path: root/Source/Core/Common/x64CPUDetect.cpp
diff options
context:
space:
mode:
authorTechjar <tecknojar@gmail.com>2020-01-26 21:38:51 -0500
committerTechjar <tecknojar@gmail.com>2020-01-26 22:09:13 -0500
commit52b52631c2d241cb0eddebb85d3b0473955bab87 (patch)
treecf41f54a0472bea8a6c7a14bd0d89df23e0f4721 /Source/Core/Common/x64CPUDetect.cpp
parent15b9b6e76bf32a4874e05d8e90c1466c372d1e9f (diff)
x64CPUDetect: Add detection for AMD Zen architecture
Diffstat (limited to 'Source/Core/Common/x64CPUDetect.cpp')
-rw-r--r--Source/Core/Common/x64CPUDetect.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/Common/x64CPUDetect.cpp b/Source/Core/Common/x64CPUDetect.cpp
index b66ea45cfa..0c3decba05 100644
--- a/Source/Core/Common/x64CPUDetect.cpp
+++ b/Source/Core/Common/x64CPUDetect.cpp
@@ -118,6 +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)
+ if (family == 23)
+ bZen = true;
logical_cpu_count = (cpu_id[1] >> 16) & 0xFF;
ht = (cpu_id[3] >> 28) & 1;