1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:57:44 +00:00

UserspaceEmulator: Add SoftCPU getters for FS and GS

This commit is contained in:
Andreas Kling 2022-12-06 17:22:44 +01:00
parent fba91a4307
commit b6472c250c

View file

@ -381,6 +381,8 @@ public:
u16 ds() const { return m_segment[(int)X86::SegmentRegister::DS]; }
u16 es() const { return m_segment[(int)X86::SegmentRegister::ES]; }
u16 ss() const { return m_segment[(int)X86::SegmentRegister::SS]; }
u16 fs() const { return m_segment[(int)X86::SegmentRegister::FS]; }
u16 gs() const { return m_segment[(int)X86::SegmentRegister::GS]; }
ValueWithShadow<u8> read_memory8(X86::LogicalAddress);
ValueWithShadow<u16> read_memory16(X86::LogicalAddress);