diff options
author | iximeow <me@iximeow.net> | 2021-06-28 23:39:04 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-06-28 23:39:04 -0700 |
commit | 88c5d0f278f76de93de5a7b9692e4c272cd668e3 (patch) | |
tree | c660fcded270e45e40118e402210414e8fcd629c /src/protected_mode/vex.rs | |
parent | f718fca4dbe146d3abd3aba35751b37e85d64917 (diff) |
clean up protected mode vex-related warnings
Diffstat (limited to 'src/protected_mode/vex.rs')
-rw-r--r-- | src/protected_mode/vex.rs | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/protected_mode/vex.rs b/src/protected_mode/vex.rs index 424c6b6..09379cf 100644 --- a/src/protected_mode/vex.rs +++ b/src/protected_mode/vex.rs @@ -82,10 +82,8 @@ enum VEXOperandCode { G_V_M_ymm, G_ymm_V_ymm_E_xmm_imm8, G_V_xmm_Ev_imm8, - Eq_G_xmm, Ed_G_xmm, G_xmm_Ed, - G_xmm_Eq, G_E_V, G_V_E, G_E_Ib, @@ -475,23 +473,6 @@ fn read_vex_operands<T: Iterator<Item=u8>>(bytes: &mut T, instruction: &mut Inst instruction.imm = read_imm_unsigned(bytes, 1, length)?; Ok(()) }, - VEXOperandCode::G_xmm_Eq => { - if instruction.vex_reg.num != 0 { - instruction.opcode = Opcode::Invalid; - return Err(DecodeError::InvalidOperand); - } - let modrm = read_modrm(bytes, length)?; - instruction.modrm_rrr = - RegSpec::from_parts((modrm >> 3) & 7, RegisterBank::X); - let mem_oper = read_E(bytes, instruction, modrm, 4, length)?; - instruction.operands[0] = OperandSpec::RegRRR; - instruction.operands[1] = mem_oper; - if mem_oper != OperandSpec::RegMMM { - instruction.mem_size = 8; - } - instruction.operand_count = 2; - Ok(()) - } VEXOperandCode::G_xmm_Ed => { if instruction.vex_reg.num != 0 { instruction.opcode = Opcode::Invalid; @@ -509,23 +490,6 @@ fn read_vex_operands<T: Iterator<Item=u8>>(bytes: &mut T, instruction: &mut Inst instruction.operand_count = 2; Ok(()) } - VEXOperandCode::Eq_G_xmm => { - if instruction.vex_reg.num != 0 { - instruction.opcode = Opcode::Invalid; - return Err(DecodeError::InvalidOperand); - } - let modrm = read_modrm(bytes, length)?; - instruction.modrm_rrr = - RegSpec::from_parts((modrm >> 3) & 7, RegisterBank::X); - let mem_oper = read_E(bytes, instruction, modrm, 4, length)?; - instruction.operands[0] = mem_oper; - instruction.operands[1] = OperandSpec::RegRRR; - if mem_oper != OperandSpec::RegMMM { - instruction.mem_size = 4; - } - instruction.operand_count = 2; - Ok(()) - } VEXOperandCode::Ed_G_xmm => { if instruction.vex_reg.num != 0 { instruction.opcode = Opcode::Invalid; |