VirtualBox

Changeset 1982 in vbox for trunk


Ignore:
Timestamp:
Apr 7, 2007 10:13:35 AM (18 years ago)
Author:
vboxsync
Message:

Removed obsolete code.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r1976 r1982  
    373373static DECLCALLBACK(int) emR3Save(PVM pVM, PSSMHANDLE pSSM)
    374374{
    375     SSMR3PutBool(pSSM, pVM->em.s.fRawModeUsed);
    376     SSMR3PutBool(pSSM, pVM->em.s.fHwAccModeUsed);
    377375    return SSMR3PutBool(pSSM, pVM->em.s.fForceRAW);
    378376}
     
    401399     * Load the saved state.
    402400     */
    403     int rc = SSMR3GetBool(pSSM, &pVM->em.s.fRawModeUsed);
    404     if (VBOX_FAILURE(rc))
    405         pVM->em.s.fRawModeUsed = false;
    406 
    407     rc = SSMR3GetBool(pSSM, &pVM->em.s.fHwAccModeUsed);
    408     if (VBOX_FAILURE(rc))
    409         pVM->em.s.fHwAccModeUsed = false;
    410 
    411     rc = SSMR3GetBool(pSSM, &pVM->em.s.fForceRAW);
     401    int rc = SSMR3GetBool(pSSM, &pVM->em.s.fForceRAW);
    412402    if (VBOX_FAILURE(rc))
    413403        pVM->em.s.fForceRAW = false;
     
    24482438EMR3DECL(int) EMR3CheckRawForcedActions(PVM pVM)
    24492439{
    2450     int rc = VINF_SUCCESS;
    2451 
    2452     /* Too early if we haven't entered raw or hw accelerated mode yet */
    2453     /** @todo fix this properly */
    2454     if (    pVM->em.s.fHwAccModeUsed
    2455         ||  pVM->em.s.fRawModeUsed)
    2456     {
    2457         rc = emR3RawForcedActions(pVM, pVM->em.s.pCtx);
    2458     }
    2459 
    2460     return rc;
     2440    return emR3RawForcedActions(pVM, pVM->em.s.pCtx);
    24612441}
    24622442
     
    26582638        LogFlow(("RR0-E: %08X ESP=%08X IF=%d VMFlags=%x PIF=%d CPL=%d\n", pCtx->eip, pCtx->esp, pCtx->eflags.Bits.u1IF, pGCState->uVMFlags, pGCState->fPIF, (pCtx->ss & X86_SEL_RPL)));
    26592639        LogFlow(("VMMR3RawRunGC returned %Vrc\n", rc));
    2660 
    2661         /* Signal that we've used raw mode for the first time */
    2662         pVM->em.s.fRawModeUsed = true;
    26632640
    26642641        /*
     
    28712848        VMMR3Lock(pVM);
    28722849        STAM_PROFILE_STOP(&pVM->em.s.StatHwAccExec, x);
    2873 
    2874         /* Signal that we've used hardware accelerated mode for the first time */
    2875         pVM->em.s.fHwAccModeUsed = true;
    28762850
    28772851        /*
  • trunk/src/VBox/VMM/EMInternal.h

    r1976 r1982  
    4242
    4343/** The saved state version. */
    44 #define EM_SAVED_STATE_VERSION  3
     44#define EM_SAVED_STATE_VERSION                      2
    4545
    4646/** Enable for tracing in raw mode.
     
    238238    bool                    fForceRAW;
    239239
    240     /* Set when raw mode was used for the first time */
    241     bool                    fRawModeUsed;
    242     /* Set when hardware accelerated mode was used for the first time */
    243     bool                    fHwAccModeUsed;
    244 
    245240#ifdef DEBUG_TRACING_ENABLED
    246241    /** @see DEBUG_TRACING_ENABLED */
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