Changeset 71774 in vbox for trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
- Timestamp:
- Apr 9, 2018 2:50:53 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 121877
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r71768 r71774 111 111 pPciAddr->iDeviceFunc = (GCPhysAddr >> 12) & ((1<<(5+3)) - 1); // 5 bits - device, 3 bits - function 112 112 pPciAddr->iRegister = (GCPhysAddr >> 0) & ((1<<(6+4+2)) - 1); // 6 bits - register, 4 bits - extended register, 2 bits -Byte Enable 113 RT_UNTRUSTED_VALIDATED_FENCE(); /* paranoia */ 113 114 } 114 115 … … 118 119 pPciAddr->iDeviceFunc = (pPciRoot->uConfigReg >> 8) & 0xff; 119 120 pPciAddr->iRegister = (pPciRoot->uConfigReg & 0xfc) | (addr & 3); 121 RT_UNTRUSTED_VALIDATED_FENCE(); /* paranoia */ 120 122 } 121 123 … … 689 691 * @remarks Caller enters the device critical section. 690 692 */ 691 PDMBOTHCBDECL(int) ich9pciMcfgMMIORead 693 PDMBOTHCBDECL(int) ich9pciMcfgMMIORead(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb) 692 694 { 693 695 PDEVPCIROOT pPciRoot = PDMINS_2_DATA(pDevIns, PDEVPCIROOT);
Note:
See TracChangeset
for help on using the changeset viewer.