diff options
author | Jason Power <powerjg@cs.wisc.edu> | 2012-08-01 17:07:34 -0500 |
---|---|---|
committer | Jason Power <powerjg@cs.wisc.edu> | 2012-08-01 17:07:34 -0500 |
commit | 6721b3e325139fb4ace99d858f0bdec44ec6af1b (patch) | |
tree | f5a4dccc3e0afb5ee7046703405f7e74e73d39f3 /src | |
parent | 6a70ef30a3a373fcd462c9b48df447e37e745b90 (diff) | |
download | gem5-6721b3e325139fb4ace99d858f0bdec44ec6af1b.tar.xz |
Ruby NetDest: add assert for bad element in netdest
Diffstat (limited to 'src')
-rw-r--r-- | src/mem/ruby/common/NetDest.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mem/ruby/common/NetDest.cc b/src/mem/ruby/common/NetDest.cc index 2d070d33d..97788345c 100644 --- 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)); } |