aboutsummaryrefslogtreecommitdiff
path: root/src/protected_mode/evex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/protected_mode/evex.rs')
-rw-r--r--src/protected_mode/evex.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/protected_mode/evex.rs b/src/protected_mode/evex.rs
new file mode 100644
index 0000000..9d2a093
--- /dev/null
+++ b/src/protected_mode/evex.rs
@@ -0,0 +1,17 @@
+// use crate::long_mode::{OperandSpec, DecodeError, RegSpec, RegisterBank, Instruction, Opcode};
+use crate::protected_mode::{DecodeError, RegSpec, RegisterBank, Instruction, Opcode};
+use crate::protected_mode::{read_modrm, read_E_vex, read_imm_unsigned};
+
+const DEFAULT_EVEX_REGISTER_SIZE: RegisterBank = RegisterBank::D;
+const DEFAULT_EVEX_REGISTER_WIDTH: u8 = 4;
+
+fn isa_has_qwords() -> bool {
+ false
+}
+
+fn apply_disp_scale(inst: &mut Instruction) {
+ inst.disp *= inst.mem_size as u32;
+}
+
+include!("../shared/generated_evex.in");
+include!("../shared/evex.in");