OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59369b0
)
msix: simplify write config
author
Isaku Yamahata
<yamahata@valinux.co.jp>
Thu, 20 Jan 2011 07:21:40 +0000
(16:21 +0900)
committer
Michael S. Tsirkin
<mst@redhat.com>
Thu, 20 Jan 2011 13:33:34 +0000
(15:33 +0200)
use pci_device_deassert_intx().
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/msix.c
patch
|
blob
|
history
diff --git
a/hw/msix.c
b/hw/msix.c
index
e123082
..
daaf9b7
100644
(file)
--- a/
hw/msix.c
+++ b/
hw/msix.c
@@
-159,7
+159,6
@@
void msix_write_config(PCIDevice *dev, uint32_t addr,
{
unsigned enable_pos = dev->msix_cap + MSIX_CONTROL_OFFSET;
int vector;
- int i;
if (!range_covers_byte(addr, len, enable_pos)) {
return;
@@
-169,9
+168,7
@@
void msix_write_config(PCIDevice *dev, uint32_t addr,
return;
}
- for (i = 0; i < PCI_NUM_PINS; ++i) {
- qemu_set_irq(dev->irq[i], 0);
- }
+ pci_device_deassert_intx(dev);
if (msix_function_masked(dev)) {
return;