|
@@ -1483,7 +1483,7 @@ static int assigned_device_pci_cap_init(PCIDevice *pci_dev, Error **errp)
|
|
|
* error bits, leave the rest. */
|
|
|
status = pci_get_long(pci_dev->config + pos + PCI_X_STATUS);
|
|
|
status &= ~(PCI_X_STATUS_BUS | PCI_X_STATUS_DEVFN);
|
|
|
- status |= (pci_bus_num(pci_dev->bus) << 8) | pci_dev->devfn;
|
|
|
+ status |= pci_requester_id(pci_dev);
|
|
|
status &= ~(PCI_X_STATUS_SPL_DISC | PCI_X_STATUS_UNX_SPL |
|
|
|
PCI_X_STATUS_SPL_ERR);
|
|
|
pci_set_long(pci_dev->config + pos + PCI_X_STATUS, status);
|