From 618763238fc4ac5dd0ed1552238595252cc3124b Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 29 Jan 2023 12:19:59 -0800 Subject: make base opcode map translation a bit simpler now the bits line up with enum variants directly (hopefully..) --- src/long_mode/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index 1d7148c..052313a 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -1073,7 +1073,6 @@ const XSAVE: [Opcode; 10] = [ #[non_exhaustive] #[repr(u32)] pub enum Opcode { - Invalid, ADD, OR, ADC, @@ -1082,6 +1081,7 @@ pub enum Opcode { XOR, SUB, CMP, + Invalid, XADD, BT, BTS, -- cgit v1.1