summaryrefslogtreecommitdiff
path: root/src/mem/tport.hh
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-11-10 11:51:18 -0800
committerNathan Binkert <nate@binkert.org>2008-11-10 11:51:18 -0800
commitc25d966b06061402894b99a2362cb109275b73d1 (patch)
tree9043b58798b62e0ca32d4f67fd0fc916c9954e4d /src/mem/tport.hh
parentea70a44c9f18c895f920cc13bcaf7b3d7fa3c74d (diff)
downloadgem5-c25d966b06061402894b99a2362cb109275b73d1.tar.xz
Clean up the SimpleTimingPort class a little bit.
Move the constructor into the .cc file and get rid of the typedef for SendEvent.
Diffstat (limited to 'src/mem/tport.hh')
-rw-r--r--src/mem/tport.hh14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/mem/tport.hh b/src/mem/tport.hh
index f1cb5317d..7dfe60b72 100644
--- a/src/mem/tport.hh
+++ b/src/mem/tport.hh
@@ -85,9 +85,6 @@ class SimpleTimingPort : public Port
* When the event time expires it attempts to send the packet.
* If it cannot, the packet sent when recvRetry() is called.
**/
- typedef EventWrapper<SimpleTimingPort, &SimpleTimingPort::processSendEvent>
- SendEvent;
-
Event *sendEvent;
/** If we need to drain, keep the drain event around until we're done
@@ -155,15 +152,8 @@ class SimpleTimingPort : public Port
public:
-
- SimpleTimingPort(std::string pname, MemObject *_owner)
- : Port(pname, _owner),
- sendEvent(new SendEvent(this)),
- drainEvent(NULL),
- waitingOnRetry(false)
- {}
-
- ~SimpleTimingPort() { delete sendEvent; }
+ SimpleTimingPort(std::string pname, MemObject *_owner);
+ ~SimpleTimingPort();
/** Hook for draining timing accesses from the system. The
* associated SimObject's drain() functions should be implemented