Home
last modified time | relevance | path

Searched refs:sib (Results 1 – 7 of 7) sorted by relevance

/arch/x86/include/asm/
Dinsn.h81 struct insn_field sib; member
111 #define X86_SIB_SCALE(sib) (((sib) & 0xc0) >> 6) argument
112 #define X86_SIB_INDEX(sib) (((sib) & 0x38) >> 3) argument
113 #define X86_SIB_BASE(sib) ((sib) & 0x07) argument
236 return insn_offset_sib(insn) + insn->sib.nbytes; in insn_offset_displacement()
/arch/x86/lib/
Dinsn.c417 if (insn->sib.got) in insn_get_sib()
430 insn_field_set(&insn->sib, in insn_get_sib()
434 insn->sib.got = 1; in insn_get_sib()
463 if (!insn->sib.got) { in insn_get_displacement()
489 base = X86_SIB_BASE(insn->sib.value); in insn_get_displacement()
721 return insn->opcode.got && insn->modrm.got && insn->sib.got && in insn_complete()
Dinsn-eval.c483 regno = X86_SIB_INDEX(insn->sib.value); in get_regno()
498 regno = X86_SIB_BASE(insn->sib.value); in get_regno()
1155 if (!insn->sib.nbytes) in get_eff_addr_sib()
1186 addr32 = base32 + idx32 * (1 << X86_SIB_SCALE(insn->sib.value)); in get_eff_addr_sib()
1191 *eff_addr = base + indx * (1 << X86_SIB_SCALE(insn->sib.value)); in get_eff_addr_sib()
1297 if (insn->sib.nbytes) { in get_addr_ref_32()
1388 if (insn->sib.nbytes) { in get_addr_ref_64()
/arch/x86/math-emu/
Dget_address.c72 static int sib(int mod, unsigned long *fpu_eip) in sib() function
230 address = sib(mod, fpu_eip); in FPU_get_address()
/arch/x86/tools/
Dinsn_decoder_test.c78 dump_field(fp, "sib", "\t", &insn->sib); in dump_insn()
Dinsn_sanity.c71 dump_field(fp, "sib", "\t", &insn->sib); in dump_insn()
/arch/x86/kvm/
Demulate.c1210 u8 sib; in decode_modrm() local
1301 sib = insn_fetch(u8, ctxt); in decode_modrm()
1302 index_reg |= (sib >> 3) & 7; in decode_modrm()
1303 base_reg |= sib & 7; in decode_modrm()
1304 scale = sib >> 6; in decode_modrm()