diff options
author | Joel Hestness ext:(%2C%20Nilay%20Vaish%20%3Cnilay%40cs.wisc.edu%3E) <jthestness@gmail.com> | 2013-06-24 06:57:06 -0500 |
---|---|---|
committer | Joel Hestness ext:(%2C%20Nilay%20Vaish%20%3Cnilay%40cs.wisc.edu%3E) <jthestness@gmail.com> | 2013-06-24 06:57:06 -0500 |
commit | 71c6c4311060fb2bc8711188a37f5b6b1a035654 (patch) | |
tree | 66f35e1d3db8403a86ff93c1007e62eec2569adc /src/mem/ruby/buffers/MessageBuffer.hh | |
parent | 94280c7e512d5f4c7dbaefc8e387b9255c9ba9f7 (diff) | |
download | gem5-71c6c4311060fb2bc8711188a37f5b6b1a035654.tar.xz |
ruby: MessageBuffer: Remove unused m_size variable
The m_size variable attempted to track m_prio_heap.size(), but it did so
incorrectly due to the functions reanalyzeMessages and reanalyzeAllMessages().
Since this variable is intended to track m_prio_heap.size(), we can simply
replace instances where m_size is referenced with m_prio_heap.size(), which
has the added bonus of removing the need for m_size.
Note: This patch also removes an extraneous DPRINTF format string designator
from reanalyzeAllMessages()
Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src/mem/ruby/buffers/MessageBuffer.hh')
-rw-r--r-- | src/mem/ruby/buffers/MessageBuffer.hh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mem/ruby/buffers/MessageBuffer.hh b/src/mem/ruby/buffers/MessageBuffer.hh index d45ec6bd9..1133144a2 100644 --- a/src/mem/ruby/buffers/MessageBuffer.hh +++ b/src/mem/ruby/buffers/MessageBuffer.hh @@ -193,18 +193,16 @@ class MessageBuffer StallMsgMapType m_stall_msg_map; std::string m_name; - int m_max_size; - int m_size; - + unsigned int m_max_size; Cycles m_time_last_time_size_checked; - int m_size_last_time_size_checked; + unsigned int m_size_last_time_size_checked; // variables used so enqueues appear to happen imediately, while // pop happen the next cycle Cycles m_time_last_time_enqueue; Cycles m_time_last_time_pop; - int m_size_at_cycle_start; - int m_msgs_this_cycle; + unsigned int m_size_at_cycle_start; + unsigned int m_msgs_this_cycle; int m_not_avail_count; // count the # of times I didn't have N // slots available |