summaryrefslogtreecommitdiff
path: root/hw/pci/pcie_aer.c
diff options
context:
space:
mode:
authorChen Fan <chen.fan.fnst@cn.fujitsu.com>2015-03-10 09:49:49 +0800
committerMichael S. Tsirkin <mst@redhat.com>2015-03-18 12:19:16 +0100
commit310e91f7d0aaec27f55969597ccbb4e83612695e (patch)
tree3118b1ddc9643fa18d7f690840e103a92e136e49 /hw/pci/pcie_aer.c
parentb01738c23da718678469cbe85c0a4a82b19652d4 (diff)
downloadqemu-310e91f7d0aaec27f55969597ccbb4e83612695e.tar.gz
aer: fix a wrong init PCI_ERR_COR_STATUS w1cmask type register
Error Status Register, so this patch fix a wrong definition for PCI_ERR_COR_STATUS register with w1cmask type. Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci/pcie_aer.c')
-rw-r--r--hw/pci/pcie_aer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci/pcie_aer.c b/hw/pci/pcie_aer.c
index 9daebc2bd8..9126058ea6 100644
--- a/hw/pci/pcie_aer.c
+++ b/hw/pci/pcie_aer.c
@@ -123,7 +123,7 @@ int pcie_aer_init(PCIDevice *dev, uint16_t offset)
PCI_ERR_UNC_SUPPORTED);
pci_long_test_and_set_mask(dev->w1cmask + offset + PCI_ERR_COR_STATUS,
- PCI_ERR_COR_STATUS);
+ PCI_ERR_COR_SUPPORTED);
pci_set_long(dev->config + offset + PCI_ERR_COR_MASK,
PCI_ERR_COR_MASK_DEFAULT);