aboutsummaryrefslogtreecommitdiff
path: root/src/long_mode
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2023-07-08 11:05:09 -0700
committeriximeow <me@iximeow.net>2023-07-08 11:05:09 -0700
commit0e91fd681efe51cfd2ea5038b4e66316ac8b1b88 (patch)
tree6db78454c6cfc24acf27791fbc8ca6cbbdb78580 /src/long_mode
parentb8649428e2b176d283800da5f1fcd3613e9e4abc (diff)
actually reject lock prefixes in vex instructions
Diffstat (limited to 'src/long_mode')
-rw-r--r--src/long_mode/mod.rs2
1 files changed, 1 insertions, 1 deletions
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<PrefixVex> {