|
@@ -86,7 +86,13 @@ pcie_cap_v1_fill(PCIDevice *dev, uint8_t port, uint8_t type, uint8_t version)
|
|
|
* Specification, Revision 1.1., or subsequent PCI Express Base
|
|
|
* Specification revisions.
|
|
|
*/
|
|
|
- pci_set_long(exp_cap + PCI_EXP_DEVCAP, PCI_EXP_DEVCAP_RBER);
|
|
|
+ uint32_t devcap = PCI_EXP_DEVCAP_RBER;
|
|
|
+
|
|
|
+ if (dev->cap_present & QEMU_PCIE_EXT_TAG) {
|
|
|
+ devcap = PCI_EXP_DEVCAP_RBER | PCI_EXP_DEVCAP_EXT_TAG;
|
|
|
+ }
|
|
|
+
|
|
|
+ pci_set_long(exp_cap + PCI_EXP_DEVCAP, devcap);
|
|
|
|
|
|
pci_set_long(exp_cap + PCI_EXP_LNKCAP,
|
|
|
(port << PCI_EXP_LNKCAP_PN_SHIFT) |
|