1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

LibX86: Tolerate invalid segment register indices when disassembling

While #6 and #7 are not valid segment register, they can still be
encoded in otherwise-valid instructions, so let's tolerate it.
This commit is contained in:
Andreas Kling 2020-04-11 14:00:20 +02:00
parent d7d7a32d47
commit 1924112d7d
2 changed files with 6 additions and 0 deletions

View file

@ -88,6 +88,8 @@ enum class SegmentRegister {
DS,
FS,
GS,
SegR6,
SegR7,
None = 0xFF,
};