Ruby: Add support for functional accesses
[gem5.git] / configs / example / ruby_random_test.py
index b60afc1923276fecc57164110a36dd3ea2822967..7655e32fdedaa7572dcc830045c7afc8eaa0ad6a 100644 (file)
@@ -99,7 +99,7 @@ tester = RubyTester(check_flush = check_flush,
 #
 system = System(tester = tester, physmem = PhysicalMemory())
 
-system.ruby = Ruby.create_system(options, system)
+Ruby.create_system(options, system)
 
 assert(options.num_cpus == len(system.ruby._cpu_ruby_ports))
 
@@ -121,6 +121,12 @@ for ruby_port in system.ruby._cpu_ruby_ports:
     #
     ruby_port.using_ruby_tester = True
 
+    #
+    # Ruby doesn't need the backing image of memory when running with
+    # the tester.
+    #
+    ruby_port.access_phys_mem = False
+
 # -----------------------
 # run simulation
 # -----------------------