Changeset 35753 in vbox for trunk/src/VBox/Devices/Bus
- Timestamp:
- Jan 28, 2011 10:58:06 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 69710
- Location:
- trunk/src/VBox/Devices/Bus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r35353 r35753 2024 2024 static DECLCALLBACK(int) pciConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 2025 2025 { 2026 int rc;2027 2026 Assert(iInstance == 0); 2027 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 2028 2028 2029 2029 /* … … 2035 2035 /* query whether we got an IOAPIC */ 2036 2036 bool fUseIoApic; 2037 rc = CFGMR3QueryBoolDef(pCfg, "IOAPIC", &fUseIoApic, false);2037 int rc = CFGMR3QueryBoolDef(pCfg, "IOAPIC", &fUseIoApic, false); 2038 2038 if (RT_FAILURE(rc)) 2039 2039 return PDMDEV_SET_ERROR(pDevIns, rc, … … 2417 2417 static DECLCALLBACK(int) pcibridgeConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 2418 2418 { 2419 int rc;2419 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 2420 2420 2421 2421 /* … … 2427 2427 /* check if RC code is enabled. */ 2428 2428 bool fGCEnabled; 2429 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true);2429 int rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true); 2430 2430 if (RT_FAILURE(rc)) 2431 2431 return PDMDEV_SET_ERROR(pDevIns, rc, -
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r35676 r35753 1202 1202 */ 1203 1203 uint8_t const fBridge = fIsBridge ? 2 : 1; 1204 Assert(!PCIIsPassthrough(pDev)); 1204 Assert(!PCIIsPassthrough(pDev)); 1205 1205 uint8_t *pbDstConfig = &pDev->config[0]; 1206 1206 … … 1398 1398 1399 1399 /* commit the loaded device config. */ 1400 Assert(!PCIIsPassthrough(pDev)); 1400 Assert(!PCIIsPassthrough(pDev)); 1401 1401 pciR3CommonRestoreConfig(pDev, &DevTmp.config[0], false ); /** @todo fix bridge fun! */ 1402 1402 … … 1756 1756 } 1757 1757 1758 AssertMsgReturn(u32Address + len <= 256, ("Read after end of PCI config space\n"), 1759 0); 1758 AssertMsgReturn(u32Address + len <= 256, ("Read after end of PCI config space\n"), 1759 0); 1760 1760 if ( PCIIsMsiCapable(aDev) 1761 1761 && (u32Address >= aDev->Int.s.u8MsiCapOffset) … … 2274 2274 PCFGMNODE pCfg) 2275 2275 { 2276 int rc;2277 2276 Assert(iInstance == 0); 2277 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 2278 2278 2279 2279 /* … … 2291 2291 /* query whether we got an IOAPIC */ 2292 2292 bool fUseIoApic; 2293 rc = CFGMR3QueryBoolDef(pCfg, "IOAPIC", &fUseIoApic, false);2293 int rc = CFGMR3QueryBoolDef(pCfg, "IOAPIC", &fUseIoApic, false); 2294 2294 if (RT_FAILURE(rc)) 2295 2295 return PDMDEV_SET_ERROR(pDevIns, rc, … … 2588 2588 PCFGMNODE pCfg) 2589 2589 { 2590 int rc;2590 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 2591 2591 2592 2592 /* … … 2598 2598 /* check if RC code is enabled. */ 2599 2599 bool fGCEnabled; 2600 rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true);2600 int rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true); 2601 2601 if (RT_FAILURE(rc)) 2602 2602 return PDMDEV_SET_ERROR(pDevIns, rc,
Note:
See TracChangeset
for help on using the changeset viewer.