summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/common/MemConfig.py9
-rw-r--r--configs/common/Options.py2
2 files changed, 11 insertions, 0 deletions
diff --git a/configs/common/MemConfig.py b/configs/common/MemConfig.py
index cf0fb1632..0191554a7 100644
--- a/configs/common/MemConfig.py
+++ b/configs/common/MemConfig.py
@@ -151,6 +151,15 @@ def config_mem(options, system):
them.
"""
+ if options.tlm_memory:
+ system.external_memory = m5.objects.ExternalSlave(
+ port_type="tlm",
+ port_data=options.tlm_memory,
+ port=system.membus.master,
+ addr_ranges=system.mem_ranges)
+ system.kernel_addr_check = False
+ return
+
if options.external_memory_system:
system.external_memory = m5.objects.ExternalSlave(
port_type=options.external_memory_system,
diff --git a/configs/common/Options.py b/configs/common/Options.py
index 35d453d24..1922f78a6 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -106,6 +106,8 @@ def addCommonOptions(parser):
# Cache Options
parser.add_option("--external-memory-system", type="string",
help="use external ports of this port_type for caches")
+ parser.add_option("--tlm-memory", type="string",
+ help="use external port for SystemC TLM cosimulation")
parser.add_option("--caches", action="store_true")
parser.add_option("--l2cache", action="store_true")
parser.add_option("--fastmem", action="store_true")