From fba91a43071b486e8eab3c1cd31d910332b5cf63 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 6 Dec 2022 17:12:29 +0100 Subject: [PATCH] UserspaceEmulator: Initialize the FS segment on startup Set it to 0x23, matching the initial value in a native process. --- Userland/DevTools/UserspaceEmulator/SoftCPU.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/DevTools/UserspaceEmulator/SoftCPU.cpp b/Userland/DevTools/UserspaceEmulator/SoftCPU.cpp index feb61031b6..acad23e837 100644 --- a/Userland/DevTools/UserspaceEmulator/SoftCPU.cpp +++ b/Userland/DevTools/UserspaceEmulator/SoftCPU.cpp @@ -117,6 +117,7 @@ SoftCPU::SoftCPU(Emulator& emulator) m_segment[(int)X86::SegmentRegister::DS] = 0x23; m_segment[(int)X86::SegmentRegister::ES] = 0x23; m_segment[(int)X86::SegmentRegister::SS] = 0x23; + m_segment[(int)X86::SegmentRegister::FS] = 0x23; m_segment[(int)X86::SegmentRegister::GS] = 0x2b; }