Lines Matching refs:op_bytes

776 	if (ctxt->op_bytes != sizeof(unsigned long))  in assign_eip()
777 addr.ea = dst & ((1UL << (ctxt->op_bytes << 3)) - 1); in assign_eip()
994 u16 *size, unsigned long *address, int op_bytes) in read_descriptor() argument
998 if (op_bytes == 2) in read_descriptor()
999 op_bytes = 3; in read_descriptor()
1005 rc = segmented_read_std(ctxt, addr, address, op_bytes); in read_descriptor()
1167 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_register_operand()
1199 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_modrm()
1287 modrm_ea += ctxt->op_bytes; in decode_modrm()
1843 return emulate_push(ctxt, &ctxt->src.val, ctxt->op_bytes); in em_push()
1864 return emulate_pop(ctxt, &ctxt->dst.val, ctxt->op_bytes); in em_pop()
1914 ctxt->dst.bytes = ctxt->op_bytes; in em_popf()
1915 return emulate_popf(ctxt, &ctxt->dst.val, ctxt->op_bytes); in em_popf()
1944 return emulate_pop(ctxt, reg_rmw(ctxt, VCPU_REGS_RBP), ctxt->op_bytes); in em_leave()
1952 if (ctxt->op_bytes == 4) { in em_push_sreg()
1954 ctxt->op_bytes = 2; in em_push_sreg()
1972 if (ctxt->op_bytes > 2) in em_pop_sreg()
1973 rsp_increment(ctxt, ctxt->op_bytes - 2); in em_pop_sreg()
2013 rsp_increment(ctxt, ctxt->op_bytes); in em_popa()
2017 rc = emulate_pop(ctxt, &val, ctxt->op_bytes); in em_popa()
2020 assign_register(reg_rmw(ctxt, reg), val, ctxt->op_bytes); in em_popa()
2118 rc = emulate_pop(ctxt, &temp_eip, ctxt->op_bytes); in emulate_iret_real()
2126 rc = emulate_pop(ctxt, &cs, ctxt->op_bytes); in emulate_iret_real()
2131 rc = emulate_pop(ctxt, &temp_eflags, ctxt->op_bytes); in emulate_iret_real()
2143 if (ctxt->op_bytes == 4) in emulate_iret_real()
2145 else if (ctxt->op_bytes == 2) { in emulate_iret_real()
2179 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2); in em_jmp_far()
2240 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes); in em_ret()
2255 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes); in em_ret_far()
2258 rc = emulate_pop(ctxt, &cs, ctxt->op_bytes); in em_ret_far()
2315 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2); in em_lseg()
2986 ctxt->op_bytes = ctxt->ad_bytes = (next_tss_desc.type & 8) ? 4 : 2; in emulator_do_task_switch()
3131 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2); in em_call_far()
3167 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes); in em_ret_near_imm()
3251 switch (ctxt->op_bytes) { in em_movbe()
3467 ctxt->op_bytes = 8; in emulate_store_desc_ptr()
3469 if (ctxt->op_bytes == 2) { in emulate_store_desc_ptr()
3470 ctxt->op_bytes = 4; in emulate_store_desc_ptr()
3476 &desc_ptr, 2 + ctxt->op_bytes); in emulate_store_desc_ptr()
3495 ctxt->op_bytes = 8; in em_lgdt_lidt()
3498 ctxt->op_bytes); in em_lgdt_lidt()
3646 switch (ctxt->op_bytes) { in em_bswap()
4521 size = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in imm_size()
4580 ctxt->memop.bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4589 ctxt->memop.bytes = (ctxt->op_bytes == 8) ? 16 : 8; in decode_operand()
4593 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4600 op->bytes = (ctxt->d & ByteOp) ? 2 : ctxt->op_bytes; in decode_operand()
4611 op->bytes = ctxt->op_bytes; in decode_operand()
4618 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4648 rc = decode_imm(ctxt, op, ctxt->op_bytes, true); in decode_operand()
4672 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4681 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4692 op->bytes = ctxt->op_bytes + 2; in decode_operand()
4696 ctxt->memop.bytes = ctxt->op_bytes + 2; in decode_operand()
4783 ctxt->op_bytes = def_op_bytes; in x86_decode_insn()
4792 ctxt->op_bytes = def_op_bytes ^ 6; in x86_decode_insn()
4851 ctxt->op_bytes = 8; /* REX.W */ in x86_decode_insn()
4964 if (ctxt->op_bytes == 4 && (ctxt->d & Stack)) in x86_decode_insn()
4965 ctxt->op_bytes = 8; in x86_decode_insn()
4967 ctxt->op_bytes = 8; in x86_decode_insn()
4972 ctxt->op_bytes = 8; in x86_decode_insn()
4974 ctxt->op_bytes = 4; in x86_decode_insn()
4977 if ((ctxt->d & No16) && ctxt->op_bytes == 2) in x86_decode_insn()
4978 ctxt->op_bytes = 4; in x86_decode_insn()
4981 ctxt->op_bytes = 16; in x86_decode_insn()
4983 ctxt->op_bytes = 8; in x86_decode_insn()
5288 switch (ctxt->op_bytes) { in x86_emulate_insn()
5427 else if (ctxt->op_bytes != 4) in x86_emulate_insn()
5438 ctxt->dst.bytes = ctxt->op_bytes; in x86_emulate_insn()
5443 ctxt->dst.bytes = ctxt->op_bytes; in x86_emulate_insn()