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:
parent
fba91a4307
commit
b6472c250c
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue