diff options
| author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-03-21 21:13:03 -0400 |
|---|---|---|
| committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-03-27 17:45:22 -0400 |
| commit | 95adf299e4a9706c657627735f6e40fb3dafd729 (patch) | |
| tree | e99fb164079a31fd1f619d0afedf8c7f07d9fc8a /src/common/x64/cpu_detect.cpp | |
| parent | 59c91dfd4a7e3b73544c466c3b7fdea754abd5a4 (diff) | |
x64: cpu_detect: Add detection of waitpkg instructions
waitpkg introduces 3 instructions, UMONITOR, UMWAIT and TPAUSE.
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 e54383a4a8..72ed6e96c9 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); |
