diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-07-21 15:44:57 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-07-21 15:44:57 -0400 |
commit | 5b1da825d8f9088f33b032903a5194f99bd2e954 (patch) | |
tree | 4b10db03968222b89896728d6afc7330cfd61391 | |
parent | e76c98e6be8bfbbdc604b08d4f6a190bc9cd5008 (diff) | |
download | gem5-5b1da825d8f9088f33b032903a5194f99bd2e954.tar.xz |
Wrap tracing stuff in #if TRACING_ON to avoid compile error
in m5.fast
--HG--
extra : convert_revision : 329d810bfe282e88133ca35da62ee6dcc73a38f5
-rw-r--r-- | dev/ns_gige.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dev/ns_gige.cc b/dev/ns_gige.cc index b0b093cf4..159a4442c 100644 --- a/dev/ns_gige.cc +++ b/dev/ns_gige.cc @@ -1394,6 +1394,7 @@ NSGigE::rxKick() rxPktBytes = rxPacket->length; rxPacketBufPtr = rxPacket->data; +#if TRACING_ON if (DTRACE(Ethernet)) { if (rxPacket->isIpPkt()) { ip_header *ip = rxPacket->getIpHdr(); @@ -1406,6 +1407,7 @@ NSGigE::rxKick() } } } +#endif // sanity check - i think the driver behaves like this assert(rxDescCnt >= rxPktBytes); @@ -1594,6 +1596,7 @@ NSGigE::transmit() DPRINTF(Ethernet, "\n\nAttempt Pkt Transmit: txFifo length = %d\n", maxTxFifoSize - txFifoAvail); if (interface->sendPacket(txFifo.front())) { +#if TRACING_ON if (DTRACE(Ethernet)) { if (txFifo.front()->isIpPkt()) { ip_header *ip = txFifo.front()->getIpHdr(); @@ -1606,6 +1609,7 @@ NSGigE::transmit() } } } +#endif DDUMP(Ethernet, txFifo.front()->data, txFifo.front()->length); txBytes += txFifo.front()->length; |