Changeset 7735 in vbox
- Timestamp:
- Apr 4, 2008 9:14:57 AM (17 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/EM.cpp
r7584 r7735 2115 2115 */ 2116 2116 case VINF_PGM_CHANGE_MODE: 2117 rc = PGMChangeMode(pVM, pCtx->cr0, pCtx->cr4, 0);2117 rc = PGMChangeMode(pVM, pCtx->cr0, pCtx->cr4, pCtx->msrEFER); 2118 2118 if (VBOX_SUCCESS(rc)) 2119 2119 rc = VINF_EM_RESCHEDULE; -
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r7718 r7735 1674 1674 AssertRCReturn(rc, rc); 1675 1675 } 1676 return PGMChangeMode(pVM, CPUMGetGuestCR0(pVM), CPUMGetGuestCR4(pVM), 0);1676 return PGMChangeMode(pVM, CPUMGetGuestCR0(pVM), CPUMGetGuestCR4(pVM), CPUMGetGuestEFER(pVM)); 1677 1677 1678 1678 case USE_REG_CR2: … … 1714 1714 } 1715 1715 # endif 1716 return PGMChangeMode(pVM, CPUMGetGuestCR0(pVM), CPUMGetGuestCR4(pVM), 0);1716 return PGMChangeMode(pVM, CPUMGetGuestCR0(pVM), CPUMGetGuestCR4(pVM), CPUMGetGuestEFER(pVM)); 1717 1717 1718 1718 default: -
trunk/src/VBox/VMM/VMMTests.cpp
r5999 r7735 471 471 pHyperCtx->cr0 = X86_CR0_PE | X86_CR0_WP | X86_CR0_PG | X86_CR0_TS | X86_CR0_ET | X86_CR0_NE | X86_CR0_MP; 472 472 pHyperCtx->cr4 = X86_CR4_PGE | X86_CR4_OSFSXR | X86_CR4_OSXMMEEXCPT; 473 PGMChangeMode(pVM, pHyperCtx->cr0, pHyperCtx->cr4, 0);473 PGMChangeMode(pVM, pHyperCtx->cr0, pHyperCtx->cr4, pHyperCtx->msrEFER); 474 474 PGMSyncCR3(pVM, pHyperCtx->cr0, CR3Phys, pHyperCtx->cr4, true); 475 475
Note:
See TracChangeset
for help on using the changeset viewer.