Lines Matching refs:eflags

849 		in_page = (ctxt->eflags & EFLG_DF) ?  in pio_in_emulated()
1147 int iopl = (ctxt->eflags & X86_EFLAGS_IOPL) >> IOPL_SHIFT; in emulate_popf()
1177 (ctxt->eflags & ~change_mask) | (val & change_mask); in emulate_popf()
1267 c->src.val = ctxt->eflags; in emulate_int_real()
1273 ctxt->eflags &= ~(EFLG_IF | EFLG_TF | EFLG_AC); in emulate_int_real()
1369 ctxt->eflags = ((temp_eflags & mask) | (ctxt->eflags & vm86_mask)); in emulate_iret_real()
1371 ctxt->eflags &= ~0xffff; in emulate_iret_real()
1372 ctxt->eflags |= temp_eflags; in emulate_iret_real()
1375 ctxt->eflags &= ~EFLG_RESERVED_ZEROS_MASK; /* Clear reserved zeros */ in emulate_iret_real()
1376 ctxt->eflags |= EFLG_RESERVED_ONE_MASK; in emulate_iret_real()
1410 emulate_2op_SrcB("rol", c->src, c->dst, ctxt->eflags); in emulate_grp2()
1413 emulate_2op_SrcB("ror", c->src, c->dst, ctxt->eflags); in emulate_grp2()
1416 emulate_2op_SrcB("rcl", c->src, c->dst, ctxt->eflags); in emulate_grp2()
1419 emulate_2op_SrcB("rcr", c->src, c->dst, ctxt->eflags); in emulate_grp2()
1423 emulate_2op_SrcB("sal", c->src, c->dst, ctxt->eflags); in emulate_grp2()
1426 emulate_2op_SrcB("shr", c->src, c->dst, ctxt->eflags); in emulate_grp2()
1429 emulate_2op_SrcB("sar", c->src, c->dst, ctxt->eflags); in emulate_grp2()
1444 emulate_2op_SrcV("test", c->src, c->dst, ctxt->eflags); in emulate_grp3()
1450 emulate_1op("neg", c->dst, ctxt->eflags); in emulate_grp3()
1453 emulate_1op_rax_rdx("mul", c->src, *rax, *rdx, ctxt->eflags); in emulate_grp3()
1456 emulate_1op_rax_rdx("imul", c->src, *rax, *rdx, ctxt->eflags); in emulate_grp3()
1460 ctxt->eflags, de); in emulate_grp3()
1464 ctxt->eflags, de); in emulate_grp3()
1481 emulate_1op("inc", c->dst, ctxt->eflags); in emulate_grp45()
1484 emulate_1op("dec", c->dst, ctxt->eflags); in emulate_grp45()
1514 ctxt->eflags &= ~EFLG_ZF; in emulate_grp9()
1519 ctxt->eflags |= EFLG_ZF; in emulate_grp9()
1621 c->regs[VCPU_REGS_R11] = ctxt->eflags & ~EFLG_RF; in emulate_syscall()
1629 ctxt->eflags &= ~(msr_data | EFLG_RF); in emulate_syscall()
1636 ctxt->eflags &= ~(EFLG_VM | EFLG_IF | EFLG_RF); in emulate_syscall()
1674 ctxt->eflags &= ~(EFLG_VM | EFLG_IF | EFLG_RF); in emulate_sysenter()
1761 iopl = (ctxt->eflags & X86_EFLAGS_IOPL) >> IOPL_SHIFT; in emulator_bad_iopl()
1822 tss->flag = ctxt->eflags; in save_state_to_tss16()
1847 ctxt->eflags = tss->flag | 2; in load_state_from_tss16()
1942 tss->eflags = ctxt->eflags; in save_state_to_tss32()
1971 ctxt->eflags = tss->eflags | 2; in load_state_from_tss32()
2110 ctxt->eflags = ctxt->eflags & ~X86_EFLAGS_NT; in emulator_do_task_switch()
2127 ctxt->eflags = ctxt->eflags | X86_EFLAGS_NT; in emulator_do_task_switch()
2178 int df = (ctxt->eflags & EFLG_DF) ? -1 : 1; in string_addr_inc()
2197 cf = ctxt->eflags & X86_EFLAGS_CF; in em_das()
2203 af = ctxt->eflags & X86_EFLAGS_AF; in em_das()
2221 emulate_2op_SrcV("or", c->src, c->dst, ctxt->eflags); in em_das()
2222 ctxt->eflags &= ~(X86_EFLAGS_AF | X86_EFLAGS_CF); in em_das()
2224 ctxt->eflags |= X86_EFLAGS_CF; in em_das()
2226 ctxt->eflags |= X86_EFLAGS_AF; in em_das()
2283 emulate_2op_SrcV_nobyte("imul", c->src, c->dst, ctxt->eflags); in em_imul()
2946 ((ctxt->eflags & EFLG_ZF) == 0)) in string_insn_completed()
2948 ((ctxt->eflags & EFLG_ZF) == EFLG_ZF)))) in string_insn_completed()
3039 emulate_2op_SrcV("add", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3049 emulate_2op_SrcV("or", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3056 emulate_2op_SrcV("adc", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3066 emulate_2op_SrcV("sbb", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3076 emulate_2op_SrcV("and", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3080 emulate_2op_SrcV("sub", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3084 emulate_2op_SrcV("xor", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3088 emulate_2op_SrcV("cmp", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3091 emulate_1op("inc", c->dst, ctxt->eflags); in x86_emulate_insn()
3094 emulate_1op("dec", c->dst, ctxt->eflags); in x86_emulate_insn()
3121 if (test_cc(c->b, ctxt->eflags)) in x86_emulate_insn()
3146 emulate_2op_SrcV("test", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3204 c->src.val = (unsigned long) ctxt->eflags; in x86_emulate_insn()
3209 c->dst.addr.reg = &ctxt->eflags; in x86_emulate_insn()
3246 if (ctxt->eflags & EFLG_OF) { in x86_emulate_insn()
3264 (c->b == 0xe2 || test_cc(c->b ^ 0x5, ctxt->eflags))) in x86_emulate_insn()
3335 ctxt->eflags ^= EFLG_CF; in x86_emulate_insn()
3341 ctxt->eflags &= ~EFLG_CF; in x86_emulate_insn()
3344 ctxt->eflags |= EFLG_CF; in x86_emulate_insn()
3351 ctxt->eflags &= ~X86_EFLAGS_IF; in x86_emulate_insn()
3359 ctxt->eflags |= X86_EFLAGS_IF; in x86_emulate_insn()
3363 ctxt->eflags &= ~EFLG_DF; in x86_emulate_insn()
3366 ctxt->eflags |= EFLG_DF; in x86_emulate_insn()
3595 if (!test_cc(c->b, ctxt->eflags)) in x86_emulate_insn()
3599 if (test_cc(c->b, ctxt->eflags)) in x86_emulate_insn()
3603 c->dst.val = test_cc(c->b, ctxt->eflags); in x86_emulate_insn()
3616 emulate_2op_SrcV_nobyte("bt", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3620 emulate_2op_cl("shld", c->src2, c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3630 emulate_2op_SrcV_nobyte("bts", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3634 emulate_2op_cl("shrd", c->src2, c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3645 emulate_2op_SrcV("cmp", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3646 if (ctxt->eflags & EFLG_ZF) { in x86_emulate_insn()
3660 emulate_2op_SrcV_nobyte("btr", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3687 emulate_2op_SrcV_nobyte("btc", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()
3694 ctxt->eflags &= ~X86_EFLAGS_ZF; in x86_emulate_insn()
3696 ctxt->eflags |= X86_EFLAGS_ZF; in x86_emulate_insn()
3706 ctxt->eflags &= ~X86_EFLAGS_ZF; in x86_emulate_insn()
3708 ctxt->eflags |= X86_EFLAGS_ZF; in x86_emulate_insn()
3719 emulate_2op_SrcV("add", c->src, c->dst, ctxt->eflags); in x86_emulate_insn()