configs: Set kvm_map in DRAMInterface in Ruby.py
authorMatthew Poremba <matthew.poremba@amd.com>
Thu, 24 Sep 2020 18:10:04 +0000 (13:10 -0500)
committerMatthew Poremba <matthew.poremba@amd.com>
Fri, 25 Sep 2020 16:52:31 +0000 (16:52 +0000)
The kvm_map parameter from AbstractMemory has been moved from MemCtrl
(formerly DRAMCtrl) to DRAMInterface. Assign it to DRAMInterface
instead.

Change-Id: I4508aefcf5eb859d9ffe05c81d85a1b84ee0a196
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35095
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
configs/ruby/Ruby.py

index 622771aa1aec96ce8aad6073c266fe4103865599..86d5748e85c64dae07b2d67c8bb6fad0e973cf95 100644 (file)
@@ -136,7 +136,7 @@ def setup_memory_controllers(system, ruby, dir_cntrls, options):
             mem_ctrl = m5.objects.MemCtrl(dram = dram_intf)
 
             if options.access_backing_store:
-                mem_ctrl.kvm_map=False
+                dram_intf.kvm_map=False
 
             mem_ctrls.append(mem_ctrl)
             dir_ranges.append(mem_ctrl.dram.range)