UserspaceEmulator: Add SoftCPU getters for FS and GS

This commit is contained in:
Andreas Kling 2022-12-06 17:22:44 +01:00
commit b6472c250c
Notes: sideshowbarker 2024-07-17 03:40:33 +09:00

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);