diff options
author | Andreas Kling <kling@serenityos.org> | 2022-12-06 17:22:44 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-07 13:18:48 +0100 |
commit | b6472c250c2392daa36bcfb36edff7b6f21b7a78 (patch) | |
tree | df33c62df6d36ff717f38c5d28802fdce9481efa /Userland/DevTools | |
parent | fba91a43071b486e8eab3c1cd31d910332b5cf63 (diff) | |
download | serenity-b6472c250c2392daa36bcfb36edff7b6f21b7a78.zip |
UserspaceEmulator: Add SoftCPU getters for FS and GS
Diffstat (limited to 'Userland/DevTools')
-rw-r--r-- | Userland/DevTools/UserspaceEmulator/SoftCPU.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/DevTools/UserspaceEmulator/SoftCPU.h b/Userland/DevTools/UserspaceEmulator/SoftCPU.h index 34fb5729be..7975343aa9 100644 --- a/Userland/DevTools/UserspaceEmulator/SoftCPU.h +++ b/Userland/DevTools/UserspaceEmulator/SoftCPU.h @@ -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); |