diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-12-04 00:19:05 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-12-04 00:19:05 +0000 |
commit | 6a05179e13a2ac8e72feb4bd00647013940d814e (patch) | |
tree | 92387dfcdde62731e981bfb5c40fb9c93049fcca /src | |
parent | b3f7a628760eaf27dd4842fad1cca1517478aa73 (diff) | |
download | gem5-6a05179e13a2ac8e72feb4bd00647013940d814e.tar.xz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/arm/ArmSystem.py | 11 |
1 files changed, 7 insertions, 4 deletions
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' |