summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network/simple/SimpleNetwork.hh
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2015-09-24 08:41:24 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2015-09-24 08:41:24 -0500
commit4647e4e9612c040f84f0e6de6a8d7c8699f89aa2 (patch)
tree345c45feddbab5e83c10e8b50783e3e1ef508ac2 /src/mem/ruby/network/simple/SimpleNetwork.hh
parentb3a3b0b6cfd7e1fab192982170973d3e968a17cd (diff)
downloadgem5-4647e4e9612c040f84f0e6de6a8d7c8699f89aa2.tar.xz
ruby: simple network: refactor code
Drops an unused variable and marks three variables as const.
Diffstat (limited to 'src/mem/ruby/network/simple/SimpleNetwork.hh')
-rw-r--r--src/mem/ruby/network/simple/SimpleNetwork.hh8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mem/ruby/network/simple/SimpleNetwork.hh b/src/mem/ruby/network/simple/SimpleNetwork.hh
index c5e56b1ec..434dfa702 100644
--- a/src/mem/ruby/network/simple/SimpleNetwork.hh
+++ b/src/mem/ruby/network/simple/SimpleNetwork.hh
@@ -87,11 +87,9 @@ class SimpleNetwork : public Network
std::vector<Switch*> m_switches;
std::vector<MessageBuffer*> m_int_link_buffers;
int m_num_connected_buffers;
- std::vector<Switch*> m_endpoint_switches;
-
- int m_buffer_size;
- int m_endpoint_bandwidth;
- bool m_adaptive_routing;
+ const int m_buffer_size;
+ const int m_endpoint_bandwidth;
+ const bool m_adaptive_routing;
//Statistical variables
Stats::Formula m_msg_counts[MessageSizeType_NUM];