Changeset 36253 in vbox for trunk/src/VBox/Devices/Bus
- Timestamp:
- Mar 10, 2011 3:59:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r36218 r36253 2064 2064 u8Val &= UINT32_C(~0xff); 2065 2065 /* status register, low part: clear bits by writing a '1' to the corresponding bit */ 2066 if (!fPassthrough) 2067 aDev->config[addr] &= ~u8Val; 2066 aDev->config[addr] &= ~u8Val; 2068 2067 break; 2069 2068 case VBOX_PCI_STATUS+1: /* Status register, bits 8-15. */ … … 2071 2070 u8Val &= UINT32_C(~0x06); 2072 2071 /* status register, high part: clear bits by writing a '1' to the corresponding bit */ 2073 if (!fPassthrough) 2074 aDev->config[addr] &= ~u8Val; 2072 aDev->config[addr] &= ~u8Val; 2075 2073 break; 2076 2074 case VBOX_PCI_ROM_ADDRESS: case VBOX_PCI_ROM_ADDRESS +1: case VBOX_PCI_ROM_ADDRESS +2: case VBOX_PCI_ROM_ADDRESS +3: … … 2090 2088 int iRegion = fRom ? VBOX_PCI_ROM_SLOT : (addr - VBOX_PCI_BASE_ADDRESS_0) >> 2; 2091 2089 int iOffset = addr & 0x3; 2092 if (!fPassthrough) 2093 ich9pciWriteBarByte(aDev, iRegion, iOffset, u8Val); 2090 ich9pciWriteBarByte(aDev, iRegion, iOffset, u8Val); 2094 2091 fUpdateMappings = true; 2095 2092 } … … 2098 2095 default: 2099 2096 default_case: 2100 if (fWritable && !fPassthrough)2097 if (fWritable) 2101 2098 PCIDevSetByte(aDev, addr, u8Val); 2102 2099 }
Note:
See TracChangeset
for help on using the changeset viewer.