summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2006-04-25 10:57:08 -0400
committerNathan Binkert <binkertn@umich.edu>2006-04-25 10:57:08 -0400
commit8c80350c141aa202c168526144da3d64b6c99f71 (patch)
tree1fb9ace0888ca45b0f587c885de0be41a4bcca99 /dev
parent6d18428b5ff96e0d8557bb586866289d200232fe (diff)
downloadgem5-8c80350c141aa202c168526144da3d64b6c99f71.tar.xz
more debugging for sinic
dev/sinic.cc: more debugging fix assert --HG-- extra : convert_revision : 11ac750080f1e65415ff3735011c0b830fbcf72f
Diffstat (limited to 'dev')
-rw-r--r--dev/sinic.cc13
1 files 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);