diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-06-28 01:07:10 -0400 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-06-28 01:36:06 -0400 |
commit | 4303ed614d0d758d9e9bcdef8afee3274769d2fb (patch) | |
tree | b4652d7ce7635a1b7080fc57abd42c9d81f8f2e3 /src/common/x64/cpu_detect.cpp | |
parent | 0fe44071f8fc8c49fcd885e39f2e914846450733 (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.cpp | 1 |
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() { __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) { |