summaryrefslogtreecommitdiff
path: root/src/mem/ruby/buffers/MessageBuffer.hh
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2014-02-23 19:16:15 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2014-02-23 19:16:15 -0600
commit7572ab71b56b01e3ee7742dd385af81b49bd753d (patch)
treeb354d130838382c92439fe53d6e15c7bb55eea17 /src/mem/ruby/buffers/MessageBuffer.hh
parentcde20fd476a2563bac54bb135fad0dd5e03112db (diff)
downloadgem5-7572ab71b56b01e3ee7742dd385af81b49bd753d.tar.xz
ruby: message buffer: refactor code
Code in two of the functions was exactly the same. This patch moves this code to a new function which is called from the two functions mentioned initially.
Diffstat (limited to 'src/mem/ruby/buffers/MessageBuffer.hh')
-rw-r--r--src/mem/ruby/buffers/MessageBuffer.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mem/ruby/buffers/MessageBuffer.hh b/src/mem/ruby/buffers/MessageBuffer.hh
index b1a9f0004..b65717e2d 100644
--- a/src/mem/ruby/buffers/MessageBuffer.hh
+++ b/src/mem/ruby/buffers/MessageBuffer.hh
@@ -157,6 +157,9 @@ class MessageBuffer
uint32_t functionalWrite(Packet *pkt);
private:
+ void reanalyzeList(std::list<MsgPtr> &, Tick);
+
+ private:
//added by SS
Cycles m_recycle_latency;
@@ -172,7 +175,6 @@ class MessageBuffer
// use a std::map for the stalled messages as this container is
// sorted and ensures a well-defined iteration order
typedef std::map< Address, std::list<MsgPtr> > StallMsgMapType;
- typedef std::vector<MsgPtr>::iterator MsgListIter;
StallMsgMapType m_stall_msg_map;
std::string m_name;