From: Marcel Apfelbaum Date: Sun, 17 Jul 2016 16:53:08 +0000 (+0300) Subject: hw/pcie-root-port: Fix PCIe root port initialization X-Git-Tag: v2.7.0-rc1~6^2~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c533c5479f0f712578422529b20651f01adb0f4;p=thirdparty%2Fqemu.git 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: Peter Maydell Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/pci-bridge/ioh3420.c b/hw/pci-bridge/ioh3420.c index 0444b596c6a..c8b5ac4207c 100644 --- a/hw/pci-bridge/ioh3420.c +++ b/hw/pci-bridge/ioh3420.c @@ -100,6 +100,7 @@ static int ioh3420_initfn(PCIDevice *d) int rc; Error *err = NULL; + pci_config_set_interrupt_pin(d->config, 1); pci_bridge_initfn(d, TYPE_PCIE_BUS); pcie_port_init_reg(d);