Skip to content

Commit b6472c2

Browse files
committed
UserspaceEmulator: Add SoftCPU getters for FS and GS
1 parent fba91a4 commit b6472c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Userland/DevTools/UserspaceEmulator/SoftCPU.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ class SoftCPU final
381381
u16 ds() const { return m_segment[(int)X86::SegmentRegister::DS]; }
382382
u16 es() const { return m_segment[(int)X86::SegmentRegister::ES]; }
383383
u16 ss() const { return m_segment[(int)X86::SegmentRegister::SS]; }
384+
u16 fs() const { return m_segment[(int)X86::SegmentRegister::FS]; }
385+
u16 gs() const { return m_segment[(int)X86::SegmentRegister::GS]; }
384386

385387
ValueWithShadow<u8> read_memory8(X86::LogicalAddress);
386388
ValueWithShadow<u16> read_memory16(X86::LogicalAddress);

0 commit comments

Comments
 (0)