Changeset 12428 in vbox for trunk/src/VBox/Main/ConsoleImpl2.cpp
- Timestamp:
- Sep 12, 2008 3:08:00 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 36498
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r12028 r12428 134 134 hrc = pMachine->COMGETTER(MemorySize)(&cRamMBs); H(); 135 135 136 #ifdef VBOX_WITH_SMP_GUESTS 137 /* @todo: r=nike: Testing code, should use actual getter when ready */ 138 uint16_t cNumCpus = 2; 139 #else 140 uint16_t cNumCpus = 1; 141 #endif 136 142 137 143 /* … … 151 157 rc = CFGMR3InsertBytes(pRoot, "UUID", pUuid, sizeof(*pUuid)); RC_CHECK(); 152 158 rc = CFGMR3InsertInteger(pRoot, "RamSize", cRamMBs * _1M); RC_CHECK(); 159 rc = CFGMR3InsertInteger(pRoot, "NumCPUs", cNumCpus); RC_CHECK(); 153 160 rc = CFGMR3InsertInteger(pRoot, "TimerMillies", 10); RC_CHECK(); 154 161 rc = CFGMR3InsertInteger(pRoot, "RawR3Enabled", 1); /* boolean */ RC_CHECK(); … … 272 279 rc = CFGMR3InsertNode(pInst, "Config", &pBiosCfg); RC_CHECK(); 273 280 rc = CFGMR3InsertInteger(pBiosCfg, "RamSize", cRamMBs * _1M); RC_CHECK(); 281 rc = CFGMR3InsertInteger(pBiosCfg, "NumCPUs", cNumCpus); RC_CHECK(); 274 282 rc = CFGMR3InsertString(pBiosCfg, "HardDiskDevice", "piix3ide"); RC_CHECK(); 275 283 rc = CFGMR3InsertString(pBiosCfg, "FloppyDevice", "i82078"); RC_CHECK(); … … 457 465 rc = CFGMR3InsertNode(pInst, "Config", &pCfg); RC_CHECK(); 458 466 rc = CFGMR3InsertInteger(pCfg, "RamSize", cRamMBs * _1M); RC_CHECK(); 467 rc = CFGMR3InsertInteger(pCfg, "NumCPUs", cNumCpus); RC_CHECK(); 468 459 469 rc = CFGMR3InsertInteger(pCfg, "IOAPIC", fIOAPIC); RC_CHECK(); 460 470 rc = CFGMR3InsertInteger(pCfg, "FdcEnabled", fFdcEnabled); RC_CHECK();
Note:
See TracChangeset
for help on using the changeset viewer.