Searched refs:modrm (Results 1 – 11 of 11) sorted by relevance
/arch/x86/include/asm/ |
D | insn.h | 48 struct insn_field modrm; member 73 #define X86_MODRM_MOD(modrm) (((modrm) & 0xc0) >> 6) argument 74 #define X86_MODRM_REG(modrm) (((modrm) & 0x38) >> 3) argument 75 #define X86_MODRM_RM(modrm) ((modrm) & 0x07) argument 137 return insn->opcode.got && insn->modrm.got && insn->sib.got && in insn_complete() 188 return insn_offset_modrm(insn) + insn->modrm.nbytes; in insn_offset_sib()
|
D | inat.h | 104 extern insn_attr_t inat_get_group_attribute(insn_byte_t modrm,
|
D | kvm_emulate.h | 312 u8 modrm; member
|
/arch/x86/lib/ |
D | insn.c | 242 struct insn_field *modrm = &insn->modrm; in insn_get_modrm() local 244 if (modrm->got) in insn_get_modrm() 251 modrm->value = mod; in insn_get_modrm() 252 modrm->nbytes = 1; in insn_get_modrm() 264 modrm->got = 1; in insn_get_modrm() 280 struct insn_field *modrm = &insn->modrm; in insn_rip_relative() local 284 if (!modrm->got) in insn_rip_relative() 290 return (modrm->nbytes && (modrm->value & 0xc7) == 0x5); in insn_rip_relative() 302 insn_byte_t modrm; in insn_get_sib() local 306 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/kernel/kprobes/ |
D | opt.c | 197 (X86_MODRM_REG(insn->modrm.value) & 6) == 4) || /* Jump */ in insn_is_indirect_jump()
|
/arch/x86/kvm/ |
D | emulate.c | 1128 ctxt->modrm_mod = (ctxt->modrm & 0xc0) >> 6; in decode_modrm() 1129 ctxt->modrm_reg |= (ctxt->modrm & 0x38) >> 3; in decode_modrm() 1130 ctxt->modrm_rm = base_reg | (ctxt->modrm & 0x07); in decode_modrm() 4505 ctxt->modrm = insn_fetch(u8, ctxt); in x86_decode_insn() 4510 (mode >= X86EMUL_MODE_PROT16 && (ctxt->modrm & 0x80)))) { in x86_decode_insn() 4517 goffset = (ctxt->modrm >> 3) & 7; in x86_decode_insn() 4521 goffset = (ctxt->modrm >> 3) & 7; in x86_decode_insn() 4522 if ((ctxt->modrm >> 6) == 3) in x86_decode_insn() 4528 goffset = ctxt->modrm & 7; in x86_decode_insn() 4543 if (ctxt->modrm > 0xbf) in x86_decode_insn() [all …]
|
/arch/x86/kernel/cpu/ |
D | perf_event_intel_lbr.c | 571 ext = (insn.modrm.bytes[0] >> 3) & 0x7; in branch_type()
|
/arch/x86/kernel/ |
D | uprobes.c | 56 #define MODRM_REG(insn) X86_MODRM_REG((insn)->modrm.value)
|