diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2015-04-29 22:35:22 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2015-04-29 22:35:22 -0500 |
commit | 3a2731fb8cb0bcb152979fb41ba23ce2b981444f (patch) | |
tree | 250b1ca20fbf7459250388afda8b4242b0b87e12 /src/mem/ruby/slicc_interface | |
parent | 43335495754abac71377bbd6df0c668b60b22822 (diff) | |
download | gem5-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.hh | 8 |
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& |