Instruction
LIDT
Loads the base and limit of the interrupt descriptor table into IDTR from memory; ring 0 only.
- Extensions
- Forms
- 2 (2 Legacy)
- Data
- Intel XED v2026.08.23
LIDT loads IDTR, the register that tells the processor where the interrupt descriptor table lies, from a pseudo-descriptor in memory: the 16-bit limit, then the base, 8 bytes of it in 64-bit mode, so 10 in all. It is the twin of LGDT, whose page covers what the two share: the operand sizes outside 64-bit mode, with the 24-bit base of a 16-bit operand size, and #GP(0) for a non-canonical base. SIDT stores the register.
The table it points to
The IDT holds one gate per vector, 0 to 255, and the processor finds a vector’s gate at base + vector times the gate size. In 64-bit mode every gate is 16 bytes, to hold a 64-bit handler address, so a table of all 256 vectors has the limit 4095 (FFFH); in protected mode gates are 8 bytes. The limit is inclusive, and a table may stop short: a vector whose gate lies past the limit raises #GP when it arrives. Unlike the GDT, entry 0 is used: it is the gate of #DE, the divide error.
When it runs
An operating system runs LIDT during start-up, after it has built the table, and may run it again to move to another one. After reset IDTR holds base 0 and limit FFFFH, which covers real mode’s table of 4-byte vectors at address 0. LIDT reads only its operand: as with LGDT, a bad gate shows up only when its vector is delivered. With Intel’s FRED enabled, events no longer go through the IDT at all.
Privilege and order
LIDT runs only at CPL 0; elsewhere it raises #GP(0). At CPL 3, Zen 5 raised #GP in both recorded cases, leaving memory and RFLAGS alone. LIDT m16&32 does not exist in 64-bit mode, where the probe runs, so it was not run. Both vendors list LIDT as serializing, and under VMX a hypervisor can make it exit with descriptor-table exiting. Neither GCC 14 nor Clang 23 has an intrinsic for it. AMD’s Zen 5 guide lists LIDT as microcoded.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
LIDT m16&64 64-bit mode only
LIDT_MEMs64 | 0F 01 /3 | Base instruction set |
LIDT m16&32 not in 64-bit mode
LIDT_MEMs | 0F 01 /3 | Base instruction set |
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
if CPL > 0:
fault(GP, 0)
v = src.read() # 10 bytes: the limit, then the base
if not canonical(v >> 16):
fault(GP, 0)
idtr = v # the limit in bits 15:0, the base in
# bits 79:16, as SIDT stores them
Run on AMD Zen 5 (EPYC 9645): 2 cases. Every one raised an exception, at CPL 3, where the probe runs.
if CPL > 0:
fault(GP, 0)
v = src.read() # 6 bytes: the limit, then the base
b = v >> 16 # 32 bits; with a 66 prefix the low
if OSIZE == 16: # 24, the top byte unused
b &= 0xFFFFFF
idtr = b << 16 | v & 0xFFFFNot run on a processor: LIDT m16&32 does not exist in 64-bit mode, where the probe runs.
Operands
| Operand | Kind | Action |
|---|---|---|
LIDT m16&64 64-bit mode only LIDT m16&32 not in 64-bit mode | ||
m16&64, m16&32 | explicit | read |
IDTR | implicit | write |
Flags
None: XED records no flag that the forms test or change.
Attributes
What else XED records about the forms. How to read.
- All forms
- privileged: CPL 0 only; may abort a TSX transaction
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.
| ISA set | CPUID | Processors |
|---|---|---|
I286REAL | No CPUID bit: part of the base instruction set. | Every x86-64 processor in XED’s model and Zen 3 to Zen 6 |
More System 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. - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2A, page 3-553 (LGDT/
LIDT) - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 3 (325384-093, September 2026)
- AMD64 Architecture Programmer's Manual, Volume 2: System Programming (24593, rev. 3.42, March 2024), Wayback Machine copy of AMD's PDF
- 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
- Software Optimization Guide for the AMD Zen5 Microarchitecture (58455, rev. 1.00, August 2024), Wayback Machine copy of AMD's ZIP
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.