projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2a9d4a
)
xio3130_downstream: typo fix
author
Michael S. Tsirkin
<mst@redhat.com>
Thu, 11 Jul 2019 19:24:18 +0000
(15:24 -0400)
committer
Michael S. Tsirkin
<mst@redhat.com>
Fri, 12 Jul 2019 14:56:26 +0000
(10:56 -0400)
slt ctl/status are passed in incorrect order.
Fix this up.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/pci-bridge/xio3130_downstream.c
patch
|
blob
|
history
diff --git
a/hw/pci-bridge/xio3130_downstream.c
b/hw/pci-bridge/xio3130_downstream.c
index 899b0fd6c90c73ac252b94163ec8ea757e07c5c9..182e164f74891775926f8383d04296da63f3f681 100644
(file)
--- a/
hw/pci-bridge/xio3130_downstream.c
+++ b/
hw/pci-bridge/xio3130_downstream.c
@@
-43,7
+43,7
@@
static void xio3130_downstream_write_config(PCIDevice *d, uint32_t address,
{
uint16_t slt_ctl, slt_sta;
- pcie_cap_slot_get(d, &slt_
sta, &slt_ctl
);
+ pcie_cap_slot_get(d, &slt_
ctl, &slt_sta
);
pci_bridge_write_config(d, address, val, len);
pcie_cap_flr_write_config(d, address, val, len);
pcie_cap_slot_write_config(d, slt_ctl, slt_sta, address, val, len);