Mingw: Update for GDT

This commit is contained in:
Ryan Houdek committed 2023-12-21 01:54:19 -08:00
1 parent 9e5d7aa5fe
commit ae2f98e017
1 file changed
+2 -1
+2 -1
View File
@@ -144,7 +144,8 @@ namespace Context {
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;