From 3c3ca64b5f0dd9eef7b1ce1c65cc6e8e9147dd38 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Thu, 30 Aug 2018 10:58:10 +0100 Subject: config, dev-arm: Fix UART handling baremetal mode fs.py in baremetal mode currently fails for the VExpress_GEM5_V1 platform due to inconsistent UART naming with error message: AttributeError: object 'VExpress_GEM5_V1' has no attribute 'uart' Consistently name keep all UARTs in the Arm platforms in a vector named 'uart' or as a single device named 'uart'. Update the configuration scripts to reflect the fact that 'uart' can be a vector. Change-Id: I20b8dbac794d6a9be19b6ce8c335a097872132fb Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/12473 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Maintainer: Andreas Sandberg --- configs/common/FSConfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configs') diff --git a/configs/common/FSConfig.py b/configs/common/FSConfig.py index 17498c42b..aa00efe60 100644 --- a/configs/common/FSConfig.py +++ b/configs/common/FSConfig.py @@ -304,7 +304,7 @@ def makeArmSystem(mem_mode, machine_type, num_cpus=1, mdesc=None, if bare_metal: # EOT character on UART will end the simulation - self.realview.uart.end_on_eot = True + self.realview.uart[0].end_on_eot = True else: if machine_type in default_kernels: self.kernel = binary(default_kernels[machine_type]) -- cgit v1.2.3