diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2011-04-28 17:18:14 -0700 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2011-04-28 17:18:14 -0700 |
commit | 491cc1a9f40571180b49b5318d735109380dad17 (patch) | |
tree | 7282442301a9046662f9d4473b0c5cb69b829398 /src/mem/ruby/network/simple/Throttle.cc | |
parent | 8733ed4b7d3f4c138738c9636da1437e7724e9cc (diff) | |
download | gem5-491cc1a9f40571180b49b5318d735109380dad17.tar.xz |
network: moved network config params
Moved the buffer_size, endpoint_bandwidth, and adaptive_routing params out of
the top-level parent network object and to only those networks that actually
use those parameters.
Diffstat (limited to 'src/mem/ruby/network/simple/Throttle.cc')
-rw-r--r-- | src/mem/ruby/network/simple/Throttle.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mem/ruby/network/simple/Throttle.cc b/src/mem/ruby/network/simple/Throttle.cc index 905a7aa28..108dd843d 100644 --- a/src/mem/ruby/network/simple/Throttle.cc +++ b/src/mem/ruby/network/simple/Throttle.cc @@ -49,21 +49,22 @@ const int PRIORITY_SWITCH_LIMIT = 128; static int network_message_to_size(NetworkMessage* net_msg_ptr); Throttle::Throttle(int sID, NodeID node, int link_latency, - int link_bandwidth_multiplier) + int link_bandwidth_multiplier, int endpoint_bandwidth) { - init(node, link_latency, link_bandwidth_multiplier); + init(node, link_latency, link_bandwidth_multiplier, endpoint_bandwidth); m_sID = sID; } Throttle::Throttle(NodeID node, int link_latency, - int link_bandwidth_multiplier) + int link_bandwidth_multiplier, int endpoint_bandwidth) { - init(node, link_latency, link_bandwidth_multiplier); + init(node, link_latency, link_bandwidth_multiplier, endpoint_bandwidth); m_sID = 0; } void -Throttle::init(NodeID node, int link_latency, int link_bandwidth_multiplier) +Throttle::init(NodeID node, int link_latency, int link_bandwidth_multiplier, + int endpoint_bandwidth) { m_node = node; m_vnets = 0; @@ -71,6 +72,7 @@ Throttle::init(NodeID node, int link_latency, int link_bandwidth_multiplier) assert(link_bandwidth_multiplier > 0); m_link_bandwidth_multiplier = link_bandwidth_multiplier; m_link_latency = link_latency; + m_endpoint_bandwidth = endpoint_bandwidth; m_wakeups_wo_switch = 0; clearStats(); |