Changeset 65867 in vbox for trunk/src/VBox
- Timestamp:
- Feb 23, 2017 4:34:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r65847 r65867 2351 2351 static void devpciR3UpdateMappings(PPDMPCIDEV pPciDev, bool fP2PBridge) 2352 2352 { 2353 /* * @todo r=klaus analyze if it's safe to rely on cached config space data, as that's cheaper to read in the raw pci device and pass-through cases.*/2354 uint16_t const u16Cmd = ich9pciGetWord(pPciDev, VBOX_PCI_COMMAND);2353 /* safe, only needs to go to the config space array */ 2354 uint16_t const u16Cmd = PDMPciDevGetWord(pPciDev, VBOX_PCI_COMMAND); 2355 2355 for (unsigned iRegion = 0; iRegion < VBOX_PCI_NUM_REGIONS; iRegion++) 2356 2356 { … … 2374 2374 if (u16Cmd & VBOX_PCI_COMMAND_IO) 2375 2375 { 2376 uint32_t uIoBase = ich9pciGetDWord(pPciDev, offCfgReg); 2376 /* safe, only needs to go to the config space array */ 2377 uint32_t uIoBase = PDMPciDevGetDWord(pPciDev, offCfgReg); 2377 2378 uIoBase &= ~(uint32_t)(cbRegion - 1); 2378 2379 … … 2395 2396 else if (u16Cmd & VBOX_PCI_COMMAND_MEMORY) 2396 2397 { 2397 uint64_t uMemBase = ich9pciGetDWord(pPciDev, offCfgReg); 2398 /* safe, only needs to go to the config space array */ 2399 uint64_t uMemBase = PDMPciDevGetDWord(pPciDev, offCfgReg); 2398 2400 if (f64Bit) 2399 2401 { 2400 2402 Assert(iRegion < VBOX_PCI_ROM_SLOT); 2401 uMemBase |= (uint64_t)ich9pciGetDWord(pPciDev, offCfgReg + 4) << 32; 2403 /* safe, only needs to go to the config space array */ 2404 uMemBase |= (uint64_t)PDMPciDevGetDWord(pPciDev, offCfgReg + 4) << 32; 2402 2405 } 2403 2406 if ( iRegion != PCI_ROM_SLOT
Note:
See TracChangeset
for help on using the changeset viewer.