diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2010-01-29 20:29:20 -0800 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2010-01-29 20:29:20 -0800 |
commit | e735ca7c7705c53c3a862931beb150fdf2a776d3 (patch) | |
tree | 22d0c212203def168cf7fcc4596e7e27578419d6 /src/mem/ruby | |
parent | 0f6535dba1e94d97118023adb6df811af58b752f (diff) | |
download | gem5-e735ca7c7705c53c3a862931beb150fdf2a776d3.tar.xz |
ruby: Removed out_link_vec from Consumer
Removed the out_line_vec data structure from the Consumer. I'm not sure
what this did before, but currently it has no usefulness.
Diffstat (limited to 'src/mem/ruby')
-rw-r--r-- | src/mem/ruby/common/Consumer.hh | 6 | ||||
-rw-r--r-- | src/mem/ruby/network/simple/PerfectSwitch.cc | 1 | ||||
-rw-r--r-- | src/mem/ruby/network/simple/Throttle.cc | 2 |
3 files changed, 1 insertions, 8 deletions
diff --git a/src/mem/ruby/common/Consumer.hh b/src/mem/ruby/common/Consumer.hh index 4a14ca20f..beb50a891 100644 --- a/src/mem/ruby/common/Consumer.hh +++ b/src/mem/ruby/common/Consumer.hh @@ -47,7 +47,7 @@ class MessageBuffer; class Consumer { public: // Constructors - Consumer() { m_last_scheduled_wakeup = 0; m_last_wakeup = 0; m_out_link_vec.setSize(0); } + Consumer() { m_last_scheduled_wakeup = 0; m_last_wakeup = 0; } // Destructor virtual ~Consumer() { } @@ -59,10 +59,6 @@ public: virtual void print(ostream& out) const = 0; const Time& getLastScheduledWakeup() const { return m_last_scheduled_wakeup; } void setLastScheduledWakeup(const Time& time) { m_last_scheduled_wakeup = time; } - Vector< Vector<MessageBuffer*> > getOutBuffers() { return m_out_link_vec; } - -protected: - Vector< Vector<MessageBuffer*> > m_out_link_vec; private: // Private Methods diff --git a/src/mem/ruby/network/simple/PerfectSwitch.cc b/src/mem/ruby/network/simple/PerfectSwitch.cc index 467e1bf87..fab699ea4 100644 --- a/src/mem/ruby/network/simple/PerfectSwitch.cc +++ b/src/mem/ruby/network/simple/PerfectSwitch.cc @@ -88,7 +88,6 @@ void PerfectSwitch::addOutPort(const Vector<MessageBuffer*>& out, const NetDest& m_out.insertAtBottom(out); m_routing_table.insertAtBottom(routing_table_entry); - m_out_link_vec.insertAtBottom(out); } void PerfectSwitch::clearRoutingTables() diff --git a/src/mem/ruby/network/simple/Throttle.cc b/src/mem/ruby/network/simple/Throttle.cc index 89d61f267..29269c7d4 100644 --- a/src/mem/ruby/network/simple/Throttle.cc +++ b/src/mem/ruby/network/simple/Throttle.cc @@ -102,8 +102,6 @@ void Throttle::addLinks(const Vector<MessageBuffer*>& in_vec, const Vector<Messa m_message_counters[i][j] = 0; } } - - m_out_link_vec.insertAtBottom(out_vec); } void Throttle::addVirtualNetwork(MessageBuffer* in_ptr, MessageBuffer* out_ptr) |