Changeset 62885 in vbox for trunk/src/VBox/Devices/Bus
- Timestamp:
- Aug 2, 2016 4:21:40 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices/Bus
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r62629 r62885 2141 2141 static DECLCALLBACK(int) pciR3Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 2142 2142 { 2143 RT_NOREF1(iInstance); 2143 2144 Assert(iInstance == 0); 2144 2145 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); -
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r62631 r62885 1943 1943 { 1944 1944 PICH9PCIGLOBALS pGlobals = PDMINS_2_DATA(pDevIns, PICH9PCIGLOBALS); 1945 PVM pVM = PDMDevHlpGetVM(pDevIns);1946 Assert(pVM);1947 1945 1948 1946 /* … … 1963 1961 */ 1964 1962 for (int i = 0; i < 256; i++) 1965 {1966 1963 ich9pciBiosInitDevice(pGlobals, 0, i); 1967 }1968 1964 1969 1965 return VINF_SUCCESS; … … 2517 2513 2518 2514 2519 static DECLCALLBACK(int) ich9pciConstruct(PPDMDEVINS pDevIns, 2520 int iInstance, 2521 PCFGMNODE pCfg) 2522 { 2515 static DECLCALLBACK(int) ich9pciConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 2516 { 2517 RT_NOREF1(iInstance); 2523 2518 Assert(iInstance == 0); 2524 2519 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); -
trunk/src/VBox/Devices/Bus/MsiCommon.cpp
r62518 r62885 201 201 uint32_t MsiPciConfigRead (PPDMDEVINS pDevIns, PPCIDEVICE pDev, uint32_t u32Address, unsigned len) 202 202 { 203 int32_t iOff = u32Address - pDev->Int.s.u8MsiCapOffset; 204 205 Assert(iOff >= 0 && (pciDevIsMsiCapable(pDev) && iOff < pDev->Int.s.u8MsiCapSize)); 203 RT_NOREF1(pDevIns); 204 #if defined(LOG_ENABLED) || defined(VBOX_STRICT) 205 int32_t off = u32Address - pDev->Int.s.u8MsiCapOffset; 206 Assert(off >= 0 && (pciDevIsMsiCapable(pDev) && off < pDev->Int.s.u8MsiCapSize)); 207 #endif 206 208 uint32_t rv = 0; 207 209 … … 221 223 } 222 224 223 Log2(("MsiPciConfigRead: %d (%d) -> %x\n", iOff, len, rv));225 Log2(("MsiPciConfigRead: %d (%d) -> %x\n", off, len, rv)); 224 226 225 227 return rv;
Note:
See TracChangeset
for help on using the changeset viewer.