projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a70ef3
)
Ruby NetDest: add assert for bad element in netdest
author
Jason Power
<powerjg@cs.wisc.edu>
Wed, 1 Aug 2012 22:07:34 +0000
(17:07 -0500)
committer
Jason Power
<powerjg@cs.wisc.edu>
Wed, 1 Aug 2012 22:07:34 +0000
(17:07 -0500)
src/mem/ruby/common/NetDest.cc
patch
|
blob
|
history
diff --git
a/src/mem/ruby/common/NetDest.cc
b/src/mem/ruby/common/NetDest.cc
index 2d070d33d1435257cdb1fe114529bcd026e15347..97788345ceb5ebab66bc788c7b93542ccf0a16f0 100644
(file)
--- a/
src/mem/ruby/common/NetDest.cc
+++ b/
src/mem/ruby/common/NetDest.cc
@@
-38,6
+38,7
@@
NetDest::NetDest()
void
NetDest::add(MachineID newElement)
{
+ assert(bitIndex(newElement.num) < m_bits[vecIndex(newElement)].getSize());
m_bits[vecIndex(newElement)].add(bitIndex(newElement.num));
}