summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2009-11-18 13:55:58 -0800
committerBrad Beckmann <Brad.Beckmann@amd.com>2009-11-18 13:55:58 -0800
commit8b0f970084895dcef026e5720a1cd7c34afbc47a (patch)
treef1a5f8137b8756ffb35dcf1f4f6b7859da6a736c /src/mem/ruby/network
parented54ecf1c8f66d544385bbaa0d5902d5af4394e3 (diff)
downloadgem5-8b0f970084895dcef026e5720a1cd7c34afbc47a.tar.xz
ruby: Added default names to message buffers
Added default names to message buffers created by the simple network.
Diffstat (limited to 'src/mem/ruby/network')
-rw-r--r--src/mem/ruby/network/simple/SimpleNetwork.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mem/ruby/network/simple/SimpleNetwork.cc b/src/mem/ruby/network/simple/SimpleNetwork.cc
index 1a45340ed..f6a217c91 100644
--- a/src/mem/ruby/network/simple/SimpleNetwork.cc
+++ b/src/mem/ruby/network/simple/SimpleNetwork.cc
@@ -87,8 +87,10 @@ void SimpleNetwork::init(const vector<string> & argv)
m_toNetQueues[node].setSize(m_virtual_networks);
m_fromNetQueues[node].setSize(m_virtual_networks);
for (int j = 0; j < m_virtual_networks; j++) {
- m_toNetQueues[node][j] = new MessageBuffer;
- m_fromNetQueues[node][j] = new MessageBuffer;
+ m_toNetQueues[node][j] = new MessageBuffer(NULL,
+ "toNet node "+int_to_string(node)+" j "+int_to_string(j));
+ m_fromNetQueues[node][j] = new MessageBuffer(NULL,
+ "fromNet node "+int_to_string(node)+" j "+int_to_string(j));
}
}