aboutsummaryrefslogtreecommitdiff
path: root/src/common/x64/cpu_detect.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-06-29 10:01:26 -0400
committerGitHub <noreply@github.com>2023-06-29 10:01:26 -0400
commitfe61fc5f333f53476f787165ac0301fdfe786bd7 (patch)
tree3ea86827d33b20a4083964feca7d7b532685efb9 /src/common/x64/cpu_detect.cpp
parente82922f7235d33bde96e2494d418367cef7db865 (diff)
parent037e683b94cfec4533118c9e05f98f6499dc973a (diff)
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 c998b1197e..780120a5b2 100644
--- a/src/common/x64/cpu_detect.cpp
+++ b/src/common/x64/cpu_detect.cpp
@@ -168,6 +168,7 @@ static CPUCaps Detect() {
__cpuid(cpu_id, 0x80000001);
caps.lzcnt = Common::Bit<5>(cpu_id[2]);
caps.fma4 = Common::Bit<16>(cpu_id[2]);
+ caps.monitorx = Common::Bit<29>(cpu_id[2]);
}
if (max_ex_fn >= 0x80000007) {