Lines Matching refs:op_bytes

772 	if (ctxt->op_bytes != sizeof(unsigned long))  in assign_eip()
773 addr.ea = dst & ((1UL << (ctxt->op_bytes << 3)) - 1); in assign_eip()
989 u16 *size, unsigned long *address, int op_bytes) in read_descriptor() argument
993 if (op_bytes == 2) in read_descriptor()
994 op_bytes = 3; in read_descriptor()
1000 rc = segmented_read_std(ctxt, addr, address, op_bytes); in read_descriptor()
1162 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_register_operand()
1194 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_modrm()
1282 modrm_ea += ctxt->op_bytes; in decode_modrm()
1837 return push(ctxt, &ctxt->src.val, ctxt->op_bytes); in em_push()
1858 return emulate_pop(ctxt, &ctxt->dst.val, ctxt->op_bytes); in em_pop()
1907 ctxt->dst.bytes = ctxt->op_bytes; in em_popf()
1908 return emulate_popf(ctxt, &ctxt->dst.val, ctxt->op_bytes); in em_popf()
1937 return emulate_pop(ctxt, reg_rmw(ctxt, VCPU_REGS_RBP), ctxt->op_bytes); in em_leave()
1945 if (ctxt->op_bytes == 4) { in em_push_sreg()
1947 ctxt->op_bytes = 2; in em_push_sreg()
1965 if (ctxt->op_bytes > 2) in em_pop_sreg()
1966 rsp_increment(ctxt, ctxt->op_bytes - 2); in em_pop_sreg()
2006 rsp_increment(ctxt, ctxt->op_bytes); in em_popa()
2010 rc = emulate_pop(ctxt, &val, ctxt->op_bytes); in em_popa()
2013 assign_register(reg_rmw(ctxt, reg), val, ctxt->op_bytes); in em_popa()
2111 rc = emulate_pop(ctxt, &temp_eip, ctxt->op_bytes); in emulate_iret_real()
2119 rc = emulate_pop(ctxt, &cs, ctxt->op_bytes); in emulate_iret_real()
2124 rc = emulate_pop(ctxt, &temp_eflags, ctxt->op_bytes); in emulate_iret_real()
2136 if (ctxt->op_bytes == 4) in emulate_iret_real()
2138 else if (ctxt->op_bytes == 2) { in emulate_iret_real()
2172 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2); in em_jmp_far()
2233 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes); in em_ret()
2247 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes); in em_ret_far()
2250 rc = emulate_pop(ctxt, &cs, ctxt->op_bytes); in em_ret_far()
2307 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2); in em_lseg()
3007 ctxt->op_bytes = ctxt->ad_bytes = (next_tss_desc.type & 8) ? 4 : 2; in emulator_do_task_switch()
3152 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2); in em_call_far()
3188 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes); in em_ret_near_imm()
3272 switch (ctxt->op_bytes) { in em_movbe()
3486 ctxt->op_bytes = 8; in emulate_store_desc_ptr()
3488 if (ctxt->op_bytes == 2) { in emulate_store_desc_ptr()
3489 ctxt->op_bytes = 4; in emulate_store_desc_ptr()
3495 &desc_ptr, 2 + ctxt->op_bytes); in emulate_store_desc_ptr()
3514 ctxt->op_bytes = 8; in em_lgdt_lidt()
3517 ctxt->op_bytes); in em_lgdt_lidt()
3664 switch (ctxt->op_bytes) { in em_bswap()
4548 size = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in imm_size()
4607 ctxt->memop.bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4616 ctxt->memop.bytes = (ctxt->op_bytes == 8) ? 16 : 8; in decode_operand()
4620 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4627 op->bytes = (ctxt->d & ByteOp) ? 2 : ctxt->op_bytes; in decode_operand()
4638 op->bytes = ctxt->op_bytes; in decode_operand()
4645 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4675 rc = decode_imm(ctxt, op, ctxt->op_bytes, true); in decode_operand()
4699 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4708 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4719 op->bytes = ctxt->op_bytes + 2; in decode_operand()
4723 ctxt->memop.bytes = ctxt->op_bytes + 2; in decode_operand()
4810 ctxt->op_bytes = def_op_bytes; in x86_decode_insn()
4819 ctxt->op_bytes = def_op_bytes ^ 6; in x86_decode_insn()
4878 ctxt->op_bytes = 8; /* REX.W */ in x86_decode_insn()
4991 if (ctxt->op_bytes == 4 && (ctxt->d & Stack)) in x86_decode_insn()
4992 ctxt->op_bytes = 8; in x86_decode_insn()
4994 ctxt->op_bytes = 8; in x86_decode_insn()
4999 ctxt->op_bytes = 8; in x86_decode_insn()
5001 ctxt->op_bytes = 4; in x86_decode_insn()
5004 if ((ctxt->d & No16) && ctxt->op_bytes == 2) in x86_decode_insn()
5005 ctxt->op_bytes = 4; in x86_decode_insn()
5008 ctxt->op_bytes = 16; in x86_decode_insn()
5010 ctxt->op_bytes = 8; in x86_decode_insn()
5315 switch (ctxt->op_bytes) { in x86_emulate_insn()
5454 else if (ctxt->op_bytes != 4) in x86_emulate_insn()
5465 ctxt->dst.bytes = ctxt->op_bytes; in x86_emulate_insn()
5470 ctxt->dst.bytes = ctxt->op_bytes; in x86_emulate_insn()