Change-Id: Ie6f8db9b1cb0d0e0ca694c631c6662413fd833c1
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28171
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Srikant Bharadwaj <srikant.bharadwaj@amd.com>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
// 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();
}
}
#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)
{
}
class VirtualChannel
{
public:
- VirtualChannel(int id);
+ VirtualChannel();
~VirtualChannel() = default;
bool need_stage(flit_stage stage, Cycles time);
uint32_t functionalWrite(Packet *pkt);
private:
- int m_id;
flitBuffer inputBuffer;
std::pair<VC_state_type, Cycles> m_vc_state;
int m_output_port;