[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 4/5] ppc440_pcix: Fix register write trace event
From: |
BALATON Zoltan |
Subject: |
[PATCH v3 4/5] ppc440_pcix: Fix register write trace event |
Date: |
Sun, 03 Jan 2021 02:09:33 +0100 |
The trace event for pci_host_config_write() was also using the trace
event for read. Add corresponding trace and correct this.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
hw/ppc/ppc440_pcix.c | 2 +-
hw/ppc/trace-events | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/ppc/ppc440_pcix.c b/hw/ppc/ppc440_pcix.c
index eb1290ffc8..7829d3e556 100644
--- a/hw/ppc/ppc440_pcix.c
+++ b/hw/ppc/ppc440_pcix.c
@@ -169,7 +169,7 @@ static void ppc440_pcix_reg_write4(void *opaque, hwaddr
addr,
{
struct PPC440PCIXState *s = opaque;
- trace_ppc440_pcix_reg_read(addr, val);
+ trace_ppc440_pcix_reg_write(addr, val, size);
switch (addr) {
case PCI_VENDOR_ID ... PCI_MAX_LAT:
stl_le_p(s->dev->config + addr, val);
diff --git a/hw/ppc/trace-events b/hw/ppc/trace-events
index ed05f2fc9a..017c48624f 100644
--- a/hw/ppc/trace-events
+++ b/hw/ppc/trace-events
@@ -117,3 +117,4 @@ ppc440_pcix_set_irq(int irq_num) "PCI irq %d"
ppc440_pcix_update_pim(int idx, uint64_t size, uint64_t la) "Added window %d
of size=0x%" PRIx64 " to CPU=0x%" PRIx64
ppc440_pcix_update_pom(int idx, uint32_t size, uint64_t la, uint64_t pcia)
"Added window %d of size=0x%x from CPU=0x%" PRIx64 " to PCI=0x%" PRIx64
ppc440_pcix_reg_read(uint64_t addr, uint32_t val) "addr 0x%" PRIx64 " = 0x%"
PRIx32
+ppc440_pcix_reg_write(uint64_t addr, uint32_t val, uint32_t size) "addr 0x%"
PRIx64 " = 0x%" PRIx32 " size 0x%" PRIx32
--
2.21.3
- [PATCH v3 0/5] Misc sam460ex fixes (was: Clean up sam460ex irq mapping), BALATON Zoltan, 2021/01/02
- [PATCH v3 2/5] sam460ex: Remove FDT_PPC dependency from KConfig, BALATON Zoltan, 2021/01/02
- [PATCH v3 3/5] ppc440_pcix: Improve comment for IRQ mapping, BALATON Zoltan, 2021/01/02
- [PATCH v3 4/5] ppc440_pcix: Fix register write trace event,
BALATON Zoltan <=
- [PATCH v3 5/5] ppc440_pcix: Fix up pci config access, BALATON Zoltan, 2021/01/02
- Re: [PATCH v3 0/5] Misc sam460ex fixes (was: Clean up sam460ex irq mapping), David Gibson, 2021/01/03