mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 07:00:43 +02:00
WOW64: Update for GDT
This commit is contained in:
1 file changed
+2
-1
@@ -188,7 +188,8 @@ void LoadStateFromWowContext(FEXCore::Core::InternalThreadState* Thread, uint64_
|
||||
State.gs_idx = Context->SegGs & 0xffff;
|
||||
|
||||
// The TEB is the only populated GDT entry by default
|
||||
State.gdt[(Context->SegFs & 0xffff) >> 3].base = WowTEB;
|
||||
State.SetGDTBase(&State.gdt[(Context->SegFs & 0xffff) >> 3], WowTEB);
|
||||
State.SetGDTLimit(&State.gdt[(Context->SegFs & 0xffff) >> 3], 0xF'FFFFU);
|
||||
State.fs_cached = WowTEB;
|
||||
State.es_cached = 0;
|
||||
State.cs_cached = 0;
|
||||
|
||||
Reference in new issue
Block a user