Searched refs:modrm (Results 1 – 6 of 6) sorted by relevance
335 struct insn_field *modrm = &insn->modrm; in insn_get_modrm() local339 if (modrm->got) in insn_get_modrm()350 insn_field_set(modrm, mod, 1); in insn_get_modrm()366 modrm->got = 1; in insn_get_modrm()383 struct insn_field *modrm = &insn->modrm; in insn_rip_relative() local389 if (!modrm->got) { in insn_rip_relative()398 return (modrm->nbytes && (modrm->bytes[0] & 0xc7) == 0x5); in insn_rip_relative()414 insn_byte_t modrm; in insn_get_sib() local420 if (!insn->modrm.got) { in insn_get_sib()426 if (insn->modrm.nbytes) { in insn_get_sib()[all …]
45 insn_attr_t inat_get_group_attribute(insn_byte_t modrm, int lpfx_id, in inat_get_group_attribute() argument56 if (inat_has_variant(table[X86_MODRM_REG(modrm)]) && lpfx_id) { in inat_get_group_attribute()61 return table[X86_MODRM_REG(modrm)] | in inat_get_group_attribute()
80 struct insn_field modrm; member107 #define X86_MODRM_MOD(modrm) (((modrm) & 0xc0) >> 6) argument108 #define X86_MODRM_REG(modrm) (((modrm) & 0x38) >> 3) argument109 #define X86_MODRM_RM(modrm) ((modrm) & 0x07) argument232 return insn_offset_modrm(insn) + insn->modrm.nbytes; in insn_offset_sib()273 X86_MODRM_REG(insn->modrm.bytes[0]) == 2); in insn_masking_exception()
102 extern insn_attr_t inat_get_group_attribute(insn_byte_t modrm,
115 modrm = 0, modrm_mod = 0, modrm_rm = 0, modrm_reg = 0, in arch_decode_instruction() local149 if (insn.modrm.nbytes) { in arch_decode_instruction()150 modrm = insn.modrm.bytes[0]; in arch_decode_instruction()151 modrm_mod = X86_MODRM_MOD(modrm); in arch_decode_instruction()152 modrm_reg = X86_MODRM_REG(modrm) + 8*rex_r; in arch_decode_instruction()153 modrm_rm = X86_MODRM_RM(modrm) + 8*rex_b; in arch_decode_instruction()467 if (modrm == 0xca) in arch_decode_instruction()469 else if (modrm == 0xcb) in arch_decode_instruction()
48 switch (insn->modrm.bytes[0]) { in intel_pt_insn_decoder()121 ext = (insn->modrm.bytes[0] >> 3) & 0x7; in intel_pt_insn_decoder()