Lines Matching defs:op_bytes
807 if (ctxt->op_bytes != sizeof(unsigned long))
808 addr.ea = dst & ((1UL << (ctxt->op_bytes << 3)) - 1);
1024 u16 *size, unsigned long *address, int op_bytes)
1028 if (op_bytes == 2)
1029 op_bytes = 3;
1035 rc = segmented_read_std(ctxt, addr, address, op_bytes);
1297 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
1329 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
1417 modrm_ea += ctxt->op_bytes;
1945 return push(ctxt, &ctxt->src.val, ctxt->op_bytes);
1966 return emulate_pop(ctxt, &ctxt->dst.val, ctxt->op_bytes);
2015 ctxt->dst.bytes = ctxt->op_bytes;
2016 return emulate_popf(ctxt, &ctxt->dst.val, ctxt->op_bytes);
2045 return emulate_pop(ctxt, reg_rmw(ctxt, VCPU_REGS_RBP), ctxt->op_bytes);
2053 if (ctxt->op_bytes == 4) {
2055 ctxt->op_bytes = 2;
2073 if (ctxt->op_bytes > 2)
2074 rsp_increment(ctxt, ctxt->op_bytes - 2);
2114 rsp_increment(ctxt, ctxt->op_bytes);
2118 rc = emulate_pop(ctxt, &val, ctxt->op_bytes);
2121 assign_register(reg_rmw(ctxt, reg), val, ctxt->op_bytes);
2219 rc = emulate_pop(ctxt, &temp_eip, ctxt->op_bytes);
2227 rc = emulate_pop(ctxt, &cs, ctxt->op_bytes);
2232 rc = emulate_pop(ctxt, &temp_eflags, ctxt->op_bytes);
2244 if (ctxt->op_bytes == 4)
2246 else if (ctxt->op_bytes == 2) {
2280 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2);
2341 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes);
2355 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes);
2358 rc = emulate_pop(ctxt, &cs, ctxt->op_bytes);
2418 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2);
3435 ctxt->op_bytes = ctxt->ad_bytes = (next_tss_desc.type & 8) ? 4 : 2;
3580 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2);
3616 rc = emulate_pop(ctxt, &eip, ctxt->op_bytes);
3700 switch (ctxt->op_bytes) {
3918 ctxt->op_bytes = 8;
3920 if (ctxt->op_bytes == 2) {
3921 ctxt->op_bytes = 4;
3927 &desc_ptr, 2 + ctxt->op_bytes);
3946 ctxt->op_bytes = 8;
3949 ctxt->op_bytes);
4096 switch (ctxt->op_bytes) {
4966 size = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
5025 ctxt->memop.bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
5034 ctxt->memop.bytes = (ctxt->op_bytes == 8) ? 16 : 8;
5038 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
5045 op->bytes = (ctxt->d & ByteOp) ? 2 : ctxt->op_bytes;
5056 op->bytes = ctxt->op_bytes;
5063 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
5093 rc = decode_imm(ctxt, op, ctxt->op_bytes, true);
5117 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
5126 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
5137 op->bytes = ctxt->op_bytes + 2;
5141 ctxt->memop.bytes = ctxt->op_bytes + 2;
5228 ctxt->op_bytes = def_op_bytes;
5237 ctxt->op_bytes = def_op_bytes ^ 6;
5296 ctxt->op_bytes = 8; /* REX.W */
5406 if (ctxt->op_bytes == 4 && (ctxt->d & Stack))
5407 ctxt->op_bytes = 8;
5409 ctxt->op_bytes = 8;
5414 ctxt->op_bytes = 8;
5416 ctxt->op_bytes = 4;
5419 if ((ctxt->d & No16) && ctxt->op_bytes == 2)
5420 ctxt->op_bytes = 4;
5423 ctxt->op_bytes = 16;
5425 ctxt->op_bytes = 8;
5726 switch (ctxt->op_bytes) {
5864 else if (ctxt->op_bytes != 4)
5875 ctxt->dst.bytes = ctxt->op_bytes;
5880 ctxt->dst.bytes = ctxt->op_bytes;