Instruction
MWAITX
Waits until a store hits the range that MONITORX set up, or a timeout in EBX expires, at any privilege level.
An AMD extension: Intel processors do not have this instruction.
- Extensions
- Forms
- 1 (1 Legacy)
- Data
- Intel XED v2026.08.23
Forms
| Instruction | Encoding | Requires |
|---|---|---|
MWAITX
MWAITX | NP 0F 01 FB | MONITORX |
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
if ecx & ~3:
fault(GP, 0) # ECX bits 31:2 are reserved
pass # rests, in the C-state EAX[7:4] + 1
# asks for, until a store from
# another processor hits the range
# of MONITORX or an event comes
# ECX[0]: an interrupt ends it even with IF clear; ECX[1]: so does
# EBX ticks of the TSC's clock, if EBX is not 0. Any privilege level;
# it changes no more than NOP doesNot run on a processor: the Zen 5 guest that ran the probe does not report MONITORX in CPUID.
Operands
| Operand | Kind | Action |
|---|---|---|
MWAITX | ||
EAX | implicit | read, write |
ECX | implicit | read |
Flags
None: XED records no flag that the forms test or change.
CPUID and processors
Each form belongs to an XED ISA set. A form can be used when the processor reports every CPUID bit of one of its ISA set's alternatives.
More MONITORX instructions
Sources
- Intel XED v2026.08.23 (commit
0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model. - The CPU data of x86-64.net: Zen 3 to Zen 6, from GCC’s
-marchfeature sets and AMD’s Processor Programming References, which the page of each processor cites. - AMD64 Architecture Programmer's Manual, Volume 3: General-Purpose and System Instructions (24594, rev. 3.36, March 2024), Wayback Machine copy of AMD's PDF
The tables are derived from Intel XED, Copyright Intel Corporation, licensed under the Apache License 2.0; x86-64.net converted and reformatted them. The text is our own.