diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2015-09-24 08:41:24 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2015-09-24 08:41:24 -0500 |
commit | 4647e4e9612c040f84f0e6de6a8d7c8699f89aa2 (patch) | |
tree | 345c45feddbab5e83c10e8b50783e3e1ef508ac2 /src/mem/ruby/network/simple/SimpleNetwork.hh | |
parent | b3a3b0b6cfd7e1fab192982170973d3e968a17cd (diff) | |
download | gem5-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.hh | 8 |
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]; |