diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2011-01-20 16:21:39 +0900 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2011-01-20 15:33:18 +0200 |
commit | 59369b0816de3e76fa20204be5f6144de1ce8937 (patch) | |
tree | f96c9c429892487fc734f8cc66285ee9b9443ccb /hw/msi.c | |
parent | 4c92325b5196ebd34886174a80d2f9fac35a004f (diff) | |
download | qemu-59369b0816de3e76fa20204be5f6144de1ce8937.zip qemu-59369b0816de3e76fa20204be5f6144de1ce8937.tar.gz qemu-59369b0816de3e76fa20204be5f6144de1ce8937.tar.bz2 |
msi: simplify write config a bit.
use pci_device_deassert_intx().
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/msi.c')
-rw-r--r-- | hw/msi.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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. |