projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b52f82
)
ruby: removed invalid assert in message comparitor
author
Brad Beckmann
<Brad.Beckmann@amd.com>
Sat, 1 Aug 2015 16:59:47 +0000
(12:59 -0400)
committer
Brad Beckmann
<Brad.Beckmann@amd.com>
Sat, 1 Aug 2015 16:59:47 +0000
(12:59 -0400)
It is perfectly valid to compare the same message and the greater than
operator should work correctly.
src/mem/ruby/slicc_interface/Message.hh
patch
|
blob
|
history
diff --git
a/src/mem/ruby/slicc_interface/Message.hh
b/src/mem/ruby/slicc_interface/Message.hh
index 5d8ed9711e778ab637fc66176424bb9d62b36bb4..5871031018ba6d195adafefd99b80e8dbc0d0914 100644
(file)
--- a/
src/mem/ruby/slicc_interface/Message.hh
+++ b/
src/mem/ruby/slicc_interface/Message.hh
@@
-121,7
+121,6
@@
operator>(const MsgPtr &lhs, const MsgPtr &rhs)
const Message *r = rhs.get();
if (l->getLastEnqueueTime() == r->getLastEnqueueTime()) {
- assert(l->getMsgCounter() != r->getMsgCounter());
return l->getMsgCounter() > r->getMsgCounter();
}
return l->getLastEnqueueTime() > r->getLastEnqueueTime();