mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-25 23:01:39 +01:00
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:
5 files changed
+42
-6
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user