summaryrefslogtreecommitdiff
path: root/src/common/x64/cpu_detect.cpp
diff options
context:
space:
mode:
authorGravatar liamwhite2023-06-29 10:01:26 -0400
committerGravatar GitHub2023-06-29 10:01:26 -0400
commit5e70db0d433054e18ab7432cafd2a87d68573642 (patch)
tree3ea86827d33b20a4083964feca7d7b532685efb9 /src/common/x64/cpu_detect.cpp
parentMerge pull request #10937 from german77/ring (diff)
parentx64: cpu_wait: Implement MWAITX for non-MSVC compilers (diff)
downloadyuzu-5e70db0d433054e18ab7432cafd2a87d68573642.tar.gz
yuzu-5e70db0d433054e18ab7432cafd2a87d68573642.tar.xz
yuzu-5e70db0d433054e18ab7432cafd2a87d68573642.zip
Merge pull request #10935 from Morph1984/mwaitx
x64: Make use of monitorx instructions for power efficient sleeps (AMD)
Diffstat (limited to 'src/common/x64/cpu_detect.cpp')
-rw-r--r--src/common/x64/cpu_detect.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/x64/cpu_detect.cpp b/src/common/x64/cpu_detect.cpp
index c998b1197..780120a5b 100644
--- a/src/common/x64/cpu_detect.cpp
+++ b/src/common/x64/cpu_detect.cpp
@@ -168,6 +168,7 @@ static CPUCaps Detect() {
168 __cpuid(cpu_id, 0x80000001); 168 __cpuid(cpu_id, 0x80000001);
169 caps.lzcnt = Common::Bit<5>(cpu_id[2]); 169 caps.lzcnt = Common::Bit<5>(cpu_id[2]);
170 caps.fma4 = Common::Bit<16>(cpu_id[2]); 170 caps.fma4 = Common::Bit<16>(cpu_id[2]);
171 caps.monitorx = Common::Bit<29>(cpu_id[2]);
171 } 172 }
172 173
173 if (max_ex_fn >= 0x80000007) { 174 if (max_ex_fn >= 0x80000007) {