Changeset 65320 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jan 16, 2017 12:39:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r65302 r65320 268 268 } 269 269 270 Log2(("ich9pciDataWriteAddr: %02x:%02x :%02xreg %x(%d) %x %Rrc\n",270 Log2(("ich9pciDataWriteAddr: %02x:%02x.%d reg %x(%d) %x %Rrc\n", 271 271 pAddr->iBus, pAddr->iDeviceFunc >> 3, pAddr->iDeviceFunc & 0x7, pAddr->iRegister, 272 272 cb, val, rc)); … … 387 387 } 388 388 389 Log3(("ich9pciDataReadAddr: %02x:%02x :%02xreg %x(%d) gave %x %Rrc\n",389 Log3(("ich9pciDataReadAddr: %02x:%02x.%d reg %x(%d) gave %x %Rrc\n", 390 390 pPciAddr->iBus, pPciAddr->iDeviceFunc >> 3, pPciAddr->iDeviceFunc & 0x7, pPciAddr->iRegister, 391 391 cb, *pu32, rc)); … … 1555 1555 static void ich9pciBiosInitBridge(PDEVPCIROOT pPciRoot, uint8_t uBus, uint8_t uDevFn) 1556 1556 { 1557 Log(("BIOS init bridge: %02x: :%02x.%d\n", uBus, uDevFn >> 3, uDevFn & 7));1557 Log(("BIOS init bridge: %02x:%02x.%d\n", uBus, uDevFn >> 3, uDevFn & 7)); 1558 1558 1559 1559 /* … … 2164 2164 && !( uMemBase <= UINT32_C(0xffffffff) 2165 2165 && uLast >= UINT32_C(0xfec00000)) 2166 && uMemBase < =UINT64_C(0xffffffff00000000) )2166 && uMemBase < UINT64_C(0xffffffff00000000) ) 2167 2167 uNew = uMemBase; 2168 2168 } … … 2475 2475 * passthrough approach), because then the abConfig array is an imprecise 2476 2476 * cache needed for efficiency (so that certain reads can be done from 2477 * R0/ GC), but far from authoritative or what the guest would see. */2477 * R0/RC), but far from authoritative or what the guest would see. */ 2478 2478 2479 2479 for (uint32_t iDev = 0; iDev < RT_ELEMENTS(pBus->apDevices); iDev++) … … 2488 2488 * as host driver handles real devices interrupts. 2489 2489 */ 2490 pHlp->pfnPrintf(pHlp, "%02x:%02x :%02x%s%s: %04x-%04x %s%s%s",2490 pHlp->pfnPrintf(pHlp, "%02x:%02x.%d %s%s: %04x-%04x %s%s%s", 2491 2491 pBus->iBus, (iDev >> 3) & 0xff, iDev & 0x7, 2492 2492 pPciDev->pszNameR3, … … 2561 2561 uint16_t iCmd = ich9pciGetWord(pPciDev, VBOX_PCI_COMMAND); 2562 2562 uint16_t iStatus = ich9pciGetWord(pPciDev, VBOX_PCI_STATUS); 2563 pHlp->pfnPrintf(pHlp, "Command: %04 X, Status: %04x\n", iCmd, iStatus);2563 pHlp->pfnPrintf(pHlp, "Command: %04x, Status: %04x\n", iCmd, iStatus); 2564 2564 devpciR3InfoIndent(pHlp, iIndentLvl + 2); 2565 2565 pHlp->pfnPrintf(pHlp, "Bus master: %s\n", iCmd & VBOX_PCI_COMMAND_MASTER ? "Yes" : "No"); 2566 if (iCmd != PDMPciDevGetCommand(pPciDev)) 2567 { 2568 devpciR3InfoIndent(pHlp, iIndentLvl + 2); 2569 pHlp->pfnPrintf(pHlp, "CACHE INCONSISTENCY: Command: %04x\n", PDMPciDevGetCommand(pPciDev)); 2570 } 2566 2571 2567 2572 if (fRegisters) … … 2590 2595 { 2591 2596 PDEVPCIBUS pBusSub = PDMINS_2_DATA(pBus->papBridgesR3[iBridge]->Int.s.CTX_SUFF(pDevIns), PDEVPCIBUS); 2597 uint8_t uPrimary = ich9pciGetByte(&pBusSub->PciDev, VBOX_PCI_PRIMARY_BUS); 2598 uint8_t uSecondary = ich9pciGetByte(&pBusSub->PciDev, VBOX_PCI_SECONDARY_BUS); 2599 uint8_t uSubordinate = ich9pciGetByte(&pBusSub->PciDev, VBOX_PCI_SUBORDINATE_BUS); 2592 2600 devpciR3InfoIndent(pHlp, iIndentLvl); 2593 2601 pHlp->pfnPrintf(pHlp, "bridge topology: primary=%d secondary=%d subordinate=%d\n", 2594 ich9pciGetByte(&pBusSub->PciDev, VBOX_PCI_PRIMARY_BUS), 2595 ich9pciGetByte(&pBusSub->PciDev, VBOX_PCI_SECONDARY_BUS), 2596 ich9pciGetByte(&pBusSub->PciDev, VBOX_PCI_SUBORDINATE_BUS)); 2602 uPrimary, uSecondary, uSubordinate); 2603 if ( uPrimary != PDMPciDevGetByte(&pBusSub->PciDev, VBOX_PCI_PRIMARY_BUS) 2604 || uSecondary != PDMPciDevGetByte(&pBusSub->PciDev, VBOX_PCI_SECONDARY_BUS) 2605 || uSubordinate != PDMPciDevGetByte(&pBusSub->PciDev, VBOX_PCI_SUBORDINATE_BUS)) 2606 { 2607 devpciR3InfoIndent(pHlp, iIndentLvl); 2608 pHlp->pfnPrintf(pHlp, "CACHE INCONSISTENCY: primary=%d secondary=%d subordinate=%d\n", 2609 PDMPciDevGetByte(&pBusSub->PciDev, VBOX_PCI_PRIMARY_BUS), 2610 PDMPciDevGetByte(&pBusSub->PciDev, VBOX_PCI_SECONDARY_BUS), 2611 PDMPciDevGetByte(&pBusSub->PciDev, VBOX_PCI_SUBORDINATE_BUS)); 2612 } 2597 2613 devpciR3InfoIndent(pHlp, iIndentLvl); 2598 2614 pHlp->pfnPrintf(pHlp, "behind bridge: I/O %#06x..%#06x\n",
Note:
See TracChangeset
for help on using the changeset viewer.