summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network/simple
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2014-02-20 17:27:07 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2014-02-20 17:27:07 -0600
commitdb5b3d37fe9628dfe32c1114177d68ebadcea894 (patch)
treeb4c1b7acd7ce4841838d296cbf9a9e600fe1e400 /src/mem/ruby/network/simple
parentdd5c72e5a7e09634c992092f80dafe82f4274d45 (diff)
downloadgem5-db5b3d37fe9628dfe32c1114177d68ebadcea894.tar.xz
ruby: network: removes unused code.
Diffstat (limited to 'src/mem/ruby/network/simple')
-rw-r--r--src/mem/ruby/network/simple/SimpleNetwork.cc9
-rw-r--r--src/mem/ruby/network/simple/SimpleNetwork.hh1
-rw-r--r--src/mem/ruby/network/simple/Switch.cc6
-rw-r--r--src/mem/ruby/network/simple/Switch.hh1
-rw-r--r--src/mem/ruby/network/simple/Throttle.cc2
5 files changed, 0 insertions, 19 deletions
diff --git a/src/mem/ruby/network/simple/SimpleNetwork.cc b/src/mem/ruby/network/simple/SimpleNetwork.cc
index a3848a8e3..9ab1f8866 100644
--- a/src/mem/ruby/network/simple/SimpleNetwork.cc
+++ b/src/mem/ruby/network/simple/SimpleNetwork.cc
@@ -196,15 +196,6 @@ SimpleNetwork::getFromNetQueue(NodeID id, bool ordered, int network_num,
return m_fromNetQueues[id][network_num];
}
-const std::vector<Throttle*>*
-SimpleNetwork::getThrottles(NodeID id) const
-{
- assert(id >= 0);
- assert(id < m_nodes);
- assert(m_endpoint_switches[id] != NULL);
- return m_endpoint_switches[id]->getThrottles();
-}
-
void
SimpleNetwork::regStats()
{
diff --git a/src/mem/ruby/network/simple/SimpleNetwork.hh b/src/mem/ruby/network/simple/SimpleNetwork.hh
index 69aeeffb7..e0193f2e0 100644
--- a/src/mem/ruby/network/simple/SimpleNetwork.hh
+++ b/src/mem/ruby/network/simple/SimpleNetwork.hh
@@ -62,7 +62,6 @@ class SimpleNetwork : public Network
// returns the queue requested for the given component
MessageBuffer* getToNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type);
MessageBuffer* getFromNetQueue(NodeID id, bool ordered, int network_num, std::string vnet_type);
- virtual const std::vector<Throttle*>* getThrottles(NodeID id) const;
bool isVNetOrdered(int vnet) { return m_ordered[vnet]; }
bool validVirtualNetwork(int vnet) { return m_in_use[vnet]; }
diff --git a/src/mem/ruby/network/simple/Switch.cc b/src/mem/ruby/network/simple/Switch.cc
index d5c32016e..1e153be76 100644
--- a/src/mem/ruby/network/simple/Switch.cc
+++ b/src/mem/ruby/network/simple/Switch.cc
@@ -116,12 +116,6 @@ Switch::getThrottle(LinkID link_number) const
return m_throttles[link_number];
}
-const vector<Throttle*>*
-Switch::getThrottles() const
-{
- return &m_throttles;
-}
-
void
Switch::regStats()
{
diff --git a/src/mem/ruby/network/simple/Switch.hh b/src/mem/ruby/network/simple/Switch.hh
index 85f1b6d6f..58193d42d 100644
--- a/src/mem/ruby/network/simple/Switch.hh
+++ b/src/mem/ruby/network/simple/Switch.hh
@@ -67,7 +67,6 @@ class Switch : public BasicRouter
const NetDest& routing_table_entry, Cycles link_latency,
int bw_multiplier);
const Throttle* getThrottle(LinkID link_number) const;
- const std::vector<Throttle*>* getThrottles() const;
void resetStats();
void collateStats();
diff --git a/src/mem/ruby/network/simple/Throttle.cc b/src/mem/ruby/network/simple/Throttle.cc
index df5e624b3..778436c6d 100644
--- a/src/mem/ruby/network/simple/Throttle.cc
+++ b/src/mem/ruby/network/simple/Throttle.cc
@@ -39,8 +39,6 @@
using namespace std;
-const int HIGH_RANGE = 256;
-const int ADJUST_INTERVAL = 50000;
const int MESSAGE_SIZE_MULTIPLIER = 1000;
//const int BROADCAST_SCALING = 4; // Have a 16p system act like a 64p systems
const int BROADCAST_SCALING = 1;