x64: cpu_detect: Add detection of waitpkg instructions

waitpkg introduces 3 instructions, UMONITOR, UMWAIT and TPAUSE.
This commit is contained in:
Morph 2023-03-21 21:13:03 -04:00
parent 59c91dfd4a
commit 95adf299e4
2 changed files with 2 additions and 0 deletions

View file

@ -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);