[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] pcie: Fix incorrect write to device ctl2 register
From: |
arei.gonglei |
Subject: |
[Qemu-devel] [PATCH] pcie: Fix incorrect write to device ctl2 register |
Date: |
Thu, 21 Aug 2014 16:31:04 +0800 |
From: Gonglei <address@hidden>
ARI Forwarding Enable bit locate
Device Control 2 Register (Offset 28h).
Maybe a typo.
Signed-off-by: Gonglei <address@hidden>
---
hw/pci/pcie.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c
index a123c01..3f4b319 100644
--- a/hw/pci/pcie.c
+++ b/hw/pci/pcie.c
@@ -504,7 +504,7 @@ void pcie_cap_ari_init(PCIDevice *dev)
uint32_t pos = dev->exp.exp_cap;
pci_long_test_and_set_mask(dev->config + pos + PCI_EXP_DEVCAP2,
PCI_EXP_DEVCAP2_ARI);
- pci_long_test_and_set_mask(dev->wmask + pos + PCI_EXP_DEVCTL2,
+ pci_long_test_and_set_mask(dev->config + pos + PCI_EXP_DEVCTL2,
PCI_EXP_DEVCTL2_ARI);
}
--
1.7.12.4
- [Qemu-devel] [PATCH] pcie: Fix incorrect write to device ctl2 register,
arei.gonglei <=