aboutsummaryrefslogtreecommitdiff
path: root/src/long_mode/evex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/long_mode/evex.rs')
-rw-r--r--src/long_mode/evex.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/long_mode/evex.rs b/src/long_mode/evex.rs
index adfd014..483747b 100644
--- a/src/long_mode/evex.rs
+++ b/src/long_mode/evex.rs
@@ -2,5 +2,16 @@
use crate::long_mode::{DecodeError, RegSpec, RegisterBank, Instruction, Opcode};
use crate::long_mode::{read_modrm, read_E_vex, read_imm_unsigned};
+const DEFAULT_EVEX_REGISTER_SIZE: RegisterBank = RegisterBank::Q;
+const DEFAULT_EVEX_REGISTER_WIDTH: u8 = 8;
+
+fn isa_has_qwords() -> bool {
+ true
+}
+
+fn apply_disp_scale(inst: &mut Instruction) {
+ inst.disp *= inst.mem_size as u64;
+}
+
include!("../shared/generated_evex.in");
include!("../shared/evex.in");