summaryrefslogtreecommitdiff
path: root/src/mem/tport.hh
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-10-31 13:59:30 -0500
committerKevin Lim <ktlim@umich.edu>2006-10-31 13:59:30 -0500
commitb26355daa87c7a86a96a90b2002bc5684741288c (patch)
tree2e2a0782c5fda7f1129a24a33c509003edd43ba0 /src/mem/tport.hh
parenteda7148af25e8e106e8983fb37952263dcae5275 (diff)
downloadgem5-b26355daa87c7a86a96a90b2002bc5684741288c.tar.xz
Ports now have a pointer to the MemObject that owns it (can be NULL).
src/cpu/simple/atomic.hh: Port now takes in the MemObject that owns it. src/cpu/simple/timing.hh: Port now takes in MemObject that owns it. src/dev/io_device.cc: src/mem/bus.hh: Ports now take in the MemObject that owns it. src/mem/cache/base_cache.cc: Ports now take in the MemObject that own it. src/mem/port.hh: src/mem/tport.hh: Ports now optionally take in the MemObject that owns it. --HG-- extra : convert_revision : 890a72a871795987c2236c65937e06973412d349
Diffstat (limited to 'src/mem/tport.hh')
-rw-r--r--src/mem/tport.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/tport.hh b/src/mem/tport.hh
index fbe81c443..b419b7c7f 100644
--- a/src/mem/tport.hh
+++ b/src/mem/tport.hh
@@ -117,8 +117,8 @@ class SimpleTimingPort : public Port
public:
- SimpleTimingPort(std::string pname)
- : Port(pname), outTiming(0), drainEvent(NULL)
+ SimpleTimingPort(std::string pname, MemObject *_owner = NULL)
+ : Port(pname, _owner), outTiming(0), drainEvent(NULL)
{}
/** Hook for draining timing accesses from the system. The