summaryrefslogtreecommitdiff
path: root/tests/configs
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@arm.com>2019-01-25 19:23:48 +0000
committerCiro Santilli <ciro.santilli@gmail.com>2019-01-28 14:05:17 +0000
commitb2d24ff236dd3acd555579b260870538f309708c (patch)
tree099ad7d812967ec882a1517fe5de7398ce0e5fff /tests/configs
parent9048ef0ffbf21bedb803b785fb68f83e95c04db8 (diff)
downloadgem5-b2d24ff236dd3acd555579b260870538f309708c.tar.xz
tests: fix arm regression due to kernel not found
At Ia49298304f658701ea0800bd79e08db404a655c3 we removed the default kernel and DTB filenames from FSConfig.py. However, the regression tests rely on that to find those blobs. This commit restores those default filenames just for the config of the regression tests. Change-Id: I9d7d869b0087ee8a3b63088693f753a703ead5d6 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/15957 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'tests/configs')
-rw-r--r--tests/configs/arm_generic.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/configs/arm_generic.py b/tests/configs/arm_generic.py
index 722749cb5..7ffa141fe 100644
--- a/tests/configs/arm_generic.py
+++ b/tests/configs/arm_generic.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2012, 2017 ARM Limited
+# Copyright (c) 2012, 2017, 2019 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
@@ -46,6 +46,8 @@ from base_config import *
from common.cores.arm.O3_ARM_v7a import *
from common.Benchmarks import SysConfig
+from common import SysPaths
+
class ArmSESystemUniprocessor(BaseSESystemUniprocessor):
"""Syscall-emulation builder for ARM uniprocessor systems.
@@ -95,6 +97,20 @@ class LinuxArmSystemBuilder(object):
system.panic_on_panic = True
system.panic_on_oops = True
+ default_kernels = {
+ "RealViewPBX": "vmlinux.arm.smp.fb.2.6.38.8",
+ "VExpress_EMM": "vmlinux.aarch32.ll_20131205.0-gem5",
+ "VExpress_EMM64": "vmlinux.aarch64.20140821",
+ }
+ system.kernel = SysPaths.binary(default_kernels[self.machine_type])
+ default_dtbs = {
+ "RealViewPBX": None,
+ "VExpress_EMM": "vexpress.aarch32.ll_20131205.0-gem5.{}cpu.dtb" \
+ .format(self.num_cpus),
+ "VExpress_EMM64": "vexpress.aarch64.20140821.dtb",
+ }
+ system.dtb_filename = SysPaths.binary(default_dtbs[self.machine_type])
+
self.init_system(system)
return system