diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2014-02-23 19:16:15 -0600 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2014-02-23 19:16:15 -0600 |
commit | 7572ab71b56b01e3ee7742dd385af81b49bd753d (patch) | |
tree | b354d130838382c92439fe53d6e15c7bb55eea17 /src/mem/ruby/slicc_interface | |
parent | cde20fd476a2563bac54bb135fad0dd5e03112db (diff) | |
download | gem5-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/slicc_interface')
-rw-r--r-- | src/mem/ruby/slicc_interface/AbstractController.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mem/ruby/slicc_interface/AbstractController.hh b/src/mem/ruby/slicc_interface/AbstractController.hh index e3584fa8b..d6ba928fd 100644 --- a/src/mem/ruby/slicc_interface/AbstractController.hh +++ b/src/mem/ruby/slicc_interface/AbstractController.hh @@ -137,9 +137,11 @@ class AbstractController : public ClockedObject, public Consumer Network* m_net_ptr; bool m_is_blocking; std::map<Address, MessageBuffer*> m_block_map; + typedef std::vector<MessageBuffer*> MsgVecType; typedef std::map< Address, MsgVecType* > WaitingBufType; WaitingBufType m_waiting_buffers; + unsigned int m_in_ports; unsigned int m_cur_in_port; int m_number_of_TBEs; |