summaryrefslogtreecommitdiff
path: root/configs/common/MemConfig.py
diff options
context:
space:
mode:
authorÉder F. Zulian <zulian@eit.uni-kl.de>2017-11-22 17:03:29 +0100
committerÉder F. Zulian <zulian@eit.uni-kl.de>2017-12-05 08:42:59 +0000
commit66909dd5a2cf4cec0732eeeb389e3ff739fe58ed (patch)
tree7a83d029b1a33ad92b9af4ffaaa73ecaa254ed89 /configs/common/MemConfig.py
parent43a1ea88b89aa3611d3b73cc0d4dc5de3f1f5e6b (diff)
downloadgem5-66909dd5a2cf4cec0732eeeb389e3ff739fe58ed.tar.xz
config, mem, hmc: fix HMC test script
This patch keeps the logic behind the HMC model implementation untouched. Additional changes: - simple hello world script using HMC (SE simulation) Usage examples: ./build/ARM/gem5.opt configs/example/hmctest.py ./build/ARM/gem5.opt configs/example/hmctest.py --enable-global-monitor --enable-link-monitor --arch=same ./build/ARM/gem5.opt configs/example/hmctest.py --enable-global-monitor --enable-link-monitor --arch=mixed ./build/ARM/gem5.opt configs/example/hmc_hello.py ./build/ARM/gem5.opt configs/example/hmc_hello.py --enable-global-monitor --enable-link-monitor Change-Id: I64eb6c9abb45376b6ed72722926acddd50765394 Reviewed-on: https://gem5-review.googlesource.com/6061 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'configs/common/MemConfig.py')
-rw-r--r--configs/common/MemConfig.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/configs/common/MemConfig.py b/configs/common/MemConfig.py
index 3605c2144..475bbeb32 100644
--- a/configs/common/MemConfig.py
+++ b/configs/common/MemConfig.py
@@ -164,8 +164,8 @@ def config_mem(options, system):
opt_mem_ranks = getattr(options, "mem_ranks", None)
if opt_mem_type == "HMC_2500_1x32":
- HMChost = HMC.config_host_hmc(options, system)
- HMC.config_hmc(options, system, HMChost.hmc_host)
+ HMChost = HMC.config_hmc_host_ctrl(options, system)
+ HMC.config_hmc_dev(options, system, HMChost.hmc_host)
subsystem = system.hmc_dev
xbar = system.hmc_dev.xbar
else:
@@ -234,5 +234,8 @@ def config_mem(options, system):
for i in xrange(len(subsystem.mem_ctrls)):
if opt_mem_type == "HMC_2500_1x32":
subsystem.mem_ctrls[i].port = xbar[i/4].master
+ # Set memory device size. There is an independent controller for
+ # each vault. All vaults are same size.
+ subsystem.mem_ctrls[i].device_size = options.hmc_dev_vault_size
else:
subsystem.mem_ctrls[i].port = xbar.master