Lines Matching refs:op_bytes

791 	if (ctxt->op_bytes != sizeof(unsigned long))  in assign_eip()
792 addr.ea = dst & ((1UL << (ctxt->op_bytes << 3)) - 1); in assign_eip()
978 u16 *size, unsigned long *address, int op_bytes) in read_descriptor() argument
982 if (op_bytes == 2) in read_descriptor()
983 op_bytes = 3; in read_descriptor()
989 rc = segmented_read_std(ctxt, addr, address, op_bytes); in read_descriptor()
1149 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_register_operand()
1181 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_modrm()
1269 modrm_ea += ctxt->op_bytes; in decode_modrm()
1794 return push(ctxt, &ctxt->src.val, ctxt->op_bytes); in em_push()
1815 return emulate_pop(ctxt, &ctxt->dst.val, ctxt->op_bytes); in em_pop()
1864 ctxt->dst.bytes = ctxt->op_bytes; in em_popf()
1865 return emulate_popf(ctxt, &ctxt->dst.val, ctxt->op_bytes); in em_popf()
1894 return emulate_pop(ctxt, reg_rmw(ctxt, VCPU_REGS_RBP), ctxt->op_bytes); in em_leave()
1902 if (ctxt->op_bytes == 4) { in em_push_sreg()
1904 ctxt->op_bytes = 2; in em_push_sreg()
1922 if (ctxt->op_bytes > 2) in em_pop_sreg()
1923 rsp_increment(ctxt, ctxt->op_bytes - 2); in em_pop_sreg()
1963 rsp_increment(ctxt, ctxt->op_bytes); in em_popa()
1967 rc = emulate_pop(ctxt, &val, ctxt->op_bytes); in em_popa()
1970 assign_register(reg_rmw(ctxt, reg), val, ctxt->op_bytes); in em_popa()
2068 rc = emulate_pop(ctxt, &temp_eip, ctxt->op_bytes); in emulate_iret_real()
2076 rc = emulate_pop(ctxt, &cs, ctxt->op_bytes); in emulate_iret_real()
2081 rc = emulate_pop(ctxt, &temp_eflags, ctxt->op_bytes); in emulate_iret_real()
2093 if (ctxt->op_bytes == 4) in emulate_iret_real()
2095 else if (ctxt->op_bytes == 2) { in emulate_iret_real()
2129 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2); in em_jmp_far()
2190 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes); in em_ret()
2204 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes); in em_ret_far()
2207 rc = emulate_pop(ctxt, &cs, ctxt->op_bytes); in em_ret_far()
2267 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2); in em_lseg()
3290 ctxt->op_bytes = ctxt->ad_bytes = (next_tss_desc.type & 8) ? 4 : 2; in emulator_do_task_switch()
3435 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2); in em_call_far()
3471 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes); in em_ret_near_imm()
3553 switch (ctxt->op_bytes) { in em_movbe()
3757 ctxt->op_bytes = 8; in emulate_store_desc_ptr()
3759 if (ctxt->op_bytes == 2) { in emulate_store_desc_ptr()
3760 ctxt->op_bytes = 4; in emulate_store_desc_ptr()
3766 &desc_ptr, 2 + ctxt->op_bytes); in emulate_store_desc_ptr()
3785 ctxt->op_bytes = 8; in em_lgdt_lidt()
3788 ctxt->op_bytes); in em_lgdt_lidt()
3935 switch (ctxt->op_bytes) { in em_bswap()
4810 size = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in imm_size()
4869 ctxt->memop.bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4878 ctxt->memop.bytes = (ctxt->op_bytes == 8) ? 16 : 8; in decode_operand()
4882 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4889 op->bytes = (ctxt->d & ByteOp) ? 2 : ctxt->op_bytes; in decode_operand()
4900 op->bytes = ctxt->op_bytes; in decode_operand()
4907 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4937 rc = decode_imm(ctxt, op, ctxt->op_bytes, true); in decode_operand()
4961 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4970 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4981 op->bytes = ctxt->op_bytes + 2; in decode_operand()
4985 ctxt->memop.bytes = ctxt->op_bytes + 2; in decode_operand()
5072 ctxt->op_bytes = def_op_bytes; in x86_decode_insn()
5081 ctxt->op_bytes = def_op_bytes ^ 6; in x86_decode_insn()
5140 ctxt->op_bytes = 8; /* REX.W */ in x86_decode_insn()
5251 if (ctxt->op_bytes == 4 && (ctxt->d & Stack)) in x86_decode_insn()
5252 ctxt->op_bytes = 8; in x86_decode_insn()
5254 ctxt->op_bytes = 8; in x86_decode_insn()
5259 ctxt->op_bytes = 8; in x86_decode_insn()
5261 ctxt->op_bytes = 4; in x86_decode_insn()
5264 if ((ctxt->d & No16) && ctxt->op_bytes == 2) in x86_decode_insn()
5265 ctxt->op_bytes = 4; in x86_decode_insn()
5268 ctxt->op_bytes = 16; in x86_decode_insn()
5270 ctxt->op_bytes = 8; in x86_decode_insn()
5571 switch (ctxt->op_bytes) { in x86_emulate_insn()
5709 else if (ctxt->op_bytes != 4) in x86_emulate_insn()
5720 ctxt->dst.bytes = ctxt->op_bytes; in x86_emulate_insn()
5725 ctxt->dst.bytes = ctxt->op_bytes; in x86_emulate_insn()