Lines Matching defs:bytes

283  * Moreover, they are all exactly FASTOP_SIZE bytes long, so functions for
287 * The 16 byte alignment, considering 5 bytes for the RET thunk, 3 for ENDBR
288 * and 1 for the straight line speculation INT3, leaves 7 bytes for the
478 .src_bytes = ctxt->src.bytes,
479 .dst_bytes = ctxt->dst.bytes,
492 static void assign_register(unsigned long *reg, u64 val, int bytes)
495 switch (bytes) {
666 * 512 bytes of data must be aligned to a 16 byte boundary.
888 * Prefetch the remaining bytes of the instruction without crossing page
901 * We do not know exactly how many bytes will be needed, and
921 * x86_decode_insn. So, if not enough bytes
1077 switch (op->bytes) {
1148 op->bytes = 16;
1156 op->bytes = 8;
1162 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
1194 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
1199 op->bytes = 16;
1206 op->bytes = 8;
1338 mask = ~((long)ctxt->dst.bytes * 8 - 1);
1340 if (ctxt->src.bytes == 2)
1342 else if (ctxt->src.bytes == 4)
1352 ctxt->src.val &= (ctxt->dst.bytes << 3) - 1;
1523 /* allowed just for 8 bytes segments */
1537 /* allowed just for 8 bytes segments */
1781 return assign_register(op->addr.reg, op->val, op->bytes);
1796 op->bytes);
1801 op->bytes);
1806 op->bytes * op->count);
1822 static int push(struct x86_emulate_ctxt *ctxt, void *data, int bytes)
1826 rsp_increment(ctxt, -bytes);
1830 return segmented_write(ctxt, addr, data, bytes);
1907 ctxt->dst.bytes = ctxt->op_bytes;
2211 if (ctxt->dst.bytes == 16)
3045 register_address_increment(ctxt, reg, df * op->bytes);
3077 ctxt->src.bytes = 1;
3103 ctxt->src.bytes = 1;
3121 ctxt->src.bytes = 1;
3219 ctxt->dst.bytes = ctxt->src.bytes;
3221 ctxt->dst.val = ~((ctxt->src.val >> (ctxt->src.bytes * 8 - 1)) - 1);
3382 if (ctxt->dst.bytes == 4 && ctxt->dst.type == OP_MEM)
3383 ctxt->dst.bytes = 2;
3549 ctxt->dst.bytes = 2;
3586 if (!pio_in_emulated(ctxt, ctxt->dst.bytes, ctxt->src.val,
3595 ctxt->ops->pio_out_emulated(ctxt, ctxt->src.bytes, ctxt->dst.val,
3970 ctxt->dst.bytes = min(ctxt->dst.bytes, 4u);
3971 if (!emulator_io_permitted(ctxt, ctxt->src.val, ctxt->dst.bytes))
3979 ctxt->src.bytes = min(ctxt->src.bytes, 4u);
3980 if (!emulator_io_permitted(ctxt, ctxt->dst.val, ctxt->src.bytes))
4560 op->bytes = size;
4563 switch (op->bytes) {
4578 switch (op->bytes) {
4607 ctxt->memop.bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
4616 ctxt->memop.bytes = (ctxt->op_bytes == 8) ? 16 : 8;
4620 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
4627 op->bytes = (ctxt->d & ByteOp) ? 2 : ctxt->op_bytes;
4638 op->bytes = ctxt->op_bytes;
4645 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
4654 op->bytes = 2;
4660 op->bytes = 1;
4668 op->bytes = 1;
4678 ctxt->memop.bytes = 1;
4686 ctxt->memop.bytes = 2;
4689 ctxt->memop.bytes = 4;
4699 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
4708 op->bytes = (ctxt->d & ByteOp) ? 1 : ctxt->op_bytes;
4719 op->bytes = ctxt->op_bytes + 2;
4720 insn_fetch_arr(op->valptr, op->bytes, ctxt);
4723 ctxt->memop.bytes = ctxt->op_bytes + 2;
4818 /* switch between 2/4 bytes */
4823 /* switch between 4/8 bytes */
4826 /* switch between 2/4 bytes */
5013 /* ModRM and SIB bytes. */
5109 fop += __ffs(ctxt->dst.bytes) * FASTOP_SIZE;
5239 ctxt->src.valptr, ctxt->src.bytes);
5247 &ctxt->src2.val, ctxt->src2.bytes);
5259 &ctxt->dst.val, ctxt->dst.bytes);
5465 ctxt->dst.bytes = ctxt->op_bytes;
5466 ctxt->dst.val = (ctxt->src.bytes == 1) ? (u8) ctxt->src.val
5470 ctxt->dst.bytes = ctxt->op_bytes;
5471 ctxt->dst.val = (ctxt->src.bytes == 1) ? (s8) ctxt->src.val :