projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f4a710
)
NetworkTest: remove unnecessary memory allocation
author
Tushar Krishna
<tushar@csail.mit.edu>
Thu, 5 Apr 2012 21:51:26 +0000
(17:51 -0400)
committer
Tushar Krishna
<tushar@csail.mit.edu>
Thu, 5 Apr 2012 21:51:26 +0000
(17:51 -0400)
src/cpu/testers/networktest/networktest.cc
patch
|
blob
|
history
diff --git
a/src/cpu/testers/networktest/networktest.cc
b/src/cpu/testers/networktest/networktest.cc
index 01f2477070be4606ec7910853cf4ce07830d2ef7..c4d44b1ab5377f81a5d963e8c74dae4037d8ea8f 100644
(file)
--- 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);
}