Lines Matching defs:bytes
301 * Moreover, they are all exactly FASTOP_SIZE bytes long, so functions for
305 * The 16 byte alignment, considering 5 bytes for the RET thunk, 3 for ENDBR
306 * and 1 for the straight line speculation INT3, leaves 7 bytes for the
440 * SETcc %al [3 bytes]
441 * RET | JMP __x86_return_thunk [1,5 bytes; CONFIG_RETHUNK]
515 .src_bytes = ctxt->src.bytes,
516 .dst_bytes = ctxt->dst.bytes,
529 static void assign_register(unsigned long *reg, u64 val, int bytes)
532 switch (bytes) {
701 * 512 bytes of data must be aligned to a 16 byte boundary.
923 * Prefetch the remaining bytes of the instruction without crossing page
936 * We do not know exactly how many bytes will be needed, and
956 * x86_decode_insn. So, if not enough bytes
1112 switch (op->bytes) {
1283 op->bytes = 16;
1291 op->bytes = 8;
1297 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
1329 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
1334 op->bytes = 16;
1341 op->bytes = 8;
1473 mask = ~((long)ctxt->dst.bytes * 8 - 1);
1475 if (ctxt->src.bytes == 2)
1477 else if (ctxt->src.bytes == 4)
1487 ctxt->src.val &= (ctxt->dst.bytes << 3) - 1;
1657 /* allowed just for 8 bytes segments */
1671 /* allowed just for 8 bytes segments */
1887 return assign_register(op->addr.reg, op->val, op->bytes);
1902 op->bytes);
1907 op->bytes);
1913 op->bytes * op->count);
1930 static int push(struct x86_emulate_ctxt *ctxt, void *data, int bytes)
1934 rsp_increment(ctxt, -bytes);
1938 return segmented_write(ctxt, addr, data, bytes);
2015 ctxt->dst.bytes = ctxt->op_bytes;
2319 if (ctxt->dst.bytes == 16)
3473 register_address_increment(ctxt, reg, df * op->bytes);
3505 ctxt->src.bytes = 1;
3531 ctxt->src.bytes = 1;
3549 ctxt->src.bytes = 1;
3647 ctxt->dst.bytes = ctxt->src.bytes;
3649 ctxt->dst.val = ~((ctxt->src.val >> (ctxt->src.bytes * 8 - 1)) - 1);
3814 if (ctxt->dst.bytes == 4 && ctxt->dst.type == OP_MEM)
3815 ctxt->dst.bytes = 2;
3981 ctxt->dst.bytes = 2;
4018 if (!pio_in_emulated(ctxt, ctxt->dst.bytes, ctxt->src.val,
4027 ctxt->ops->pio_out_emulated(ctxt, ctxt->src.bytes, ctxt->dst.val,
4395 ctxt->dst.bytes = min(ctxt->dst.bytes, 4u);
4396 if (!emulator_io_permited(ctxt, ctxt->src.val, ctxt->dst.bytes))
4404 ctxt->src.bytes = min(ctxt->src.bytes, 4u);
4405 if (!emulator_io_permited(ctxt, ctxt->dst.val, ctxt->src.bytes))
4978 op->bytes = size;
4981 switch (op->bytes) {
4996 switch (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;
5072 op->bytes = 2;
5078 op->bytes = 1;
5086 op->bytes = 1;
5096 ctxt->memop.bytes = 1;
5104 ctxt->memop.bytes = 2;
5107 ctxt->memop.bytes = 4;
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;
5138 insn_fetch_arr(op->valptr, op->bytes, ctxt);
5141 ctxt->memop.bytes = ctxt->op_bytes + 2;
5236 /* switch between 2/4 bytes */
5241 /* switch between 4/8 bytes */
5244 /* switch between 2/4 bytes */
5428 /* ModRM and SIB bytes. */
5524 fop += __ffs(ctxt->dst.bytes) * FASTOP_SIZE;
5650 ctxt->src.valptr, ctxt->src.bytes);
5658 &ctxt->src2.val, ctxt->src2.bytes);
5670 &ctxt->dst.val, ctxt->dst.bytes);
5875 ctxt->dst.bytes = ctxt->op_bytes;
5876 ctxt->dst.val = (ctxt->src.bytes == 1) ? (u8) ctxt->src.val
5880 ctxt->dst.bytes = ctxt->op_bytes;
5881 ctxt->dst.val = (ctxt->src.bytes == 1) ? (s8) ctxt->src.val :