From 3616e97a18d5ab00207e8e48e371ce2344e879e8 Mon Sep 17 00:00:00 2001 From: iximeow Date: Tue, 29 Jun 2021 00:26:11 -0700 Subject: fix several lingering mem_size discrepancies --- src/shared/evex.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared') diff --git a/src/shared/evex.in b/src/shared/evex.in index e7e0aa1..17c9bb7 100644 --- a/src/shared/evex.in +++ b/src/shared/evex.in @@ -53,7 +53,7 @@ pub(crate) fn read_evex>(bytes: &mut T, instruction: &mut I let table_idx = ((m << 2) | p) as usize; let table = generated::TABLES[table_idx]; if table as *const [_] == &generated::DUMMY[..] as *const [_] { - panic!("no table for m={}, p={}", m, p); + return Err(DecodeError::InvalidOpcode); } let mut index_lower = 0; if instruction.prefixes.evex_unchecked().vex().l() { -- cgit v1.1