Lines Matching refs:op_bytes
771 if (ctxt->op_bytes != sizeof(unsigned long)) in assign_eip()
772 addr.ea = dst & ((1UL << (ctxt->op_bytes << 3)) - 1); in assign_eip()
958 u16 *size, unsigned long *address, int op_bytes) in read_descriptor() argument
962 if (op_bytes == 2) in read_descriptor()
963 op_bytes = 3; in read_descriptor()
969 rc = segmented_read_std(ctxt, addr, address, op_bytes); in read_descriptor()
1204 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_register_operand()
1236 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_modrm()
1324 modrm_ea += ctxt->op_bytes; in decode_modrm()
1849 return push(ctxt, &ctxt->src.val, ctxt->op_bytes); in em_push()
1870 return emulate_pop(ctxt, &ctxt->dst.val, ctxt->op_bytes); in em_pop()
1919 ctxt->dst.bytes = ctxt->op_bytes; in em_popf()
1920 return emulate_popf(ctxt, &ctxt->dst.val, ctxt->op_bytes); in em_popf()
1949 return emulate_pop(ctxt, reg_rmw(ctxt, VCPU_REGS_RBP), ctxt->op_bytes); in em_leave()
1957 if (ctxt->op_bytes == 4) { in em_push_sreg()
1959 ctxt->op_bytes = 2; in em_push_sreg()
1977 if (ctxt->op_bytes > 2) in em_pop_sreg()
1978 rsp_increment(ctxt, ctxt->op_bytes - 2); in em_pop_sreg()
2018 rsp_increment(ctxt, ctxt->op_bytes); in em_popa()
2022 rc = emulate_pop(ctxt, &val, ctxt->op_bytes); in em_popa()
2025 assign_register(reg_rmw(ctxt, reg), val, ctxt->op_bytes); in em_popa()
2123 rc = emulate_pop(ctxt, &temp_eip, ctxt->op_bytes); in emulate_iret_real()
2131 rc = emulate_pop(ctxt, &cs, ctxt->op_bytes); in emulate_iret_real()
2136 rc = emulate_pop(ctxt, &temp_eflags, ctxt->op_bytes); in emulate_iret_real()
2148 if (ctxt->op_bytes == 4) in emulate_iret_real()
2150 else if (ctxt->op_bytes == 2) { in emulate_iret_real()
2184 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2); in em_jmp_far()
2245 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes); in em_ret()
2259 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes); in em_ret_far()
2262 rc = emulate_pop(ctxt, &cs, ctxt->op_bytes); in em_ret_far()
2322 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2); in em_lseg()
3329 ctxt->op_bytes = ctxt->ad_bytes = (next_tss_desc.type & 8) ? 4 : 2; in emulator_do_task_switch()
3474 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2); in em_call_far()
3510 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes); in em_ret_near_imm()
3599 switch (ctxt->op_bytes) { in em_movbe()
3789 ctxt->op_bytes = 8; in emulate_store_desc_ptr()
3791 if (ctxt->op_bytes == 2) { in emulate_store_desc_ptr()
3792 ctxt->op_bytes = 4; in emulate_store_desc_ptr()
3798 &desc_ptr, 2 + ctxt->op_bytes); in emulate_store_desc_ptr()
3817 ctxt->op_bytes = 8; in em_lgdt_lidt()
3820 ctxt->op_bytes); in em_lgdt_lidt()
3967 switch (ctxt->op_bytes) { in em_bswap()
4875 size = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in imm_size()
4934 ctxt->memop.bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4943 ctxt->memop.bytes = (ctxt->op_bytes == 8) ? 16 : 8; in decode_operand()
4947 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
4954 op->bytes = (ctxt->d & ByteOp) ? 2 : ctxt->op_bytes; in decode_operand()
4965 op->bytes = ctxt->op_bytes; in decode_operand()
4972 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
5002 rc = decode_imm(ctxt, op, ctxt->op_bytes, true); in decode_operand()
5026 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
5035 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes; in decode_operand()
5046 op->bytes = ctxt->op_bytes + 2; in decode_operand()
5050 ctxt->memop.bytes = ctxt->op_bytes + 2; in decode_operand()
5136 ctxt->op_bytes = def_op_bytes; in x86_decode_insn()
5145 ctxt->op_bytes = def_op_bytes ^ 6; in x86_decode_insn()
5192 ctxt->op_bytes = 8; /* REX.W */ in x86_decode_insn()
5297 if (ctxt->op_bytes == 4 && (ctxt->d & Stack)) in x86_decode_insn()
5298 ctxt->op_bytes = 8; in x86_decode_insn()
5300 ctxt->op_bytes = 8; in x86_decode_insn()
5305 ctxt->op_bytes = 8; in x86_decode_insn()
5307 ctxt->op_bytes = 4; in x86_decode_insn()
5310 if ((ctxt->d & No16) && ctxt->op_bytes == 2) in x86_decode_insn()
5311 ctxt->op_bytes = 4; in x86_decode_insn()
5314 ctxt->op_bytes = 16; in x86_decode_insn()
5316 ctxt->op_bytes = 8; in x86_decode_insn()
5618 switch (ctxt->op_bytes) { in x86_emulate_insn()
5754 else if (ctxt->op_bytes != 4) in x86_emulate_insn()
5765 ctxt->dst.bytes = ctxt->op_bytes; in x86_emulate_insn()
5770 ctxt->dst.bytes = ctxt->op_bytes; in x86_emulate_insn()