summaryrefslogtreecommitdiff
path: root/src/sim/System.py
diff options
context:
space:
mode:
authorAdrian Herrera <adrian.herrera@arm.com>2019-11-14 20:41:50 +0000
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2019-12-18 09:15:32 +0000
commite4c7ea67b81af4a915868a4f7babc46a53d6194c (patch)
treed4a1964aa4da6b9d12542b2bc70125dc1a6c4fff /src/sim/System.py
parent1a2dcccaee4c76a73378b4fd5ac910a818fff7af (diff)
downloadgem5-e4c7ea67b81af4a915868a4f7babc46a53d6194c.tar.xz
sim: kernelExtras optional load addresses
This patch provides a new "System" parameter named "kernel_extras_addrs". This allows to optionally specify fixed load addresses for the additional kernel objects. This is useful to load arbitrary blobs into memory. Change-Id: I4725763b86c29f72282d1c184d4284d90f9d3016 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23566 Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu> 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 'src/sim/System.py')
-rw-r--r--src/sim/System.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sim/System.py b/src/sim/System.py
index 9928887b9..619b54ed1 100644
--- a/src/sim/System.py
+++ b/src/sim/System.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2017 ARM Limited
+# Copyright (c) 2017, 2019 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
@@ -107,7 +107,9 @@ class System(SimObject):
kernel = Param.String("", "file that contains the kernel code")
kernel_addr_check = Param.Bool(True,
"whether to address check on kernel (disable for baremetal)")
- kernel_extras = VectorParam.String([],"Additional object files to load")
+ kernel_extras = VectorParam.String([], "Additional object files to load")
+ kernel_extras_addrs = VectorParam.Addr([],
+ "Load addresses for additional object files")
readfile = Param.String("", "file to read startup script from")
symbolfile = Param.String("", "file to get the symbols from")
load_addr_mask = Param.UInt64(0xffffffffffffffff,