mem-ruby: Check number of vnets when creating links
authorMichael Boyer <Michael.Boyer@amd.com>
Tue, 28 Apr 2020 18:02:41 +0000 (14:02 -0400)
committerSrikant Bharadwaj <srikant.bharadwaj@amd.com>
Tue, 8 Sep 2020 22:09:23 +0000 (22:09 +0000)
commita9e40fd03af814629932468820235318da45a167
treea752973e364a59bb790ff606a1145e993f884841
parent308b3bbbd6339afbfcd0a3d79bdcb6f6086f3628
mem-ruby: Check number of vnets when creating links

Added error checking to ensure that the system has sufficient virtual
networks when setting latency and weight values.

Change-Id: I1b28144bbe9fefab0c0a6227f1fdf4ea10403061
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32603
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
src/mem/ruby/network/Topology.cc