Searched refs:modrm (Results 1 – 12 of 12) sorted by relevance
/arch/x86/include/asm/ |
D | insn.h | 48 struct insn_field modrm; member 74 #define X86_MODRM_MOD(modrm) (((modrm) & 0xc0) >> 6) argument 75 #define X86_MODRM_REG(modrm) (((modrm) & 0x38) >> 3) argument 76 #define X86_MODRM_RM(modrm) ((modrm) & 0x07) argument 139 return insn->opcode.got && insn->modrm.got && insn->sib.got && in insn_complete() 190 return insn_offset_modrm(insn) + insn->modrm.nbytes; in insn_offset_sib() 231 X86_MODRM_REG(insn->modrm.bytes[0]) == 2); in insn_masking_exception()
|
D | inat.h | 104 extern insn_attr_t inat_get_group_attribute(insn_byte_t modrm,
|
D | kvm_emulate.h | 335 u8 modrm; member
|
/arch/x86/lib/ |
D | insn.c | 256 struct insn_field *modrm = &insn->modrm; in insn_get_modrm() local 258 if (modrm->got) in insn_get_modrm() 265 modrm->value = mod; in insn_get_modrm() 266 modrm->nbytes = 1; in insn_get_modrm() 278 modrm->got = 1; in insn_get_modrm() 294 struct insn_field *modrm = &insn->modrm; in insn_rip_relative() local 298 if (!modrm->got) in insn_rip_relative() 304 return (modrm->nbytes && (modrm->value & 0xc7) == 0x5); in insn_rip_relative() 316 insn_byte_t modrm; in insn_get_sib() local 320 if (!insn->modrm.got) in insn_get_sib() [all …]
|
D | inat.c | 59 insn_attr_t inat_get_group_attribute(insn_byte_t modrm, int lpfx_id, in inat_get_group_attribute() argument 70 if (inat_has_variant(table[X86_MODRM_REG(modrm)]) && lpfx_id) { in inat_get_group_attribute() 75 return table[X86_MODRM_REG(modrm)] | in inat_get_group_attribute()
|
/arch/x86/tools/ |
D | test_get_len.c | 77 dump_field(fp, "modrm", "\t", &insn->modrm); in dump_insn()
|
D | insn_sanity.c | 87 dump_field(fp, "modrm", "\t", &insn->modrm); in dump_insn()
|
/arch/x86/mm/ |
D | mpx.c | 103 regno = X86_MODRM_RM(insn->modrm.value); in get_reg_offset() 148 if (X86_MODRM_MOD(insn->modrm.value) == 3) { in mpx_get_addr_ref() 256 bndregno = X86_MODRM_REG(insn.modrm.value); in mpx_generate_siginfo()
|
/arch/x86/kernel/kprobes/ |
D | opt.c | 198 (X86_MODRM_REG(insn->modrm.value) & 6) == 4) || /* Jump */ in __insn_is_indirect_jump()
|
/arch/x86/kvm/ |
D | emulate.c | 1222 ctxt->modrm_mod = (ctxt->modrm & 0xc0) >> 6; in decode_modrm() 1223 ctxt->modrm_reg |= (ctxt->modrm & 0x38) >> 3; in decode_modrm() 1224 ctxt->modrm_rm = base_reg | (ctxt->modrm & 0x07); in decode_modrm() 5140 ctxt->modrm = insn_fetch(u8, ctxt); in x86_decode_insn() 5144 (mode == X86EMUL_MODE_PROT64 || (ctxt->modrm & 0xc0) == 0xc0)) { in x86_decode_insn() 5151 goffset = (ctxt->modrm >> 3) & 7; in x86_decode_insn() 5155 goffset = (ctxt->modrm >> 3) & 7; in x86_decode_insn() 5156 if ((ctxt->modrm >> 6) == 3) in x86_decode_insn() 5162 goffset = ctxt->modrm & 7; in x86_decode_insn() 5177 if (ctxt->modrm > 0xbf) { in x86_decode_insn() [all …]
|
/arch/x86/kernel/ |
D | uprobes.c | 57 #define MODRM_REG(insn) X86_MODRM_REG((insn)->modrm.value)
|
/arch/x86/kernel/cpu/ |
D | perf_event_intel_lbr.c | 772 ext = (insn.modrm.bytes[0] >> 3) & 0x7; in branch_type()
|