VirtualBox

Changeset 87347 in vbox


Ignore:
Timestamp:
Jan 21, 2021 11:55:06 AM (4 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Recalc DRx after loading state. Ignore saved use flags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r83197 r87347  
    29592959             * Restore a couple of flags and the MSRs.
    29602960             */
    2961             SSMR3GetU32(pSSM, &pVCpu->cpum.s.fUseFlags);
     2961            uint32_t fIgnoredUsedFlags = 0;
     2962            rc = SSMR3GetU32(pSSM, &fIgnoredUsedFlags); /* we're recalc the two relevant flags after loading state. */
     2963            AssertRCReturn(rc, rc);
    29622964            SSMR3GetU32(pSSM, &pVCpu->cpum.s.fChanged);
    29632965
     
    31153117        if (fSupportsLongMode)
    31163118            pVCpu->cpum.s.fUseFlags |= CPUM_USE_SUPPORTS_LONGMODE;
     3119
     3120        /* Recalc the CPUM_USE_DEBUG_REGS_HYPER value. */
     3121        CPUMRecalcHyperDRx(pVCpu, UINT8_MAX);
    31173122    }
    31183123    return VINF_SUCCESS;
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