Changeset 32910 in vbox for trunk/src/VBox/Main/ConsoleImpl2.cpp
- Timestamp:
- Oct 5, 2010 12:33:56 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 66393
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r32908 r32910 311 311 } 312 312 313 static uint32_t computeHyperHeapSize(ChipsetType_T chipsetType, uint32_t cCpus, bool fHwVirtExtForced)314 {315 uint32_t singleCpuBaseSize;316 317 if (cCpus > 1)318 return _2M + cCpus * _64K;319 320 if (chipsetType == ChipsetType_PIIX3)321 {322 /* Size must be kept like this for saved state compatibility */323 return fHwVirtExtForced ? 640*_1K : 1280*_1K;324 }325 326 327 return 1280*_1K;328 }329 330 313 class ConfigError : public iprt::Error 331 314 { … … 700 683 */ 701 684 PCFGMNODE pMM; 702 uint32_t cbHyperHeap = computeHyperHeapSize(chipsetType, cCpus, fHwVirtExtForced);703 685 InsertConfigNode(pRoot, "MM", &pMM); 704 InsertConfigInteger(pMM, " cbHyperHeap", cbHyperHeap);686 InsertConfigInteger(pMM, "CanUseLargerHeap", chipsetType == ChipsetType_ICH9); 705 687 706 688 /*
Note:
See TracChangeset
for help on using the changeset viewer.