From b2d24ff236dd3acd555579b260870538f309708c Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Fri, 25 Jan 2019 19:23:48 +0000 Subject: [PATCH] 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 Reviewed-on: https://gem5-review.googlesource.com/c/15957 Maintainer: Andreas Sandberg --- tests/configs/arm_generic.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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 -- 2.30.2