aboutsummaryrefslogtreecommitdiff
path: root/src/protected_mode/evex.rs
blob: 2ef91b651a367ec5465d11d38caada8944c1e1b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// use crate::long_mode::{OperandSpec, DecodeError, RegSpec, RegisterBank, Instruction, Opcode};
use crate::protected_mode::{Arch, DecodeError, RegSpec, RegisterBank, Instruction, Opcode};
use crate::protected_mode::{read_modrm, read_E_vex, read_imm_unsigned};
use yaxpeax_arch::Reader;

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.disp as i32) * (inst.mem_size as i32)) as u32;
}

include!("../shared/generated_evex.in");
include!("../shared/evex.in");