From: Srikant Bharadwaj Date: Thu, 10 Sep 2020 06:33:51 +0000 (-0400) Subject: mem-garnet: Allow empty vnet list for garnet network links X-Git-Tag: v20.1.0.0~35 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28d41f213a83ce0ec2a65ff6227550662b022c8d;p=gem5.git mem-garnet: Allow empty vnet list for garnet network links An empty supporting_vnet list is the default and implies that all vnets are supported. This removes the assert which requires the list to have a minimum list size of 1. Change-Id: I6710ba06041164bbd597d98e75374a26a1aa5655 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34258 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/mem/ruby/network/garnet2.0/NetworkLink.cc b/src/mem/ruby/network/garnet2.0/NetworkLink.cc index 61baed453..e947781e9 100644 --- a/src/mem/ruby/network/garnet2.0/NetworkLink.cc +++ b/src/mem/ruby/network/garnet2.0/NetworkLink.cc @@ -44,7 +44,6 @@ NetworkLink::NetworkLink(const Params *p) link_consumer(nullptr), link_srcQueue(nullptr) { int num_vnets = (p->supported_vnets).size(); - assert(num_vnets > 0); mVnets.resize(num_vnets); bitWidth = p->width; for (int i = 0; i < num_vnets; i++) {