From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSyGT-0004vR-3y for qemu-devel@nongnu.org; Thu, 28 Jul 2016 23:15:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSyGR-0002Sr-8B for qemu-devel@nongnu.org; Thu, 28 Jul 2016 23:15:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSyGR-0002SV-39 for qemu-devel@nongnu.org; Thu, 28 Jul 2016 23:15:07 -0400 Date: Fri, 29 Jul 2016 06:15:03 +0300 From: "Michael S. Tsirkin" Message-ID: <1469762011-7902-3-git-send-email-mst@redhat.com> References: <1469762011-7902-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1469762011-7902-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 02/41] 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: Peter Maydell , Marcel Apfelbaum From: Marcel Apfelbaum 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 --- 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 0444b59..c8b5ac4 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); -- MST