diff options
author | iximeow <me@iximeow.net> | 2024-06-23 10:50:00 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2024-06-23 10:50:00 -0700 |
commit | e6928294fd9eec219430a610ffe0ffb9d2cd7d23 (patch) | |
tree | ab5e20507696dcb3a3f2a35cc6eb4dfc4470d041 | |
parent | df67ba2b415d9157e4b56723c0b92695a4124ea0 (diff) |
actually use new can_lock in 32b and 16b modes
-rw-r--r-- | src/protected_mode/mod.rs | 2 | ||||
-rw-r--r-- | src/real_mode/mod.rs | 2 |
2 files changed, 2 insertions, 2 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); } } diff --git a/src/real_mode/mod.rs b/src/real_mode/mod.rs index 87f2ff3..2a3723f 100644 --- a/src/real_mode/mod.rs +++ b/src/real_mode/mod.rs @@ -6663,7 +6663,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); } } |