summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network/simple/Switch.cc
diff options
context:
space:
mode:
authorTushar Krishna <Tushar.Krishna@amd.com>2009-08-07 13:59:40 -0700
committerTushar Krishna <Tushar.Krishna@amd.com>2009-08-07 13:59:40 -0700
commitb952eb19c18bffcd4519bac19f79979fab477ff6 (patch)
treebc9e34bce37742b5b85b76ff8be93a14b7c4e688 /src/mem/ruby/network/simple/Switch.cc
parentbd7af84d5ecd037fe4ab1a66948c51d23eb0eb0d (diff)
downloadgem5-b952eb19c18bffcd4519bac19f79979fab477ff6.tar.xz
bug fix for data_msg_size in network/Network.cc
Diffstat (limited to 'src/mem/ruby/network/simple/Switch.cc')
-rw-r--r--src/mem/ruby/network/simple/Switch.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/ruby/network/simple/Switch.cc b/src/mem/ruby/network/simple/Switch.cc
index e3420ddae..87021471f 100644
--- a/src/mem/ruby/network/simple/Switch.cc
+++ b/src/mem/ruby/network/simple/Switch.cc
@@ -169,7 +169,7 @@ void Switch::printStats(ostream& out) const
int sum = message_counts[type].sum();
if (sum != 0) {
out << " outgoing_messages_switch_" << m_switch_id << "_link_" << link << "_" << type
- << ": " << sum << " " << sum * MessageSizeType_to_int(type)
+ << ": " << sum << " " << sum * (RubySystem::getNetwork()->MessageSizeType_to_int(type))
<< " " << message_counts[type] << " base_latency: " << throttle_ptr->getLatency() << endl;
}
}