mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-09 19:00:20 +02:00
Merge pull request #4719 from Sonicadvance1/runtime_mode_switch_take2
Runtime mode switch take 2
This commit is contained in:
62 files changed
+18020
-17889
No files matched your search
@@ -189,7 +189,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