From 8c80350c141aa202c168526144da3d64b6c99f71 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Tue, 25 Apr 2006 10:57:08 -0400 Subject: [PATCH] more debugging for sinic dev/sinic.cc: more debugging fix assert --HG-- extra : convert_revision : 11ac750080f1e65415ff3735011c0b830fbcf72f --- dev/sinic.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/dev/sinic.cc b/dev/sinic.cc index 114fa165e..88e365e66 100644 --- a/dev/sinic.cc +++ b/dev/sinic.cc @@ -802,8 +802,10 @@ Device::rxDmaCopy() { assert(rxState == rxCopy); rxState = rxCopyDone; + DPRINTF(EthernetDMA, "begin rx dma write paddr=%#x len=%d\n", + rxDmaAddr, rxDmaLen); physmem->dma_write(rxDmaAddr, (uint8_t *)rxDmaData, rxDmaLen); - DPRINTF(EthernetDMA, "rx dma write paddr=%#x len=%d\n", + DPRINTF(EthernetDMA, "end rx dma write paddr=%#x len=%d\n", rxDmaAddr, rxDmaLen); DDUMP(EthernetData, rxDmaData, rxDmaLen); } @@ -868,6 +870,7 @@ Device::rxKick() /* scope for variables */ { IpPtr ip(*vnic->rxPacket); if (ip) { + DPRINTF(Ethernet, "ID is %d\n", ip->id()); vnic->rxDoneData |= Regs::RxDone_IpPacket; rxIpChecksums++; if (cksum(ip) != 0) { @@ -1023,8 +1026,10 @@ Device::transmit() DPRINTF(Ethernet, "ID is %d\n", ip->id()); TcpPtr tcp(ip); if (tcp) { - DPRINTF(Ethernet, "Src Port=%d, Dest Port=%d\n", - tcp->sport(), tcp->dport()); + DPRINTF(Ethernet, + "Src Port=%d, Dest Port=%d, Seq=%d, Ack=%d\n", + tcp->sport(), tcp->dport(), tcp->seq(), + tcp->ack()); } } } @@ -1071,7 +1076,7 @@ Device::txKick() switch (txState) { case txFifoBlock: - assert(Regs::get_TxDone_Busy(vnic->TxData)); + assert(Regs::get_TxDone_Busy(vnic->TxDone)); if (!txPacket) { // Grab a new packet from the fifo. txPacket = new PacketData(16384); -- 2.30.2