From 34d07e35bd0785f95f510876e02f33bb294f9219 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 11 Apr 2020 23:35:53 +0200 Subject: [PATCH] LibX86: Decode RDRAND instruction I was looking at Kernel::get_good_random_bytes() and wondering where the RDRAND instruction was. :^) --- Libraries/LibX86/Instruction.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);