diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2013-02-28 18:23:16 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2013-02-28 18:49:24 +0000 |
commit | 288f1e3f87ec24abeac38399f175fe74243f7bc5 (patch) | |
tree | a6cf83d52d7d57633fb6330053dc9af2c9db19ba /hw | |
parent | 5025388b5083f199b05cc252c2b031d9fc230391 (diff) |
cadence_gem: Add debug msgs for rx desc movement
Add some helpful messages that show the rx descriptor pointer moving as packets
are rxed.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: 1ef2eb34dade64d589a69a2bcfd5aaddb7d50164.1360901435.git.peter.crosthwaite@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/cadence_gem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/cadence_gem.c b/hw/cadence_gem.c index 61f1801273..de7d15ab76 100644 --- a/hw/cadence_gem.c +++ b/hw/cadence_gem.c @@ -724,7 +724,9 @@ static ssize_t gem_receive(NetClientState *nc, const uint8_t *buf, size_t size) s->rx_desc_addr = last_desc_addr; if (rx_desc_get_wrap(desc)) { s->rx_desc_addr = s->regs[GEM_RXQBASE]; + DB_PRINT("wrapping RX descriptor list\n"); } else { + DB_PRINT("incrementing RX descriptor list\n"); s->rx_desc_addr += 8; } |