summaryrefslogtreecommitdiff
path: root/src/mem/tport.cc
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.cc
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.cc')
-rw-r--r--src/mem/tport.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mem/tport.cc b/src/mem/tport.cc
index 0656f6d82..f937eeb32 100644
--- a/src/mem/tport.cc
+++ b/src/mem/tport.cc
@@ -30,6 +30,21 @@
#include "mem/tport.hh"
+using namespace std;
+
+SimpleTimingPort::SimpleTimingPort(string pname, MemObject *_owner)
+ : Port(pname, _owner), sendEvent(0), drainEvent(NULL),
+ waitingOnRetry(false)
+{
+ sendEvent = new EventWrapper<SimpleTimingPort,
+ &SimpleTimingPort::processSendEvent>(this);
+}
+
+SimpleTimingPort::~SimpleTimingPort()
+{
+ delete sendEvent;
+}
+
bool
SimpleTimingPort::checkFunctional(PacketPtr pkt)
{