提交 2c533c54 编写于 作者: M Marcel Apfelbaum 提交者: Michael S. Tsirkin

hw/pcie-root-port: Fix PCIe root port initialization

Specify the root port interrupt pin as part of the init
process for cases when msi/msix are not enabled.

Fixes "hw/pci/pci.c:196:23: runtime error: shift exponent -1 is negative"
warning from clang's sanitizer.
Reported-by: NPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: NMarcel Apfelbaum <marcel@redhat.com>
Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
上级 6b449540
...@@ -100,6 +100,7 @@ static int ioh3420_initfn(PCIDevice *d) ...@@ -100,6 +100,7 @@ static int ioh3420_initfn(PCIDevice *d)
int rc; int rc;
Error *err = NULL; Error *err = NULL;
pci_config_set_interrupt_pin(d->config, 1);
pci_bridge_initfn(d, TYPE_PCIE_BUS); pci_bridge_initfn(d, TYPE_PCIE_BUS);
pcie_port_init_reg(d); pcie_port_init_reg(d);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册