From 59369b0816de3e76fa20204be5f6144de1ce8937 Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Thu, 20 Jan 2011 16:21:39 +0900 Subject: msi: simplify write config a bit. use pci_device_deassert_intx(). Signed-off-by: Isaku Yamahata Signed-off-by: Michael S. Tsirkin --- hw/msi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'hw') diff --git a/hw/msi.c b/hw/msi.c index f03f519a2e..3dc3a24b77 100644 --- a/hw/msi.c +++ b/hw/msi.c @@ -255,7 +255,6 @@ void msi_write_config(PCIDevice *dev, uint32_t addr, uint32_t val, int len) uint8_t log_max_vecs; unsigned int vector; uint32_t pending; - int i; if (!ranges_overlap(addr, len, dev->msi_cap, msi_cap_sizeof(flags))) { return; @@ -296,9 +295,7 @@ void msi_write_config(PCIDevice *dev, uint32_t addr, uint32_t val, int len) * from using its INTx# pin (if implemented) to request * service (MSI, MSI-X, and INTx# are mutually exclusive). */ - for (i = 0; i < PCI_NUM_PINS; ++i) { - qemu_set_irq(dev->irq[i], 0); - } + pci_device_deassert_intx(dev); /* * nr_vectors might be set bigger than capable. So clamp it. -- cgit v1.2.3