VirtualBox

Changeset 25957 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jan 21, 2010 1:33:58 PM (15 years ago)
Author:
vboxsync
Message:

CPUM: StrictCpuIdChecks should default to true instead of false (to override: VBoxInternal/CPUM/StrictCpuIdChecks 0). Fixed log messages about bits.

File:
1 edited

Legend:

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

    r25935 r25957  
    10861086                return SSMR3SetLoadError(pSSM, VERR_SSM_LOAD_CPUID_MISMATCH, RT_SRC_POS, \
    10871087                                         N_(#bit " mismatch: host=%d saved=%d"), \
    1088                                          aHostRaw##set [1].reg & (bit), aRaw##set [1].reg & (bit) ); \
     1088                                         !!(aHostRaw##set [1].reg & (bit)), !!(aRaw##set [1].reg & (bit)) ); \
    10891089            LogRel(("CPUM: " #bit" differs: host=%d saved=%d\n", \
    1090                     aHostRaw##set [1].reg & (bit), aRaw##set [1].reg & (bit) )); \
     1090                    !!(aHostRaw##set [1].reg & (bit)), !!(aRaw##set [1].reg & (bit)) )); \
    10911091        } \
    10921092    } while (0)
     
    10951095        if ((aHostRaw##set [1].reg & bit) != (aRaw##set [1].reg & bit)) \
    10961096            LogRel(("CPUM: " #bit" differs: host=%d saved=%d\n", \
    1097                     aHostRaw##set [1].reg & (bit), aRaw##set [1].reg & (bit) )); \
     1097                    !!(aHostRaw##set [1].reg & (bit)), !!(aRaw##set [1].reg & (bit)) )); \
    10981098    } while (0)
    10991099#define CPUID_RAW_FEATURE_IGN(set, reg, bit) do { } while (0)
     
    13161316     */
    13171317    bool fStrictCpuIdChecks;
    1318     CFGMR3QueryBoolDef(CFGMR3GetChild(CFGMR3GetRoot(pVM), "CPUM"), "StrictCpuIdChecks", &fStrictCpuIdChecks, false);
     1318    CFGMR3QueryBoolDef(CFGMR3GetChild(CFGMR3GetRoot(pVM), "CPUM"), "StrictCpuIdChecks", &fStrictCpuIdChecks, true);
    13191319
    13201320
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