VirtualBox

Changeset 23244 in vbox


Ignore:
Timestamp:
Sep 23, 2009 8:11:50 AM (15 years ago)
Author:
vboxsync
Message:

Fixed tpr patch restore

File:
1 edited

Legend:

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

    r23226 r23244  
    25012501        AssertRCReturn(rc, rc);
    25022502
    2503         if (pVM->hwaccm.s.svm.cPatches)
    2504             pVM->hwaccm.s.svm.fTPRPatchingActive = true;
    2505 
    25062503        for (unsigned i = 0; i < pVM->hwaccm.s.svm.cPatches; i++)
    25072504        {
     
    25252522            rc = SSMR3GetU32(pSSM, (uint32_t *)&pPatch->enmType);
    25262523            AssertRCReturn(rc, rc);
     2524
     2525            if (pPatch->enmType == HWACCMTPRINSTR_JUMP_REPLACEMENT)
     2526                pVM->hwaccm.s.svm.fTPRPatchingActive = true;
     2527
     2528            Assert(pPatch->enmType == HWACCMTPRINSTR_JUMP_REPLACEMENT || pVM->hwaccm.s.svm.fTPRPatchingActive == false);
    25272529
    25282530            rc = SSMR3GetU32(pSSM, &pPatch->uSrcOperand);
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