summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2015-08-14 19:28:44 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2015-08-14 19:28:44 -0500
commitd0cf41300b8b153a4c658fa5ca3469a868916bd1 (patch)
tree0f3ea77c36a8c855d6edd802f0c013c1ba6e143c /configs
parente63c120d0d0a603049aa460ef53bb0589aa3527f (diff)
downloadgem5-d0cf41300b8b153a4c658fa5ca3469a868916bd1.tar.xz
ruby: profiler: provide the number of vnets through ruby system
The aim is to ultimately do away with the static function Network::getNumberOfVirtualNetworks().
Diffstat (limited to 'configs')
-rw-r--r--configs/ruby/Ruby.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/ruby/Ruby.py b/configs/ruby/Ruby.py
index 36fe42115..6d78dd89d 100644
--- a/configs/ruby/Ruby.py
+++ b/configs/ruby/Ruby.py
@@ -231,6 +231,7 @@ def create_system(options, full_system, system, piobus = None, dma_ports = []):
if buildEnv['TARGET_ISA'] == "x86":
cpu_seq.pio_slave_port = piobus.master
+ ruby.number_of_virtual_networks = ruby.network.number_of_virtual_networks
ruby._cpu_ports = cpu_sequencers
ruby.num_of_sequencers = len(cpu_sequencers)