Home
last modified time | relevance | path

Searched refs:rex_prefix (Results 1 – 12 of 12) sorted by relevance

/linux-6.12.1/tools/arch/x86/include/asm/
Dinsn.h73 struct insn_field rex_prefix; /* REX prefix */ member
173 return insn->rex_prefix.nbytes == 2; in insn_is_rex2()
178 return X86_REX2_M(insn->rex_prefix.bytes[1]); in insn_rex2_m_bit()
244 return insn_offset_rex_prefix(insn) + insn->rex_prefix.nbytes; in insn_offset_vex_prefix()
/linux-6.12.1/arch/x86/include/asm/
Dinsn.h73 struct insn_field rex_prefix; /* REX prefix */ member
173 return insn->rex_prefix.nbytes == 2; in insn_is_rex2()
178 return X86_REX2_M(insn->rex_prefix.bytes[1]); in insn_rex2_m_bit()
244 return insn_offset_rex_prefix(insn) + insn->rex_prefix.nbytes; in insn_offset_vex_prefix()
/linux-6.12.1/arch/x86/lib/
Dinsn.c183 insn_field_set(&insn->rex_prefix, b, 1); in insn_get_prefixes()
189 insn_set_byte(&insn->rex_prefix, 0, b); in insn_get_prefixes()
191 insn_set_byte(&insn->rex_prefix, 1, b); in insn_get_prefixes()
192 insn->rex_prefix.nbytes = 2; in insn_get_prefixes()
197 insn->rex_prefix.got = 1; in insn_get_prefixes()
201 insn->rex_prefix.got = 1; in insn_get_prefixes()
Dinsn-eval.c470 if (X86_REX_B(insn->rex_prefix.value)) in get_regno()
477 if (X86_REX_R(insn->rex_prefix.value)) in get_regno()
483 if (X86_REX_X(insn->rex_prefix.value)) in get_regno()
506 if (X86_REX_B(insn->rex_prefix.value)) in get_regno()
/linux-6.12.1/tools/arch/x86/lib/
Dinsn.c183 insn_field_set(&insn->rex_prefix, b, 1); in insn_get_prefixes()
189 insn_set_byte(&insn->rex_prefix, 0, b); in insn_get_prefixes()
191 insn_set_byte(&insn->rex_prefix, 1, b); in insn_get_prefixes()
192 insn->rex_prefix.nbytes = 2; in insn_get_prefixes()
197 insn->rex_prefix.got = 1; in insn_get_prefixes()
201 insn->rex_prefix.got = 1; in insn_get_prefixes()
/linux-6.12.1/arch/x86/tools/
Dinsn_decoder_test.c74 dump_field(fp, "rex_prefix", "\t", &insn->rex_prefix); in dump_insn()
Dinsn_sanity.c67 dump_field(fp, "rex_prefix", "\t", &insn->rex_prefix); in dump_insn()
/linux-6.12.1/arch/x86/kernel/
Duprobes.c466 if (insn->rex_prefix.nbytes) { in riprel_analyze()
896 if (insn->rex_prefix.nbytes != 1 || in push_setup_xol_ops()
897 insn->rex_prefix.bytes[0] != 0x41) in push_setup_xol_ops()
/linux-6.12.1/tools/objtool/arch/x86/
Ddecode.c192 if (ins.rex_prefix.nbytes) { in arch_decode_instruction()
193 rex = ins.rex_prefix.bytes[0]; in arch_decode_instruction()
/linux-6.12.1/arch/x86/kvm/
Dkvm_emulate.h349 u8 rex_prefix; member
Demulate.c979 int highbyte_regs = (ctxt->rex_prefix == 0) && byteop; in decode_register()
1145 reg = (ctxt->b & 7) | ((ctxt->rex_prefix & 1) << 3); in decode_register_operand()
1184 ctxt->modrm_reg = ((ctxt->rex_prefix << 1) & 8); /* REX.R */ in decode_modrm()
1185 index_reg = (ctxt->rex_prefix << 2) & 8; /* REX.X */ in decode_modrm()
1186 base_reg = (ctxt->rex_prefix << 3) & 8; /* REX.B */ in decode_modrm()
2492 if ((ctxt->rex_prefix & 0x8) != 0x0) in em_sysexit()
4823 ctxt->rex_prefix = ctxt->b; in x86_decode_insn()
4838 ctxt->rex_prefix = 0; in x86_decode_insn()
4844 if (ctxt->rex_prefix & 8) in x86_decode_insn()
5093 ctxt->rex_prefix = 0; in init_decode_cache()
/linux-6.12.1/arch/x86/kernel/kprobes/
Dcore.c744 if (X86_REX_B(insn->rex_prefix.value)) in prepare_emulation()