Changeset 15609 in vbox for trunk/src/VBox
- Timestamp:
- Dec 16, 2008 10:00:21 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/EM.cpp
r15572 r15609 78 78 #include <VBox/param.h> 79 79 #include <VBox/err.h> 80 81 82 /******************************************************************************* 83 * Defined Constants And Macros * 84 *******************************************************************************/ 85 #if 0 /* Disabled till after 2.1.0 when we've time to test it. */ 86 #define EM_NOTIFY_HWACCM 87 #endif 80 88 81 89 … … 1312 1320 { 1313 1321 pCtx->rip += Cpu.opsize; 1322 #ifdef EM_NOTIFY_HWACCM 1323 if (pVM->em.s.enmState == EMSTATE_DEBUG_GUEST_HWACC) 1324 HWACCMR3NotifyEmulated(VMMGetCpu(pVM)); 1325 #endif 1314 1326 STAM_PROFILE_STOP(&pVM->em.s.StatMiscEmu, a); 1315 1327 return rc; … … 1326 1338 STAM_PROFILE_STOP(&pVM->em.s.StatREMEmu, a); 1327 1339 1340 #ifdef EM_NOTIFY_HWACCM 1341 if (pVM->em.s.enmState == EMSTATE_DEBUG_GUEST_HWACC) 1342 HWACCMR3NotifyEmulated(VMMGetCpu(pVM)); 1343 #endif 1328 1344 return rc; 1329 1345 } … … 1563 1579 { 1564 1580 pCtx->rip += cpu.opsize; 1581 #ifdef EM_NOTIFY_HWACCM 1582 if (pVM->em.s.enmState == EMSTATE_DEBUG_GUEST_HWACC) 1583 HWACCMR3NotifyEmulated(VMMGetCpu(pVM)); 1584 #endif 1565 1585 return rc; 1566 1586 } … … 2057 2077 { 2058 2078 pCtx->rip += Cpu.opsize; 2079 #ifdef EM_NOTIFY_HWACCM 2080 if (pVM->em.s.enmState == EMSTATE_DEBUG_GUEST_HWACC) 2081 HWACCMR3NotifyEmulated(VMMGetCpu(pVM)); 2082 #endif 2059 2083 STAM_PROFILE_STOP(&pVM->em.s.StatPrivEmu, a); 2060 2084 … … 2783 2807 STAM_COUNTER_INC(&pVM->em.s.StatHwAccExecuteEntry); 2784 2808 2809 #ifdef EM_NOTIFY_HWACCM 2810 HWACCMR3NotifyScheduled(&pVM->aCpus[idCpu]); 2811 #endif 2812 2785 2813 /* 2786 2814 * Spin till we get a forced action which returns anything but VINF_SUCCESS. … … 2865 2893 } 2866 2894 } 2895 2867 2896 /* 2868 2897 * Return to outer loop. -
trunk/src/VBox/VMM/HWACCM.cpp
r15607 r15609 1333 1333 1334 1334 /** 1335 * Notifcation from EM about a rescheduling into hardware assisted execution 1336 * mode. 1337 * 1338 * @param pVCpu Pointer to the current virtual cpu structure. 1339 */ 1340 VMMR3DECL(void) HWACCMR3NotifyScheduled(PVMCPU pVCpu) 1341 { 1342 pVCpu->hwaccm.s.fContextUseFlags |= HWACCM_CHANGED_ALL_GUEST; 1343 } 1344 1345 /** 1346 * Notifcation from EM about returning from instruction emulation (REM / EM). 1347 * 1348 * @param pVCpu Pointer to the current virtual cpu structure. 1349 */ 1350 VMMR3DECL(void) HWACCMR3NotifyEmulated(PVMCPU pVCpu) 1351 { 1352 pVCpu->hwaccm.s.fContextUseFlags |= HWACCM_CHANGED_ALL_GUEST; 1353 } 1354 1355 /** 1335 1356 * Checks if we are currently using hardware accelerated raw mode. 1336 1357 *
Note:
See TracChangeset
for help on using the changeset viewer.