configs, arm: add option to enable security extensions

Change-Id: I0c839bb649a5d2d73080b7e718da3c9b5839cf8c
Signed-off-by: Gedare Bloom <gedare@rtems.org>
Reviewed-on: https://gem5-review.googlesource.com/3264
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
This commit is contained in:
Gedare Bloom
2017-02-23 15:53:06 -05:00
parent b49b8cef7b
commit 09faca2b3f
3 changed files with 7 additions and 2 deletions

View File

@@ -204,7 +204,7 @@ def makeSparcSystem(mem_mode, mdesc=None, cmdline=None):
def makeArmSystem(mem_mode, machine_type, num_cpus=1, mdesc=None,
dtb_filename=None, bare_metal=False, cmdline=None,
external_memory="", ruby=False):
external_memory="", ruby=False, security=False):
assert machine_type
default_dtbs = {
@@ -296,6 +296,8 @@ def makeArmSystem(mem_mode, machine_type, num_cpus=1, mdesc=None,
" the amount of DRAM you've selected. Please try" \
" another platform")
self.have_security = security
if bare_metal:
# EOT character on UART will end the simulation
self.realview.uart.end_on_eot = True

View File

@@ -338,6 +338,8 @@ def addFSOptions(parser):
parser.add_option("--dtb-filename", action="store", type="string",
help="Specifies device tree blob file to use with device-tree-"\
"enabled kernels")
parser.add_option("--enable-security-extensions", action="store_true",
help="Turn on the ARM Security Extensions")
parser.add_option("--enable-context-switch-stats-dump", \
action="store_true", help="Enable stats dump at context "\
"switches and dump tasks file (required for Streamline)")

View File

@@ -100,7 +100,8 @@ def build_test_system(np):
bare_metal=options.bare_metal,
cmdline=cmdline,
external_memory=options.external_memory_system,
ruby=options.ruby)
ruby=options.ruby,
security=options.enable_security_extensions)
if options.enable_context_switch_stats_dump:
test_sys.enable_context_switch_stats_dump = True
else: