VirtualBox

Changeset 7735 in vbox


Ignore:
Timestamp:
Apr 4, 2008 9:14:57 AM (17 years ago)
Author:
vboxsync
Message:

Include EFER msr in all PGMChangeMode calls.

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

Legend:

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

    r7584 r7735  
    21152115         */
    21162116        case VINF_PGM_CHANGE_MODE:
    2117             rc = PGMChangeMode(pVM, pCtx->cr0, pCtx->cr4, 0);
     2117            rc = PGMChangeMode(pVM, pCtx->cr0, pCtx->cr4, pCtx->msrEFER);
    21182118            if (VBOX_SUCCESS(rc))
    21192119                rc = VINF_EM_RESCHEDULE;
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r7718 r7735  
    16741674                AssertRCReturn(rc, rc);
    16751675            }
    1676             return PGMChangeMode(pVM, CPUMGetGuestCR0(pVM), CPUMGetGuestCR4(pVM), 0);
     1676            return PGMChangeMode(pVM, CPUMGetGuestCR0(pVM), CPUMGetGuestCR4(pVM), CPUMGetGuestEFER(pVM));
    16771677
    16781678        case USE_REG_CR2:
     
    17141714            }
    17151715# endif
    1716             return PGMChangeMode(pVM, CPUMGetGuestCR0(pVM), CPUMGetGuestCR4(pVM), 0);
     1716            return PGMChangeMode(pVM, CPUMGetGuestCR0(pVM), CPUMGetGuestCR4(pVM), CPUMGetGuestEFER(pVM));
    17171717
    17181718        default:
  • trunk/src/VBox/VMM/VMMTests.cpp

    r5999 r7735  
    471471    pHyperCtx->cr0 = X86_CR0_PE | X86_CR0_WP | X86_CR0_PG | X86_CR0_TS | X86_CR0_ET | X86_CR0_NE | X86_CR0_MP;
    472472    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);
    474474    PGMSyncCR3(pVM, pHyperCtx->cr0, CR3Phys, pHyperCtx->cr4, true);
    475475
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