- Timestamp:
- Apr 7, 2007 10:13:35 AM (18 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/EM.cpp
r1976 r1982 373 373 static DECLCALLBACK(int) emR3Save(PVM pVM, PSSMHANDLE pSSM) 374 374 { 375 SSMR3PutBool(pSSM, pVM->em.s.fRawModeUsed);376 SSMR3PutBool(pSSM, pVM->em.s.fHwAccModeUsed);377 375 return SSMR3PutBool(pSSM, pVM->em.s.fForceRAW); 378 376 } … … 401 399 * Load the saved state. 402 400 */ 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); 412 402 if (VBOX_FAILURE(rc)) 413 403 pVM->em.s.fForceRAW = false; … … 2448 2438 EMR3DECL(int) EMR3CheckRawForcedActions(PVM pVM) 2449 2439 { 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); 2461 2441 } 2462 2442 … … 2658 2638 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))); 2659 2639 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;2663 2640 2664 2641 /* … … 2871 2848 VMMR3Lock(pVM); 2872 2849 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;2876 2850 2877 2851 /* -
trunk/src/VBox/VMM/EMInternal.h
r1976 r1982 42 42 43 43 /** The saved state version. */ 44 #define EM_SAVED_STATE_VERSION 344 #define EM_SAVED_STATE_VERSION 2 45 45 46 46 /** Enable for tracing in raw mode. … … 238 238 bool fForceRAW; 239 239 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 245 240 #ifdef DEBUG_TRACING_ENABLED 246 241 /** @see DEBUG_TRACING_ENABLED */
Note:
See TracChangeset
for help on using the changeset viewer.