diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-11 23:35:53 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-11 23:37:00 +0200 |
commit | 34d07e35bd0785f95f510876e02f33bb294f9219 (patch) | |
tree | 281f611c9690e74f77a133529fea453ba88a2e46 /Libraries/LibX86/Instruction.cpp | |
parent | dccfff8c19003d3539f238fdd2f112bf5b32c242 (diff) | |
download | serenity-34d07e35bd0785f95f510876e02f33bb294f9219.zip |
LibX86: Decode RDRAND instruction
I was looking at Kernel::get_good_random_bytes() and wondering where
the RDRAND instruction was. :^)
Diffstat (limited to 'Libraries/LibX86/Instruction.cpp')
-rw-r--r-- | Libraries/LibX86/Instruction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibX86/Instruction.cpp b/Libraries/LibX86/Instruction.cpp index eb5eff8d4d..62af881c75 100644 --- a/Libraries/LibX86/Instruction.cpp +++ b/Libraries/LibX86/Instruction.cpp @@ -734,6 +734,8 @@ void build_opcode_tables_if_needed() build0FSlash(0xBA, 6, "BTR", OP_RM16_imm8, OP_RM32_imm8, LockPrefixAllowed); build0FSlash(0xBA, 7, "BTC", OP_RM16_imm8, OP_RM32_imm8, LockPrefixAllowed); + build0FSlash(0xC7, 6, "RDRAND", OP_RM16, OP_RM32); + build0F(0x02, "LAR", OP_reg16_RM16, OP_reg32_RM32); build0F(0x03, "LSL", OP_reg16_RM16, OP_reg32_RM32); build0F(0x06, "CLTS", OP); |