x64: Add detection of monitorx instructions

monitorx introduces 2 instructions: MONITORX and MWAITX.
This commit is contained in:
Morph 2023-06-28 01:07:10 -04:00
parent c64b5c642f
commit 841a3559a5
3 changed files with 3 additions and 0 deletions
src/common/x64

View file

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