summaryrefslogtreecommitdiffstats
path: root/src/common/x64
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-03-22 02:13:03 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-03-27 23:45:22 +0200
commitd2cfe25b07906f36c688ccacde30e3dc50123e8f (patch)
treee99fb164079a31fd1f619d0afedf8c7f07d9fc8a /src/common/x64
parentMerge pull request #10002 from german77/log (diff)
downloadyuzu-d2cfe25b07906f36c688ccacde30e3dc50123e8f.tar
yuzu-d2cfe25b07906f36c688ccacde30e3dc50123e8f.tar.gz
yuzu-d2cfe25b07906f36c688ccacde30e3dc50123e8f.tar.bz2
yuzu-d2cfe25b07906f36c688ccacde30e3dc50123e8f.tar.lz
yuzu-d2cfe25b07906f36c688ccacde30e3dc50123e8f.tar.xz
yuzu-d2cfe25b07906f36c688ccacde30e3dc50123e8f.tar.zst
yuzu-d2cfe25b07906f36c688ccacde30e3dc50123e8f.zip
Diffstat (limited to 'src/common/x64')
-rw-r--r--src/common/x64/cpu_detect.cpp1
-rw-r--r--src/common/x64/cpu_detect.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/common/x64/cpu_detect.cpp b/src/common/x64/cpu_detect.cpp
index e54383a4a..72ed6e96c 100644
--- a/src/common/x64/cpu_detect.cpp
+++ b/src/common/x64/cpu_detect.cpp
@@ -144,6 +144,7 @@ static CPUCaps Detect() {
caps.bmi2 = Common::Bit<8>(cpu_id[1]);
caps.sha = Common::Bit<29>(cpu_id[1]);
+ caps.waitpkg = Common::Bit<5>(cpu_id[2]);
caps.gfni = Common::Bit<8>(cpu_id[2]);
__cpuidex(cpu_id, 0x00000007, 0x00000001);
diff --git a/src/common/x64/cpu_detect.h b/src/common/x64/cpu_detect.h
index ca8db19d6..8253944d6 100644
--- a/src/common/x64/cpu_detect.h
+++ b/src/common/x64/cpu_detect.h
@@ -67,6 +67,7 @@ struct CPUCaps {
bool pclmulqdq : 1;
bool popcnt : 1;
bool sha : 1;
+ bool waitpkg : 1;
};
/**