Ruby: Add RubySystem parameter to MemoryControl
This guarantees that RubySystem object is created before the MemoryController object is created.
This commit is contained in:
parent
649e377937
commit
44b4c96253
7 changed files with 13 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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, "");
|
||||
|
|
Loading…
Reference in a new issue