Searched refs:modrm (Results 1 – 10 of 10) 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 | 274 u8 modrm; member
|
/arch/x86/lib/ |
D | insn.c | 238 struct insn_field *modrm = &insn->modrm; in insn_get_modrm() local 240 if (modrm->got) in insn_get_modrm() 247 modrm->value = mod; in insn_get_modrm() 248 modrm->nbytes = 1; in insn_get_modrm() 260 modrm->got = 1; in insn_get_modrm() 276 struct insn_field *modrm = &insn->modrm; in insn_rip_relative() local 280 if (!modrm->got) in insn_rip_relative() 286 return (modrm->nbytes && (modrm->value & 0xc7) == 0x5); in insn_rip_relative() 298 insn_byte_t modrm; in insn_get_sib() local 302 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/ |
D | kprobes-opt.c | 198 (X86_MODRM_REG(insn->modrm.value) & 6) == 4) || /* Jump */ in insn_is_indirect_jump()
|
/arch/x86/kvm/ |
D | emulate.c | 905 ctxt->modrm = insn_fetch(u8, ctxt); in decode_modrm() 906 ctxt->modrm_mod |= (ctxt->modrm & 0xc0) >> 6; in decode_modrm() 907 ctxt->modrm_reg |= (ctxt->modrm & 0x38) >> 3; in decode_modrm() 908 ctxt->modrm_rm |= (ctxt->modrm & 0x07); in decode_modrm() 3903 ctxt->modrm = insn_fetch(u8, ctxt); in x86_decode_insn() 3905 goffset = (ctxt->modrm >> 3) & 7; in x86_decode_insn() 3909 ctxt->modrm = insn_fetch(u8, ctxt); in x86_decode_insn() 3911 goffset = (ctxt->modrm >> 3) & 7; in x86_decode_insn() 3912 if ((ctxt->modrm >> 6) == 3) in x86_decode_insn() 3918 goffset = ctxt->modrm & 7; in x86_decode_insn()
|
/arch/x86/kernel/cpu/ |
D | perf_event_intel_lbr.c | 520 ext = (insn.modrm.bytes[0] >> 3) & 0x7; in branch_type()
|