From 8504b079b8e1c5bc4c14fa42ba224fe182ca43df Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Mon, 24 Feb 2014 20:50:05 -0600 Subject: ruby: correct errors in changeset 4eec7bdde5b0 Couple of errors were discovered in 4eec7bdde5b0 which necessitated this patch. Firstly, we create interrupt controllers in the se mode, but no piobus was being created. RubyPort, which earlier used to ignore range changes now forwards those to the piobus. The lack of piobus resulted in segmentation fault. This patch creates a piobus even in se mode. It is not created only when some tester is running. Secondly, I had missed out on modifying port connections for other coherence protocols. --- configs/example/se.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'configs/example') diff --git a/configs/example/se.py b/configs/example/se.py index d4f3e2dd9..d390fbad0 100644 --- a/configs/example/se.py +++ b/configs/example/se.py @@ -231,9 +231,10 @@ if options.ruby: # Set the option for physmem so that it is not allocated any space system.physmem = MemClass(range=AddrRange(options.mem_size), null = True) - options.use_map = True - Ruby.create_system(options, system) + + system.piobus = NoncoherentBus() + Ruby.create_system(options, system, system.piobus) assert(options.num_cpus == len(system.ruby._cpu_ruby_ports)) for i in xrange(np): -- cgit v1.2.3