Home
last modified time | relevance | path

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

/tools/arch/x86/include/asm/
Dinsn.h35 struct insn_field modrm; member
61 #define X86_MODRM_MOD(modrm) (((modrm) & 0xc0) >> 6) argument
62 #define X86_MODRM_REG(modrm) (((modrm) & 0x38) >> 3) argument
63 #define X86_MODRM_RM(modrm) ((modrm) & 0x07) argument
134 return insn->opcode.got && insn->modrm.got && insn->sib.got && in insn_complete()
187 return insn_offset_modrm(insn) + insn->modrm.nbytes; in insn_offset_sib()
213 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/arch/x86/lib/
Dinsn.c255 struct insn_field *modrm = &insn->modrm; in insn_get_modrm() local
257 if (modrm->got) in insn_get_modrm()
264 modrm->value = mod; in insn_get_modrm()
265 modrm->nbytes = 1; in insn_get_modrm()
277 modrm->got = 1; in insn_get_modrm()
293 struct insn_field *modrm = &insn->modrm; in insn_rip_relative() local
297 if (!modrm->got) in insn_rip_relative()
303 return (modrm->nbytes && (modrm->value & 0xc7) == 0x5); in insn_rip_relative()
315 insn_byte_t modrm; in insn_get_sib() local
319 if (!insn->modrm.got) 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/objtool/arch/x86/
Ddecode.c77 rex_x = 0, modrm = 0, modrm_mod = 0, modrm_rm = 0, in arch_decode_instruction() local
109 if (insn.modrm.nbytes) { in arch_decode_instruction()
110 modrm = insn.modrm.bytes[0]; in arch_decode_instruction()
111 modrm_mod = X86_MODRM_MOD(modrm); in arch_decode_instruction()
112 modrm_reg = X86_MODRM_REG(modrm); in arch_decode_instruction()
113 modrm_rm = X86_MODRM_RM(modrm); in arch_decode_instruction()
171 if (modrm == 0xe4) { in arch_decode_instruction()
182 if (modrm == 0xc4) in arch_decode_instruction()
184 else if (modrm == 0xec) in arch_decode_instruction()
288 } else if (rex == 0x48 && modrm == 0x65) { in arch_decode_instruction()
[all …]
/tools/perf/util/intel-pt-decoder/
Dintel-pt-insn-decoder.c109 ext = (insn->modrm.bytes[0] >> 3) & 0x7; in intel_pt_insn_decoder()