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

@ -144,7 +144,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

View file

@ -115,7 +115,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

View file

@ -143,7 +143,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

View file

@ -166,7 +166,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

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

View file

@ -116,7 +116,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

View file

@ -35,5 +35,6 @@ class MemoryControl(SimObject):
type = 'MemoryControl'
cxx_class = 'MemoryControl'
version = Param.Int("");
ruby_system = Param.RubySystem("")
mem_bus_cycle_multiplier = Param.Int(10, "");