OpcodeDispatcher: Implement SLDT

Not 100% correct because the Linux kernel has some cheeky false data
return value when an LDT gets installed. But FEX can't really do it
properly today so whatever.
This commit is contained in:
Ryan Houdek committed 2026-10-22 15:29:16 -07:00
1 parent 4e2b509a42
commit 465395dede
5 files changed
+42 -6

No files matched your search

-1
View File
@@ -247,7 +247,6 @@ struct alignas(64) CPUState {
// Follows encoding of the TI bit in segment selector encoding.
constexpr static uint32_t SEGMENT_ARRAY_INDEX_GDT = 0;
constexpr static uint32_t SEGMENT_ARRAY_INDEX_LDT = 1;
Core::CPUState::gdt_segment private_gdt[32] {};
};
static_assert(std::is_trivially_copyable_v<CPUState>, "Needs to be trivial");
static_assert(std::is_standard_layout_v<CPUState>, "This needs to be standard layout");