summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2019-06-19 13:03:38 +0100
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2019-06-20 08:30:14 +0000
commitaf8d107191cc69a77624e2af34f108dc9c1ff03f (patch)
tree3d5264cc59fd1462a0ac36353e3eecac7677bdaa /configs
parenta2f0167b6e951e3a293f3c8d2c11188eb5c59012 (diff)
downloadgem5-af8d107191cc69a77624e2af34f108dc9c1ff03f.tar.xz
configs: Fix NULL dram-lowp regressions
The problem arises since there are some scripts (like NULL dram regressions) which are making use of MemConfig.py without using Opions.py so they won't have the new enable-dram-powerdown option Change-Id: Id9769cce2e8a25b57da76f07eeebd279a6e00440 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19268 Reviewed-by: Matthew Poremba <matthew.poremba@amd.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'configs')
-rw-r--r--configs/common/MemConfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/configs/common/MemConfig.py b/configs/common/MemConfig.py
index d09869285..3910cacbd 100644
--- a/configs/common/MemConfig.py
+++ b/configs/common/MemConfig.py
@@ -165,6 +165,7 @@ def config_mem(options, system):
None)
opt_elastic_trace_en = getattr(options, "elastic_trace_en", False)
opt_mem_ranks = getattr(options, "mem_ranks", None)
+ opt_dram_powerdown = getattr(options, "enable_dram_powerdown", None)
if opt_mem_type == "HMC_2500_1x32":
HMChost = HMC.config_hmc_host_ctrl(options, system)
@@ -226,8 +227,7 @@ def config_mem(options, system):
# Enable low-power DRAM states if option is set
if issubclass(cls, m5.objects.DRAMCtrl):
- mem_ctrl.enable_dram_powerdown = \
- options.enable_dram_powerdown
+ mem_ctrl.enable_dram_powerdown = opt_dram_powerdown
if opt_elastic_trace_en:
mem_ctrl.latency = '1ns'