diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-11-28 14:39:19 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-11-28 14:39:19 -0800 |
commit | 8a020d40d3e7c9ecd3a41cfa5ab720080f5a9bbf (patch) | |
tree | 729567b736b1bcb116d0dfb5ba7736dc4a26bcbd /src/mem/port.hh | |
parent | ab598eadbfeefceb6501d4cca13147b660642d9e (diff) | |
download | gem5-8a020d40d3e7c9ecd3a41cfa5ab720080f5a9bbf.tar.xz |
Make ports that aren't connected to anything fail more gracefully.
--HG--
extra : convert_revision : 3803b28fb2fdfd729f01f1a44df2ae02ef83a2fc
Diffstat (limited to 'src/mem/port.hh')
-rw-r--r-- | src/mem/port.hh | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mem/port.hh b/src/mem/port.hh index b23de6050..cadf67260 100644 --- a/src/mem/port.hh +++ b/src/mem/port.hh @@ -88,9 +88,7 @@ class Port public: - Port() - : peer(NULL), owner(NULL) - { } + Port(); /** * Constructor. @@ -100,9 +98,7 @@ class Port * @param _owner Pointer to the MemObject that owns this port. * Will not necessarily be set. */ - Port(const std::string &_name, MemObject *_owner = NULL) - : portName(_name), peer(NULL), owner(_owner) - { } + Port(const std::string &_name, MemObject *_owner = NULL); /** Return port name (for DPRINTF). */ const std::string &name() const { return portName; } @@ -135,6 +131,7 @@ class Port * demise. */ void removeConn(); + virtual bool isDefaultPort() { return false; } protected: |