From 6a05179e13a2ac8e72feb4bd00647013940d814e Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Fri, 4 Dec 2015 00:19:05 +0000 Subject: arm, config: Automatically discover available platforms Add support for automatically discover available platforms. The Python-side uses functionality similar to what we use when auto-detecting available CPU models. The machine IDs have been updated to match the platform configurations. If there isn't a matching machine ID, the configuration scripts default to -1 which Linux uses for device tree only platforms. --- src/arch/arm/ArmSystem.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/arch/arm/ArmSystem.py b/src/arch/arm/ArmSystem.py index 1e5acc4e6..9bb939c5e 100644 --- a/src/arch/arm/ArmSystem.py +++ b/src/arch/arm/ArmSystem.py @@ -40,10 +40,13 @@ from m5.params import * from System import System class ArmMachineType(Enum): - map = {'RealView_EB' : 827, - 'RealView_PBX' : 1901, - 'VExpress_EMM' : 2272, - 'VExpress_EMM64' : 2272} + map = { + 'RealViewEB' : 827, + 'RealViewPBX' : 1901, + 'VExpress_EMM' : 2272, + 'VExpress_EMM64' : 2272, + 'DTOnly' : -1, + } class ArmSystem(System): type = 'ArmSystem' -- cgit v1.2.3