summaryrefslogtreecommitdiff
path: root/src/cpu/testers
diff options
context:
space:
mode:
authorTushar Krishna <tushar@csail.mit.edu>2012-04-05 17:51:26 -0400
committerTushar Krishna <tushar@csail.mit.edu>2012-04-05 17:51:26 -0400
commitdbe1608fd58d818f59a0adf5f3fb562f61242f99 (patch)
treed1958cd0a13574ffa8ad9230114708b7a318e615 /src/cpu/testers
parent4f4a710457af4a9c8e72632995b55f106110ac9c (diff)
downloadgem5-dbe1608fd58d818f59a0adf5f3fb562f61242f99.tar.xz
NetworkTest: remove unnecessary memory allocation
Diffstat (limited to 'src/cpu/testers')
-rw-r--r--src/cpu/testers/networktest/networktest.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cpu/testers/networktest/networktest.cc b/src/cpu/testers/networktest/networktest.cc
index 01f247707..c4d44b1ab 100644
--- a/src/cpu/testers/networktest/networktest.cc
+++ b/src/cpu/testers/networktest/networktest.cc
@@ -274,7 +274,6 @@ NetworkTest::generatePkt()
}
req->setThreadContext(id,0);
- uint8_t *result = new uint8_t[8];
//No need to do functional simulation
//We just do timing simulation of the network
@@ -286,8 +285,7 @@ NetworkTest::generatePkt()
PacketPtr pkt = new Packet(req, requestType, 0);
pkt->setSrc(0); //Not used
pkt->dataDynamicArray(new uint8_t[req->getSize()]);
- NetworkTestSenderState *state = new NetworkTestSenderState(result);
- pkt->senderState = state;
+ pkt->senderState = NULL;
sendPkt(pkt);
}