diff --git a/hw/pci-bridge/cxl_root_port.c b/hw/pci-bridge/cxl_root_port.c index 0ee18ef5c3..df69c5200f 100644 --- a/hw/pci-bridge/cxl_root_port.c +++ b/hw/pci-bridge/cxl_root_port.cstatic void cxl_rp_dvsec_write_config(PCIDevice *dev, uint32_t addr, diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c index 1de0b1e4fd..d452199d85 100644 --- a/hw/pci/pcie.c +++ b/hw/pci/pcie.c @@ -217,7 +217,7 @@ static void pcie_cap_fill_slot_lnk(PCIDevice *dev) /* the PCI_EXP_LNKSTA_DLLLA will be set in the hotplug function */ } - pcie_cap_fill_lnk(exp_cap, s->width, s->speed, s->flitmode); + pcie_cap_fill_lnk(exp_cap, s->width, s->speed, s->parent_obj.flitmode);I think we should use a cast to the parent object type rather than going directly into s->parent_obj. PCIE_PORT(s)->flitmode.
Hi Jonathan, Got your point and it makes sense, will change that in the next version of this patch series. Thanks for the suggestion.
}
