Home
last modified time | relevance | path

Searched refs:modrm (Results 1 – 6 of 6) sorted by relevance

/tools/arch/x86/lib/
Dinsn.c335 struct insn_field *modrm = &insn->modrm; in insn_get_modrm() local
339 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() local
389 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() local
420 if (!insn->modrm.got) { in insn_get_sib()
426 if (insn->modrm.nbytes) { in insn_get_sib()
[all …]
Dinat.c45 insn_attr_t inat_get_group_attribute(insn_byte_t modrm, int lpfx_id, in inat_get_group_attribute() argument
56 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()
/tools/arch/x86/include/asm/
Dinsn.h80 struct insn_field modrm; member
107 #define X86_MODRM_MOD(modrm) (((modrm) & 0xc0) >> 6) argument
108 #define X86_MODRM_REG(modrm) (((modrm) & 0x38) >> 3) argument
109 #define X86_MODRM_RM(modrm) ((modrm) & 0x07) argument
232 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()
Dinat.h102 extern insn_attr_t inat_get_group_attribute(insn_byte_t modrm,
/tools/objtool/arch/x86/
Ddecode.c115 modrm = 0, modrm_mod = 0, modrm_rm = 0, modrm_reg = 0, in arch_decode_instruction() local
149 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()
/tools/perf/util/intel-pt-decoder/
Dintel-pt-insn-decoder.c48 switch (insn->modrm.bytes[0]) { in intel_pt_insn_decoder()
121 ext = (insn->modrm.bytes[0] >> 3) & 0x7; in intel_pt_insn_decoder()