[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V5 1/7] hw/pcie-root-port: Fix PCIe root port initia
From: |
Marcel Apfelbaum |
Subject: |
[Qemu-devel] [PATCH V5 1/7] hw/pcie-root-port: Fix PCIe root port initialization |
Date: |
Sun, 17 Jul 2016 19:53:08 +0300 |
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 <address@hidden>
Signed-off-by: Marcel Apfelbaum <address@hidden>
---
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
- [Qemu-devel] [PATCH V5 0/7] pxb: fix 64-bit MMIO allocation, Marcel Apfelbaum, 2016/07/17
- [Qemu-devel] [PATCH V5 1/7] hw/pcie-root-port: Fix PCIe root port initialization,
Marcel Apfelbaum <=
- [Qemu-devel] [PATCH V5 2/7] tests/acpi: add pxb/pxb-pcie tests, Marcel Apfelbaum, 2016/07/17
- Re: [Qemu-devel] [PATCH V5 2/7] tests/acpi: add pxb/pxb-pcie tests, Laszlo Ersek, 2016/07/18
- Re: [Qemu-devel] [PATCH V5 2/7] tests/acpi: add pxb/pxb-pcie tests, Marcel Apfelbaum, 2016/07/18
- Re: [Qemu-devel] [PATCH V5 2/7] tests/acpi: add pxb/pxb-pcie tests, Laszlo Ersek, 2016/07/18
- [Qemu-devel] edk2 submodule + binaries (Re: [PATCH V5 2/7] tests/acpi: add pxb/pxb-pcie tests), Gerd Hoffmann, 2016/07/19
- Re: [Qemu-devel] edk2 submodule + binaries (Re: [PATCH V5 2/7] tests/acpi: add pxb/pxb-pcie tests), Peter Maydell, 2016/07/19