aboutsummaryrefslogtreecommitdiff
path: root/src/common/x64/cpu_detect.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-06-28 01:07:10 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-06-28 01:36:06 -0400
commit841a3559a5e71cbdb0647b8296b89712b535a09e (patch)
treeb4652d7ce7635a1b7080fc57abd42c9d81f8f2e3 /src/common/x64/cpu_detect.cpp
parentc64b5c642f1e7f74e49e19e0a4d6c7c7627c2df0 (diff)
x64: Add detection of monitorx instructions
monitorx introduces 2 instructions: MONITORX and MWAITX.
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) {