VirtualBox

Changeset 38820 in vbox


Ignore:
Timestamp:
Sep 22, 2011 2:14:49 PM (13 years ago)
Author:
vboxsync
Message:

Main: array size

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/MachineImpl.h

    r37851 r38820  
    271271        BOOL                 mCPUAttached[SchemaDefs::MaxCPUCount];
    272272
    273         settings::CpuIdLeaf  mCpuIdStdLeafs[10];
    274         settings::CpuIdLeaf  mCpuIdExtLeafs[10];
     273        settings::CpuIdLeaf  mCpuIdStdLeafs[11];
     274        settings::CpuIdLeaf  mCpuIdExtLeafs[11];
    275275
    276276        DeviceType_T         mBootOrder[SchemaDefs::MaxBootPosition];
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r38745 r38820  
    19041904        case 0x9:
    19051905        case 0xA:
    1906             AssertCompile(RT_ELEMENTS(mHWData->mCpuIdStdLeafs) == 0xA);
     1906            AssertCompile(RT_ELEMENTS(mHWData->mCpuIdStdLeafs) == 0xB);
    19071907            AssertRelease(aId < RT_ELEMENTS(mHWData->mCpuIdStdLeafs));
    19081908            setModified(IsModified_MachineData);
     
    19261926        case 0x80000009:
    19271927        case 0x8000000A:
    1928             AssertCompile(RT_ELEMENTS(mHWData->mCpuIdExtLeafs) == 0xA);
     1928            AssertCompile(RT_ELEMENTS(mHWData->mCpuIdExtLeafs) == 0xB);
    19291929            AssertRelease(aId - 0x80000000 < RT_ELEMENTS(mHWData->mCpuIdExtLeafs));
    19301930            setModified(IsModified_MachineData);
     
    19661966        case 0x9:
    19671967        case 0xA:
    1968             AssertCompile(RT_ELEMENTS(mHWData->mCpuIdStdLeafs) == 0xA);
     1968            AssertCompile(RT_ELEMENTS(mHWData->mCpuIdStdLeafs) == 0xB);
    19691969            AssertRelease(aId < RT_ELEMENTS(mHWData->mCpuIdStdLeafs));
    19701970            setModified(IsModified_MachineData);
     
    19851985        case 0x80000009:
    19861986        case 0x8000000A:
    1987             AssertCompile(RT_ELEMENTS(mHWData->mCpuIdExtLeafs) == 0xA);
     1987            AssertCompile(RT_ELEMENTS(mHWData->mCpuIdExtLeafs) == 0xB);
    19881988            AssertRelease(aId - 0x80000000 < RT_ELEMENTS(mHWData->mCpuIdExtLeafs));
    19891989            setModified(IsModified_MachineData);
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