Received: from eggs.gnu.org ([2001:4830:134:3::10]:37338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOpJk-0007K5-Cc for qemu-devel@nongnu.org; Sun, 17 Jul 2016 12:53:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOpJj-0005Zy-7D for qemu-devel@nongnu.org; Sun, 17 Jul 2016 12:53:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOpJj-0005Zu-1C for qemu-devel@nongnu.org; Sun, 17 Jul 2016 12:53:23 -0400 From: Marcel Apfelbaum Date: Sun, 17 Jul 2016 19:53:08 +0300 Message-Id: <1468774394-23009-2-git-send-email-marcel@redhat.com> In-Reply-To: <1468774394-23009-1-git-send-email-marcel@redhat.com> References: <1468774394-23009-1-git-send-email-marcel@redhat.com> Subject: [Qemu-devel] [PATCH V5 1/7] hw/pcie-root-port: Fix PCIe root port initialization List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: marcel@redhat.com, mst@redhat.com, pbonzini@redhat.com, imammedo@redhat.com, lersek@redhat.com, ehabkost@redhat.com, peter.maydell@linaro.org 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 --- hw/pci-bridge/ioh3420.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/pci-bridge/ioh3420.c b/hw/pci-bridge/ioh3420.c index 93c6f0b..d88cae5 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); -- 2.4.3