Arm64EC: Update for GDT

This commit is contained in:
Ryan Houdek committed 2025-07-29 12:02:38 -07:00
1 parent 91598d5178
commit 2a8f4dbbb6
1 file changed
+2 -1
+2 -1
View File
@@ -378,7 +378,8 @@ static void LoadStateFromECContext(FEXCore::Core::InternalThreadState* Thread, C
// The TEB is the only populated GDT entry by default
const auto TEB = reinterpret_cast<uint64_t>(NtCurrentTeb());
State.gdt[(Context.SegGs & 0xffff) >> 3].base = TEB;
State.SetGDTBase(&State.gdt[(Context.SegGs & 0xffff) >> 3], TEB);
State.SetGDTLimit(&State.gdt[(Context.SegGs & 0xffff) >> 3], 0xF'FFFFU);
State.gs_cached = TEB;
State.fs_cached = 0;
State.es_cached = 0;