summaryrefslogtreecommitdiffstats
path: root/hw/net
diff options
context:
space:
mode:
authorPeter Crosthwaite2014-05-26 10:38:21 +0200
committerMichael Tokarev2014-06-10 17:39:34 +0200
commitfa15286a758eb036258bffae2b6c128e2a477cc3 (patch)
tree514f5209220e93ee285d619503eb42a8d84c2b94 /hw/net
parentnet: cadence_gem: Fix Tx descriptor update (diff)
downloadqemu-fa15286a758eb036258bffae2b6c128e2a477cc3.tar.gz
qemu-fa15286a758eb036258bffae2b6c128e2a477cc3.tar.xz
qemu-fa15286a758eb036258bffae2b6c128e2a477cc3.zip
net: cadence_gem: Add Tx descriptor fetch printf
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 <peter.crosthwaite@xilinx.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/net')
-rw-r--r--hw/net/cadence_gem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c
index 5335db874f..cfb696a733 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));
}