diff options
author | Isaku Yamahata | 2010-10-18 05:17:42 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2010-10-18 08:07:01 +0200 |
commit | 1a4f5971b6f785db7cb2b964754d04103a0d2033 (patch) | |
tree | 0fe0a03c1deb6e9d070f581836599b5b0f2564fd /hw/pci.c | |
parent | msix: clear not only INTA, but all INTx when MSI-X is enabled. (diff) | |
download | qemu-1a4f5971b6f785db7cb2b964754d04103a0d2033.tar.gz qemu-1a4f5971b6f785db7cb2b964754d04103a0d2033.tar.xz qemu-1a4f5971b6f785db7cb2b964754d04103a0d2033.zip |
pci: make pci_del_capability() update for w1cmask
Clear w1cmask when deleting a pci capability.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci.c')
-rw-r--r-- | hw/pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1745,6 +1745,7 @@ void pci_del_capability(PCIDevice *pdev, uint8_t cap_id, uint8_t size) pdev->config[prev] = pdev->config[offset + PCI_CAP_LIST_NEXT]; /* Make capability writeable again */ memset(pdev->wmask + offset, 0xff, size); + memset(pdev->w1cmask + offset, 0, size); /* Clear cmask as device-specific registers can't be checked */ memset(pdev->cmask + offset, 0, size); memset(pdev->used + offset, 0, size); |