Lines Matching defs:val
529 static void assign_register(unsigned long *reg, u64 val, int bytes)
534 *(u8 *)reg = (u8)val;
537 *(u16 *)reg = (u16)val;
540 *reg = (u32)val;
543 *reg = val;
1086 if (ctxt->src.val == 0)
1094 if (ctxt->src.val == 0)
1114 op->val = *(u8 *)op->addr.reg;
1117 op->val = *(u16 *)op->addr.reg;
1120 op->val = *(u32 *)op->addr.reg;
1123 op->val = *(u64 *)op->addr.reg;
1252 ctxt->dst.val = fcw;
1268 ctxt->dst.val = fsw;
1301 op->orig_val = op->val;
1476 sv = (s16)ctxt->src.val & (s16)mask;
1478 sv = (s32)ctxt->src.val & (s32)mask;
1480 sv = (s64)ctxt->src.val & (s64)mask;
1487 ctxt->src.val &= (ctxt->dst.bytes << 3) - 1;
1887 return assign_register(op->addr.reg, op->val, op->bytes);
1901 &op->val,
1906 &op->val,
1945 return push(ctxt, &ctxt->src.val, ctxt->op_bytes);
1966 return emulate_pop(ctxt, &ctxt->dst.val, ctxt->op_bytes);
1973 unsigned long val, change_mask;
1977 rc = emulate_pop(ctxt, &val, len);
2006 (ctxt->eflags & ~change_mask) | (val & change_mask);
2016 return emulate_popf(ctxt, &ctxt->dst.val, ctxt->op_bytes);
2022 unsigned frame_size = ctxt->src.val;
2023 unsigned nesting_level = ctxt->src2.val & 31;
2050 int seg = ctxt->src2.val;
2052 ctxt->src.val = get_segment_selector(ctxt, seg);
2063 int seg = ctxt->src2.val;
2088 (ctxt->src.val = old_esp) : (ctxt->src.val = reg_read(ctxt, reg));
2102 ctxt->src.val = (unsigned long)ctxt->eflags & ~X86_EFLAGS_VM;
2110 u32 val;
2118 rc = emulate_pop(ctxt, &val, ctxt->op_bytes);
2121 assign_register(reg_rmw(ctxt, reg), val, ctxt->op_bytes);
2137 ctxt->src.val = ctxt->eflags;
2144 ctxt->src.val = get_segment_selector(ctxt, VCPU_SREG_CS);
2149 ctxt->src.val = ctxt->_eip;
2288 rc = assign_eip_far(ctxt, ctxt->src.val);
2298 return assign_eip_near(ctxt, ctxt->src.val);
2307 rc = assign_eip_near(ctxt, ctxt->src.val);
2310 ctxt->src.val = old_eip;
2384 rsp_increment(ctxt, ctxt->src.val);
2391 ctxt->dst.orig_val = ctxt->dst.val;
2392 ctxt->dst.val = reg_read(ctxt, VCPU_REGS_RAX);
2393 ctxt->src.orig_val = ctxt->src.val;
2394 ctxt->src.val = ctxt->dst.orig_val;
2400 ctxt->dst.val = ctxt->src.orig_val;
2405 ctxt->src.val = ctxt->dst.orig_val;
2407 ctxt->dst.val = ctxt->dst.orig_val;
2414 int seg = ctxt->src2.val;
2424 ctxt->dst.val = ctxt->src.val;
2543 u32 val, cr0, cr3, cr4;
2554 val = GET_SMSTATE(u32, smstate, 0x7fcc);
2556 if (ctxt->ops->set_dr(ctxt, 6, (val & DR6_VOLATILE) | DR6_FIXED_1))
2559 val = GET_SMSTATE(u32, smstate, 0x7fc8);
2561 if (ctxt->ops->set_dr(ctxt, 7, (val & DR7_VOLATILE) | DR7_FIXED_1))
2603 u64 val, cr0, cr3, cr4;
2614 val = GET_SMSTATE(u64, smstate, 0x7f68);
2616 if (ctxt->ops->set_dr(ctxt, 6, (val & DR6_VOLATILE) | DR6_FIXED_1))
2619 val = GET_SMSTATE(u64, smstate, 0x7f60);
2621 if (ctxt->ops->set_dr(ctxt, 7, (val & DR7_VOLATILE) | DR7_FIXED_1))
2628 val = GET_SMSTATE(u64, smstate, 0x7ed0);
2630 if (ctxt->ops->set_msr(ctxt, MSR_EFER, val & ~EFER_LMA))
3437 ctxt->src.val = (unsigned long) error_code;
3483 al = ctxt->dst.val;
3501 ctxt->dst.val = al;
3504 ctxt->src.val = 0;
3519 if (ctxt->src.val == 0)
3522 al = ctxt->dst.val & 0xff;
3523 ah = al / ctxt->src.val;
3524 al %= ctxt->src.val;
3526 ctxt->dst.val = (ctxt->dst.val & 0xffff0000) | al | (ah << 8);
3530 ctxt->src.val = 0;
3539 u8 al = ctxt->dst.val & 0xff;
3540 u8 ah = (ctxt->dst.val >> 8) & 0xff;
3542 al = (al + (ah * ctxt->src.val)) & 0xff;
3544 ctxt->dst.val = (ctxt->dst.val & 0xffff0000) | al;
3548 ctxt->src.val = 0;
3558 long rel = ctxt->src.val;
3560 ctxt->src.val = (unsigned long)ctxt->_eip;
3586 rc = assign_eip_far(ctxt, ctxt->src.val);
3590 ctxt->src.val = old_cs;
3595 ctxt->src.val = old_eip;
3622 rsp_increment(ctxt, ctxt->src.val);
3629 ctxt->src.val = ctxt->dst.val;
3633 ctxt->dst.val = ctxt->src.orig_val;
3640 ctxt->dst.val = ctxt->src2.val;
3649 ctxt->dst.val = ~((ctxt->src.val >> (ctxt->src.bytes * 8 - 1)) - 1);
3662 ctxt->dst.val = tsc_aux;
3707 * Both casting ->valptr and ->val to u16 breaks strict aliasing
3710 tmp = (u16)ctxt->src.val;
3711 ctxt->dst.val &= ~0xffffUL;
3712 ctxt->dst.val |= (unsigned long)swab16(tmp);
3715 ctxt->dst.val = swab32((u32)ctxt->src.val);
3718 ctxt->dst.val = swab64(ctxt->src.val);
3731 if (ctxt->ops->set_cr(ctxt, cr_num, ctxt->src.val))
3752 unsigned long val;
3755 val = ctxt->src.val & ~0ULL;
3757 val = ctxt->src.val & ~0U;
3760 if (ctxt->ops->set_dr(ctxt, ctxt->modrm_reg, val) < 0)
3813 ctxt->dst.val = get_segment_selector(ctxt, segment);
3829 u16 sel = ctxt->src.val;
3849 u16 sel = ctxt->src.val;
3863 u16 sel = ctxt->src.val;
3982 ctxt->dst.val = ctxt->ops->get_cr(ctxt, 0);
3989 | (ctxt->src.val & 0x0f));
4001 rc = jmp_rel(ctxt, ctxt->src.val);
4011 rc = jmp_rel(ctxt, ctxt->src.val);
4018 if (!pio_in_emulated(ctxt, ctxt->dst.bytes, ctxt->src.val,
4019 &ctxt->dst.val))
4027 ctxt->ops->pio_out_emulated(ctxt, ctxt->src.bytes, ctxt->dst.val,
4028 &ctxt->src.val, 1);
4099 asm("bswap %0" : "+r"(ctxt->dst.val));
4103 asm("bswap %0" : "+r"(*(u32 *)&ctxt->dst.val));
4123 ctxt->dst.val = (s32) ctxt->src.val;
4396 if (!emulator_io_permited(ctxt, ctxt->src.val, ctxt->dst.bytes))
4405 if (!emulator_io_permited(ctxt, ctxt->dst.val, ctxt->src.bytes))
4983 op->val = insn_fetch(s8, ctxt);
4986 op->val = insn_fetch(s16, ctxt);
4989 op->val = insn_fetch(s32, ctxt);
4992 op->val = insn_fetch(s64, ctxt);
4998 op->val &= 0xff;
5001 op->val &= 0xffff;
5004 op->val &= 0xffffffff;
5031 op->orig_val = op->val;
5041 op->orig_val = op->val;
5048 op->orig_val = op->val;
5059 op->orig_val = op->val;
5067 op->val = 0;
5079 op->val = reg_read(ctxt, VCPU_REGS_RCX) & 0xff;
5087 op->val = 1;
5121 op->val = 0;
5132 op->val = 0;
5145 op->val = VCPU_SREG_ES;
5149 op->val = VCPU_SREG_CS;
5153 op->val = VCPU_SREG_SS;
5157 op->val = VCPU_SREG_DS;
5161 op->val = VCPU_SREG_FS;
5165 op->val = VCPU_SREG_GS;
5527 : "+a"(ctxt->dst.val), "+d"(ctxt->src.val), [flags]"+D"(flags),
5529 : "c"(ctxt->src2.val));
5658 &ctxt->src2.val, ctxt->src2.bytes);
5670 &ctxt->dst.val, ctxt->dst.bytes);
5714 rc = jmp_rel(ctxt, ctxt->src.val);
5717 ctxt->dst.val = ctxt->src.addr.mem.ea;
5727 case 2: ctxt->dst.val = (s8)ctxt->dst.val; break;
5728 case 4: ctxt->dst.val = (s16)ctxt->dst.val; break;
5729 case 8: ctxt->dst.val = (s32)ctxt->dst.val; break;
5736 rc = emulate_int(ctxt, ctxt->src.val);
5744 rc = jmp_rel(ctxt, ctxt->src.val);
5856 ctxt->dst.val = ops->get_cr(ctxt, ctxt->modrm_reg);
5859 ops->get_dr(ctxt, ctxt->modrm_reg, &ctxt->dst.val);
5863 ctxt->dst.val = ctxt->src.val;
5869 rc = jmp_rel(ctxt, ctxt->src.val);
5872 ctxt->dst.val = test_cc(ctxt->b, ctxt->eflags);
5876 ctxt->dst.val = (ctxt->src.bytes == 1) ? (u8) ctxt->src.val
5877 : (u16) ctxt->src.val;
5881 ctxt->dst.val = (ctxt->src.bytes == 1) ? (s8) ctxt->src.val :
5882 (s16) ctxt->src.val;