Ruby: Add RubySystem parameter to MemoryControl

This guarantees that RubySystem object is created before the MemoryController
object is created.
This commit is contained in:
Jason Power
2012-08-16 23:39:36 -05:00
parent 649e377937
commit 44b4c96253
7 changed files with 13 additions and 6 deletions

View File

@@ -164,7 +164,8 @@ def create_system(options, system, piobus, dma_ports, ruby_system):
# Create the Ruby objects associated with the directory controller
#
mem_cntrl = RubyMemoryControl(version = i)
mem_cntrl = RubyMemoryControl(version = i,
ruby_system = ruby_system)
dir_size = MemorySize('0B')
dir_size.value = mem_module_size