[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 02/25] net: cadence_gem: Add Tx descriptor fetch prin
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 02/25] net: cadence_gem: Add Tx descriptor fetch printf |
Date: |
Tue, 10 Jun 2014 20:08:20 +0400 |
From: Peter Crosthwaite <address@hidden>
Add a debug printf for TX descriptor fetching. This is helpful to anyone
needing to debug TX ring buffer traversal. It is also now consistent with
the RX code which has a similar printf.
Signed-off-by: Peter Crosthwaite <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
hw/net/cadence_gem.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c
index 5335db8..cfb696a 100644
--- a/hw/net/cadence_gem.c
+++ b/hw/net/cadence_gem.c
@@ -880,6 +880,8 @@ static void gem_transmit(GemState *s)
/* read current descriptor */
packet_desc_addr = s->tx_desc_addr;
+
+ DB_PRINT("read descriptor 0x%" HWADDR_PRIx "\n", packet_desc_addr);
cpu_physical_memory_read(packet_desc_addr,
(uint8_t *)&desc[0], sizeof(desc));
/* Handle all descriptors owned by hardware */
@@ -962,6 +964,7 @@ static void gem_transmit(GemState *s)
} else {
packet_desc_addr += 8;
}
+ DB_PRINT("read descriptor 0x%" HWADDR_PRIx "\n", packet_desc_addr);
cpu_physical_memory_read(packet_desc_addr,
(uint8_t *)&desc[0], sizeof(desc));
}
--
1.7.10.4
- [Qemu-devel] [PULL 00/25] Trivial patches for 2014-06-10, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 02/25] net: cadence_gem: Add Tx descriptor fetch printf,
Michael Tokarev <=
- [Qemu-devel] [PULL 06/25] slirp: Remove unused zero_ethaddr[] variable, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 05/25] qtest: fix hex2nib for capital characters, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 04/25] net: cadence_gem: Remove &desc[0] usages, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 10/25] hw/dma/xilinx_axidma: Remove unused stream_halted() function, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 19/25] smbios: use g_free directly on NULL pointers, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 22/25] libcacard: Clean up dead stores before g_free(), Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 23/25] migration: Plug memory leak in migrate-set-cache-size command, Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 21/25] libcacard: Drop superfluous conditionals around g_free(), Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 17/25] apb: Fix compiler warnings (large constants), Michael Tokarev, 2014/06/10
- [Qemu-devel] [PULL 14/25] hw/misc/milkymist-softusb: Remove unused softusb_{read, write}_pmem(), Michael Tokarev, 2014/06/10