From: Nikos Nikoleris Date: Thu, 23 Apr 2020 17:57:57 +0000 (+0100) Subject: mem-ruby: Removed the unused parameter m_id from VirtualChannel X-Git-Tag: v20.0.0.0~90 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=294bc743138cbd782e1f3245f9cc12d87508f705;p=gem5.git mem-ruby: Removed the unused parameter m_id from VirtualChannel Change-Id: Ie6f8db9b1cb0d0e0ca694c631c6662413fd833c1 Signed-off-by: Nikos Nikoleris Reviewed-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28171 Reviewed-by: Jason Lowe-Power Reviewed-by: Srikant Bharadwaj Maintainer: Bobby R. Bruce Tested-by: kokoro --- diff --git a/src/mem/ruby/network/garnet2.0/InputUnit.cc b/src/mem/ruby/network/garnet2.0/InputUnit.cc index 8fdce067b..640e3b4ac 100644 --- a/src/mem/ruby/network/garnet2.0/InputUnit.cc +++ b/src/mem/ruby/network/garnet2.0/InputUnit.cc @@ -52,7 +52,7 @@ InputUnit::InputUnit(int id, PortDirection direction, Router *router) // Instantiating the virtual channels virtualChannels.reserve(m_num_vcs); for (int i=0; i < m_num_vcs; i++) { - virtualChannels.emplace_back(i); + virtualChannels.emplace_back(); } } diff --git a/src/mem/ruby/network/garnet2.0/VirtualChannel.cc b/src/mem/ruby/network/garnet2.0/VirtualChannel.cc index 3b077d4f3..a469a84fd 100644 --- a/src/mem/ruby/network/garnet2.0/VirtualChannel.cc +++ b/src/mem/ruby/network/garnet2.0/VirtualChannel.cc @@ -31,8 +31,8 @@ #include "mem/ruby/network/garnet2.0/VirtualChannel.hh" -VirtualChannel::VirtualChannel(int id) - : m_id(id), inputBuffer(), m_vc_state(IDLE_, Cycles(0)), m_output_port(-1), +VirtualChannel::VirtualChannel() + : inputBuffer(), m_vc_state(IDLE_, Cycles(0)), m_output_port(-1), m_enqueue_time(INFINITE_), m_output_vc(-1) { } diff --git a/src/mem/ruby/network/garnet2.0/VirtualChannel.hh b/src/mem/ruby/network/garnet2.0/VirtualChannel.hh index 52963c8ac..752dfb440 100644 --- a/src/mem/ruby/network/garnet2.0/VirtualChannel.hh +++ b/src/mem/ruby/network/garnet2.0/VirtualChannel.hh @@ -40,7 +40,7 @@ class VirtualChannel { public: - VirtualChannel(int id); + VirtualChannel(); ~VirtualChannel() = default; bool need_stage(flit_stage stage, Cycles time); @@ -89,7 +89,6 @@ class VirtualChannel uint32_t functionalWrite(Packet *pkt); private: - int m_id; flitBuffer inputBuffer; std::pair m_vc_state; int m_output_port;