summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index aa9d5c7..67272b0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1601,7 +1601,8 @@ fn decode_inst<
0b00 => SizeCode::B,
0b01 => SizeCode::W,
0b10 => SizeCode::L,
- _ => { unreachable!("checked for ld!=11 earlier"); }
+ 0b11 => { return Err(StandardDecodeError::InvalidOperand) },
+ _ => { unreachable!("sz is only two bits"); }
};
let op = handler.decode_mem_op(rs, ld, sz, words)?;