VirtualBox

Changeset 16861 in vbox for trunk/src


Ignore:
Timestamp:
Feb 17, 2009 4:37:45 PM (16 years ago)
Author:
vboxsync
Message:

More assertions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMTests.cpp

    r16408 r16861  
    7070    CPUMPushHyper(pVM, RCPtrEP);                /* what to call */
    7171    CPUMSetHyperEIP(pVM, pVM->vmm.s.pfnCallTrampolineRC);
     72    Assert(CPUMGetHyperCR3(pVM) && CPUMGetHyperCR3(pVM) == PGMGetHyperCR3(pVM));
    7273    rc = SUPCallVMMR0Fast(pVM->pVMR0, VMMR0_DO_RAW_RUN, 0);
    7374    if (RT_LIKELY(rc == VINF_SUCCESS))
     
    107108    CPUMPushHyper(pVM, RCPtrEP);                /* what to call */
    108109    CPUMSetHyperEIP(pVM, pVM->vmm.s.pfnCallTrampolineRC);
     110    Assert(CPUMGetHyperCR3(pVM) && CPUMGetHyperCR3(pVM) == PGMGetHyperCR3(pVM));
    109111    rc = SUPCallVMMR0Fast(pVM->pVMR0, VMMR0_DO_RAW_RUN, 0);
    110112    if (RT_LIKELY(rc == VINF_SUCCESS))
     
    350352        uint64_t    tsBegin = RTTimeNanoTS();
    351353        uint64_t    TickStart = ASMReadTSC();
     354        Assert(CPUMGetHyperCR3(pVM) && CPUMGetHyperCR3(pVM) == PGMGetHyperCR3(pVM));
    352355        do
    353356        {
     
    393396        tsBegin = RTTimeNanoTS();
    394397        TickStart = ASMReadTSC();
     398        Assert(CPUMGetHyperCR3(pVM) && CPUMGetHyperCR3(pVM) == PGMGetHyperCR3(pVM));
    395399        for (i = 0; i < 1000000; i++)
    396400        {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette