Lines Matching defs:eflags

448     X86EFLAGS eflags;
454 if (pRegFrame->eflags.Bits.u1VM)
491 /* Retrieve the eflags including the virtualized bits. */
493 eflags.u32 = CPUMRawGetEFlags(pVCpu);
504 && (eflags.Bits.u1IF)
506 && !(eflags.Bits.u1VM) /** @todo implement when needed (illegal for same privilege level transfers). */
571 /* Note: don't use current eflags as we might be in V86 mode and the IDT always contains protected mode selectors */
655 if ( eflags.Bits.u1VM /* illegal */
659 AssertMsgFailed(("Invalid stack %04X:%08RX32??? (VM=%d)\n", ss_r0, esp_r0, eflags.Bits.u1VM));
673 Assert(eflags.Bits.u1VM || (pRegFrame->ss.Sel & X86_SEL_RPL) != 0);
678 Assert(eflags.Bits.u1VM || (pRegFrame->ss.Sel & X86_SEL_RPL) == 0 || (pRegFrame->ss.Sel & X86_SEL_RPL) == 3 || (EMIsRawRing1Enabled(pVM) && (pRegFrame->ss.Sel & X86_SEL_RPL) == 1));
692 /** if eflags.Bits.u1VM then push gs, fs, ds, es */
693 if (eflags.Bits.u1VM)
711 && !eflags.Bits.u1VM)
723 /* Note: We use the eflags copy, that includes the virtualized bits! */
725 pTrapStack[--idx] = eflags.u32;
729 && !eflags.Bits.u1VM)
756 eflags.u32 &= ~(X86_EFL_TF | X86_EFL_VM | X86_EFL_RF | X86_EFL_NT);
759 eflags.u32 |= X86_EFL_TF;
764 eflags.Bits.u1IF = 0;
766 CPUMRawSetEFlags(pVCpu, eflags.u32);
774 "cs=%04x ds=%04x es=%04x fs=%04x gs=%04x eflags=%08x\n",
776 pRegFrame->eip, pRegFrame->esp, pRegFrame->ebp, eflags.Bits.u2IOPL,
778 pRegFrame->fs.Sel, pRegFrame->gs.Sel, eflags.u32));
782 pVM->trpm.s.aGuestTrapHandler[iGate], esp_r0, eflags.u32, CPUMRawGetEFlags(pVCpu), idx, dpl, cpl));
790 Assert(pRegFrame->eflags.Bits.u1IF == 1);
791 eflags.Bits.u1IF = 1;
792 Assert(pRegFrame->eflags.Bits.u2IOPL == 0);
793 eflags.Bits.u2IOPL = 0;
795 Assert(eflags.Bits.u1IF);
796 Assert(eflags.Bits.u2IOPL == 0);
804 eflags.u32, ss_r0, (RTRCPTR)esp_r0);
809 pRegFrame->eflags.u32 = eflags.u32;
831 Log(("Refused to forward trap: eflags=%08x IF=%d\n", eflags.u32, eflags.Bits.u1IF));
843 Log(("TRAP%02X: forwarding to REM (ss rpl=%d eflags=%08X VMIF=%d handler=%08X\n", iGate, pRegFrame->ss.Sel & X86_SEL_RPL, pRegFrame->eflags.u32, PATMAreInterruptsEnabledByCtx(pVM, CPUMCTX_FROM_CORE(pRegFrame)), pVM->trpm.s.aGuestTrapHandler[iGate]));