summaryrefslogtreecommitdiff
path: root/configs/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'configs/ruby')
-rw-r--r--configs/ruby/Ruby.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/configs/ruby/Ruby.py b/configs/ruby/Ruby.py
index c9ae251d9..cad86bf79 100644
--- a/configs/ruby/Ruby.py
+++ b/configs/ruby/Ruby.py
@@ -49,6 +49,7 @@ from m5.util import addToPath, fatal
addToPath('../')
+from common import ObjectList
from common import MemConfig
from common import FileSystemConfig
@@ -115,9 +116,10 @@ def setup_memory_controllers(system, ruby, dir_cntrls, options):
dir_ranges = []
for r in system.mem_ranges:
- mem_ctrl = MemConfig.create_mem_ctrl(
- MemConfig.get(options.mem_type), r, index, options.num_dirs,
- int(math.log(options.num_dirs, 2)), intlv_size)
+ mem_type = ObjectList.mem_list.get(options.mem_type)
+ mem_ctrl = MemConfig.create_mem_ctrl(mem_type, r, index,
+ options.num_dirs, int(math.log(options.num_dirs, 2)),
+ intlv_size)
if options.access_backing_store:
mem_ctrl.kvm_map=False
@@ -131,7 +133,7 @@ def setup_memory_controllers(system, ruby, dir_cntrls, options):
mem_ctrl.port = dir_cntrl.memory
# Enable low-power DRAM states if option is set
- if issubclass(MemConfig.get(options.mem_type), DRAMCtrl):
+ if issubclass(mem_type, DRAMCtrl):
mem_ctrl.enable_dram_powerdown = \
options.enable_dram_powerdown