Changeset 63879 in vbox for trunk/src/VBox/Devices/Bus
- Timestamp:
- Sep 19, 2016 11:28:45 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r63777 r63879 873 873 continue; 874 874 875 bool f64Bit = (pRegion->type & PCI_ADDRESS_SPACE_BAR64) != 0; 875 bool f64Bit = (pRegion->type & ((uint8_t)(PCI_ADDRESS_SPACE_BAR64 | PCI_ADDRESS_SPACE_IO))) 876 == PCI_ADDRESS_SPACE_BAR64; 876 877 877 878 if (pRegion->type & PCI_ADDRESS_SPACE_IO) … … 1628 1629 /* Read memory type first. */ 1629 1630 uint8_t uResourceType = ich9pciConfigRead(pGlobals, uBus, uDevFn, uReg, 1); 1630 bool f64Bit = (uResourceType & ((uint8_t)(PCI_ADDRESS_SPACE_BAR64 | PCI_ADDRESS_SPACE_IO)))1631 bool f64Bit = (uResourceType & ((uint8_t)(PCI_ADDRESS_SPACE_BAR64 | PCI_ADDRESS_SPACE_IO))) 1631 1632 == PCI_ADDRESS_SPACE_BAR64; 1632 1633 … … 1770 1771 uint8_t u8ResourceType = ich9pciConfigRead(pGlobals, uBus, uDevFn, u32Address, 1); 1771 1772 1772 bool f64Bit = (u8ResourceType & PCI_ADDRESS_SPACE_BAR64) != 0; 1773 bool f64Bit = (u8ResourceType & ((uint8_t)(PCI_ADDRESS_SPACE_BAR64 | PCI_ADDRESS_SPACE_IO))) 1774 == PCI_ADDRESS_SPACE_BAR64; 1773 1775 bool fIsPio = ((u8ResourceType & PCI_COMMAND_IOACCESS) == PCI_COMMAND_IOACCESS); 1774 1776 uint64_t cbRegSize64 = 0; … … 2456 2458 char szDescBuf[128]; 2457 2459 2458 bool f64Bit = !!(pRegion->type & PCI_ADDRESS_SPACE_BAR64); 2460 bool f64Bit = (pRegion->type & ((uint8_t)(PCI_ADDRESS_SPACE_BAR64 | PCI_ADDRESS_SPACE_IO))) 2461 == PCI_ADDRESS_SPACE_BAR64; 2459 2462 if (pRegion->type & PCI_ADDRESS_SPACE_IO) 2460 2463 {
Note:
See TracChangeset
for help on using the changeset viewer.