VirtualBox

Changeset 2894 in vbox


Ignore:
Timestamp:
May 28, 2007 1:03:55 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21562
Message:

Logging changes

File:
1 edited

Legend:

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

    r2893 r2894  
    725725#ifdef LOG_ENABLED
    726726    PCPUMCTX pCtx = pVM->em.s.pCtx;
     727    uint32_t cpl = CPUMGetGuestCPL(pVM, CPUMCTX2CORE(pCtx));
     728
    727729    if (pCtx->eflags.Bits.u1VM)
    728730        Log(("EMV86: %04X:%08X IF=%d\n", pCtx->cs, pCtx->eip, pCtx->eflags.Bits.u1IF));
    729     else if ((pCtx->ss & X86_SEL_RPL) == 0)
    730         Log(("EMR0: %08X ESP=%08X IF=%d CPL=%d\n", pCtx->eip, pCtx->esp, pCtx->eflags.Bits.u1IF, (pCtx->ss & X86_SEL_RPL)));
    731     else if ((pCtx->ss & X86_SEL_RPL) == 3)
    732         Log(("EMR3: %08X ESP=%08X IF=%d\n", pCtx->eip, pCtx->esp, pCtx->eflags.Bits.u1IF));
     731    else
     732        Log(("EMR%d: %08X ESP=%08X IF=%d CR0=%x\n", cpl, pCtx->eip, pCtx->esp, pCtx->eflags.Bits.u1IF, pCtx->cr0));
    733733#endif
    734734    STAM_PROFILE_ADV_START(&pVM->em.s.StatREMTotal, a);
     
    26592659         * Log important stuff before entering GC.
    26602660         */
     2661        uint32_t cpl = CPUMGetGuestCPL(pVM, CPUMCTX2CORE(pCtx));
     2662
    26612663        if (pCtx->eflags.Bits.u1VM)
    26622664            Log(("HWV86: %08X IF=%d\n", pCtx->eip, pCtx->eflags.Bits.u1IF));
    2663         else if ((pCtx->ss & X86_SEL_RPL) == 0)
    2664             Log(("HWR0: %08X ESP=%08X IF=%d CPL=%d CR0=%x\n", pCtx->eip, pCtx->esp, pCtx->eflags.Bits.u1IF, CPUMGetGuestCPL(pVM, CPUMCTX2CORE(pCtx)), pCtx->cr0));
    2665         else if ((pCtx->ss & X86_SEL_RPL) == 3)
    2666             Log(("HWR3: %08X ESP=%08X IF=%d\n", pCtx->eip, pCtx->esp, pCtx->eflags.Bits.u1IF));
     2665        else
     2666            Log(("HWR%d: %08X ESP=%08X IF=%d CR0=%x\n", cpl, pCtx->eip, pCtx->esp, pCtx->eflags.Bits.u1IF, pCtx->cr0));
    26672667#endif
    26682668
Note: See TracChangeset for help on using the changeset viewer.

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