VirtualBox

Changeset 1148 in vbox


Ignore:
Timestamp:
Mar 2, 2007 9:52:17 AM (18 years ago)
Author:
vboxsync
Message:

Added emR3SingleStepExecRem

File:
1 edited

Legend:

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

    r1141 r1148  
    956956
    957957#ifdef DEBUG_sandervl
    958 void emR3SingleStepExec(PVM pVM, uint32_t cIterations)
     958void emR3SingleStepExecRaw(PVM pVM, uint32_t cIterations)
    959959{
    960960    EMSTATE  enmOldState = pVM->em.s.enmState;
     
    968968        DBGFR3PrgStep(pVM);
    969969        emR3RawStep(pVM);
     970        DBGFR3DisasInstrCurrentLog(pVM, "RSS: ");
     971    }
     972    Log(("Single step END:\n"));
     973    CPUMSetGuestEFlags(pVM, CPUMGetGuestEFlags(pVM) & ~X86_EFL_TF);
     974    pVM->em.s.enmState = enmOldState;
     975}
     976
     977void emR3SingleStepExecRem(PVM pVM, uint32_t cIterations)
     978{
     979    EMSTATE  enmOldState = pVM->em.s.enmState;
     980    PCPUMCTX pCtx        = pVM->em.s.pCtx;
     981
     982    pVM->em.s.enmState = EMSTATE_DEBUG_GUEST_REM;
     983
     984    Log(("Single step BEGIN:\n"));
     985    for(uint32_t i=0;i<cIterations;i++)
     986    {
     987        DBGFR3PrgStep(pVM);
     988        emR3RemStep(pVM);
    970989        DBGFR3DisasInstrCurrentLog(pVM, "RSS: ");
    971990    }
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