From 0e91fd681efe51cfd2ea5038b4e66316ac8b1b88 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 8 Jul 2023 11:05:09 -0700 Subject: actually reject lock prefixes in vex instructions --- src/long_mode/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/long_mode') diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index 74eb5ce..a84dbd9 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -4688,7 +4688,7 @@ impl Prefixes { * || instruction.prefixes.rep() * || instruction.prefixes.repnz() { */ - (self.bits & 0b1100_1001) > 0 || (self.rex.bits > 0) + (self.bits & 0b1100_0101) > 0 || (self.rex.bits > 0) } #[inline] pub fn vex(&self) -> Option { -- cgit v1.1