summaryrefslogtreecommitdiff
path: root/src/mem/ruby/common/NetDest.cc
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2014-01-04 00:03:30 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2014-01-04 00:03:30 -0600
commit9853ef6651e76883615595bf76f983ed43234f96 (patch)
tree56b3410497dbad5e4cbac88bc91ee6234d0438e5 /src/mem/ruby/common/NetDest.cc
parenta212844f6785f896b268b678f0018528c0ecfdc7 (diff)
downloadgem5-9853ef6651e76883615595bf76f983ed43234f96.tar.xz
ruby: some small changes
Diffstat (limited to 'src/mem/ruby/common/NetDest.cc')
-rw-r--r--src/mem/ruby/common/NetDest.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mem/ruby/common/NetDest.cc b/src/mem/ruby/common/NetDest.cc
index 97788345c..f7508f1da 100644
--- a/src/mem/ruby/common/NetDest.cc
+++ b/src/mem/ruby/common/NetDest.cc
@@ -275,3 +275,13 @@ NetDest::print(std::ostream& out) const
out << "]";
}
+bool
+NetDest::isEqual(const NetDest& n) const
+{
+ assert(m_bits.size() == n.m_bits.size());
+ for (unsigned int i = 0; i < m_bits.size(); ++i) {
+ if (!m_bits[i].isEqual(n.m_bits[i]))
+ return false;
+ }
+ return true;
+}