summaryrefslogtreecommitdiff
path: root/src/mem/ruby/slicc_interface
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2015-04-29 22:35:22 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2015-04-29 22:35:22 -0500
commit3a2731fb8cb0bcb152979fb41ba23ce2b981444f (patch)
tree250b1ca20fbf7459250388afda8b4242b0b87e12 /src/mem/ruby/slicc_interface
parent43335495754abac71377bbd6df0c668b60b22822 (diff)
downloadgem5-3a2731fb8cb0bcb152979fb41ba23ce2b981444f.tar.xz
ruby: set: replace long by unsigned long
UBSan complains about negative value being shifted
Diffstat (limited to 'src/mem/ruby/slicc_interface')
-rw-r--r--src/mem/ruby/slicc_interface/Message.hh8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mem/ruby/slicc_interface/Message.hh b/src/mem/ruby/slicc_interface/Message.hh
index 786c656bc..6e5f4c2ba 100644
--- a/src/mem/ruby/slicc_interface/Message.hh
+++ b/src/mem/ruby/slicc_interface/Message.hh
@@ -31,6 +31,7 @@
#include <iostream>
#include <memory>
+#include <stack>
#include "mem/packet.hh"
@@ -44,12 +45,14 @@ class Message
: m_time(curTime),
m_LastEnqueueTime(curTime),
m_DelayedTicks(0)
- { }
+ {
+ timeStamps.push(curTime);
+ }
Message(const Message &other)
: m_time(other.m_time),
m_LastEnqueueTime(other.m_LastEnqueueTime),
- m_DelayedTicks(other.m_DelayedTicks)
+ m_DelayedTicks(other.m_DelayedTicks), timeStamps(other.timeStamps)
{ }
virtual ~Message() { }
@@ -90,6 +93,7 @@ class Message
Tick m_time;
Tick m_LastEnqueueTime; // my last enqueue time
Tick m_DelayedTicks; // my delayed cycles
+ std::stack<Tick> timeStamps;
};
inline std::ostream&