aboutsummaryrefslogtreecommitdiff
path: root/src/long_mode/mod.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-07-03 15:51:22 -0700
committeriximeow <me@iximeow.net>2021-07-03 15:51:22 -0700
commit7e154da8e2bd7b8892bdefe2f71c111c2135b0a3 (patch)
treeb1b945803f37c48a7dd7e5a23e0656ee1d9c83b9 /src/long_mode/mod.rs
parent582c4e44579d4bbb9dcec9d12c23c8b774db3cfb (diff)
be more strict about denying invalid operands
Diffstat (limited to 'src/long_mode/mod.rs')
-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 f8704c0..f2b2b57 100644
--- a/src/long_mode/mod.rs
+++ b/src/long_mode/mod.rs
@@ -6943,7 +6943,7 @@ fn read_0f38_opcode(opcode: u8, prefixes: &mut Prefixes) -> OpcodeRecord {
fn read_0f3a_opcode(opcode: u8, prefixes: &mut Prefixes) -> OpcodeRecord {
if prefixes.rep() {
- if prefixes.operand_size() || prefixes.repnz() {
+ if prefixes != &Prefixes::new(0x10) {
return OpcodeRecord(Interpretation::Instruction(Opcode::Invalid), OperandCode::Nothing);
}
return match opcode {