aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/phb4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/phb4.c b/hw/phb4.c
index 5563415..73ee03d 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -1867,7 +1867,7 @@ static void phb4_read_phb_status(struct phb4 *p,
phb4_pcicfg_read32(&p->phb, 0, PCI_CFG_CMD, &__32);
stat->devCmdStatus = cpu_to_be32(__32);
phb4_pcicfg_read16(&p->phb, 0, PCI_CFG_SECONDARY_STATUS, &__16);
- stat->devSecStatus = cpu_to_be32(__32);
+ stat->devSecStatus = cpu_to_be32(__16);
/* Grab a bunch of AER regs */
phb4_pcicfg_read32(&p->phb, 0, p->aercap + PCIECAP_AER_RERR_STA, &__32);