aboutsummaryrefslogtreecommitdiff
path: root/src/protected_mode/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/protected_mode/mod.rs')
-rw-r--r--src/protected_mode/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protected_mode/mod.rs b/src/protected_mode/mod.rs
index 482a921..2403a8a 100644
--- a/src/protected_mode/mod.rs
+++ b/src/protected_mode/mod.rs
@@ -6662,7 +6662,7 @@ fn read_with_annotations<
self.read_operands(decoder, words, instruction, record, sink)?;
if self.check_lock {
- if (instruction.opcode as u32) < 0x1000 || !instruction.operands[0].is_memory() {
+ if !instruction.opcode.can_lock() || !instruction.operands[0].is_memory() {
return Err(DecodeError::InvalidPrefixes);
}
}