Changeset 32471 in vbox for trunk/src/VBox/Main/ConsoleImpl2.cpp
- Timestamp:
- Sep 14, 2010 10:26:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r32147 r32471 822 822 ChipsetType_T chipsetType; 823 823 hrc = pMachine->COMGETTER(ChipsetType)(&chipsetType); H(); 824 uint32_t u32IocPciAddress; 824 825 825 826 switch (chipsetType) … … 829 830 case ChipsetType_PIIX3: 830 831 InsertConfigNode(pDevices, "pci", &pDev); 832 u32IocPciAddress = (0x1 << 16) | 0; // ISA controller 831 833 break; 832 834 case ChipsetType_ICH9: 833 835 InsertConfigNode(pDevices, "ich9pci", &pDev); 836 u32IocPciAddress = (0x1f << 16) | 0; // LPC controller 834 837 break; 835 838 } … … 870 873 */ 871 874 BOOL fHpetEnabled; 872 #ifdef VBOX_WITH_HPET873 875 /* Other guests may wish to use HPET too, but MacOS X not functional without it */ 874 876 hrc = pMachine->COMGETTER(HpetEnabled)(&fHpetEnabled); H(); 875 877 /* so always enable HPET in extended profile */ 876 878 fHpetEnabled |= fOsXGuest; 877 #else878 fHpetEnabled = false;879 #endif880 879 if (fHpetEnabled) 881 880 { … … 889 888 */ 890 889 BOOL fSmcEnabled; 891 #ifdef VBOX_WITH_SMC892 890 fSmcEnabled = fOsXGuest; 893 #else894 fSmcEnabled = false;895 #endif896 891 if (fSmcEnabled) 897 892 { … … 915 910 BOOL fLpcEnabled; 916 911 /** @todo: implement appropriate getter */ 917 #ifdef VBOX_WITH_LPC 918 fLpcEnabled = fOsXGuest; 919 #else 920 fLpcEnabled = false; 921 #endif 912 fLpcEnabled = fOsXGuest || (chipsetType == ChipsetType_ICH9); 922 913 if (fLpcEnabled) 923 914 { … … 2287 2278 InsertConfigInteger(pCfg, "AudioPciAddress", u32AudioPciAddr); 2288 2279 } 2280 InsertConfigInteger(pCfg, "IocPciAddress", u32IocPciAddress); 2289 2281 InsertConfigInteger(pCfg, "ShowCpu", fShowCpu); 2290 2282 InsertConfigInteger(pCfg, "CpuHotPlug", fCpuHotPlug);
Note:
See TracChangeset
for help on using the changeset viewer.