RDPID

Read Processor ID

stableVMJITAOTinstruction

Encodings

OpcodeInstructionOp/En64-bitCompat/LegacyDescription
F3 0F C7 /7RDPID r32RNot encodableValidRead IA32_TSC_AUX into r32.
F3 0F C7 /7RDPID r64 Op/En Operand 1 R ModRM:r/m (w)RValidNot encodableRead IA32_TSC_AUX into r64. Instruction Operand E ncoding1 Operand 2 Operand 3 Operand 4 N/A N/A N/A

Operand encoding

Each mode is a value of the Op/En column above. It says which field of the encoded instruction carries each operand, in the order they are written, and whether the instruction reads it, writes it or both.

R

  1. modrm.rm escrituraModRM byte, r/m field (bits 2-0); with the SIB byte and the displacement when the mod field asks for them

Measured cost

Loading measurements from arch-data...

Description

Reads the value of the IA32_TSC_AUX MSR (address C0000103H) into the destination register. The value of CS.D and operand-size prefixes (66H and REX.W) do not affect the behavior of the RDPID instruction.

Operation

DEST := IA32_TSC_AUX

Flags affected

None.

Exceptions

Protected mode
#UDIf the LOCK prefix is used. If CPUID.07H.00H:ECX.RDPID[22] = 0.
Real address mode
Same exceptions as in protected mode.
Virtual-8086 mode
Same exceptions as in protected mode.
Compatibility mode
Same exceptions as in protected mode.
64-bit mode
Same exceptions as in protected mode.

Sources