intelxed / xed

The X86 Encoder Decoder (XED), is a software library for encoding and decoding X86 (IA32 and Intel64) instructions
https://intelxed.github.io/
Apache License 2.0
1.38k stars 146 forks source link

LGDT should have CPL=0 #312

Closed sehftz closed 3 months ago

sehftz commented 6 months ago

Currently in this file the LGDT instruction has CPL=3, however in Intel's SDM Volume 2 Chapter 3.3 "LGDT/LIDT—Load Global/Interrupt Descriptor Table Register", it specifies the exception "#GP(0) If the current privilege level is not 0.".

marjevan commented 6 months ago

Thanks for your report. A fix will be available with the upcoming external release.

marjevan commented 3 months ago

Solved this in https://github.com/intelxed/xed/commit/6d87b5481aa53b5ab1fc2b5a5622759c46746bf9