From b312a41f21b6f76607fe7480a915a4c5093386a3 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Thu, 20 Feb 2014 17:26:41 -0600 Subject: ruby: message buffer: removes some unecessary functions. --- src/mem/ruby/slicc_interface/Message.hh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mem/ruby/slicc_interface') diff --git a/src/mem/ruby/slicc_interface/Message.hh b/src/mem/ruby/slicc_interface/Message.hh index e78ad9a76..1c842ae69 100644 --- a/src/mem/ruby/slicc_interface/Message.hh +++ b/src/mem/ruby/slicc_interface/Message.hh @@ -71,7 +71,13 @@ class Message : public RefCounted virtual bool functionalWrite(Packet *pkt) = 0; //{ fatal("Write functional access not implemented!"); } - void setDelayedTicks(const Tick ticks) { m_DelayedTicks = ticks; } + //! Update the delay this message has experienced so far. + void updateDelayedTicks(Tick curTime) + { + assert(m_LastEnqueueTime <= curTime); + Tick delta = curTime - m_LastEnqueueTime; + m_DelayedTicks += delta; + } const Tick getDelayedTicks() const {return m_DelayedTicks;} void setLastEnqueueTime(const Tick& time) { m_LastEnqueueTime = time; } -- cgit v1.2.3