PlatformConfig.py (13167:258a04d4c20b) PlatformConfig.py (13731:67cd980cb20f)
1# Copyright (c) 2012, 2015 ARM Limited
2# All rights reserved.
3#
4# Copyright (c) 2017, Centre National de la Recherche Scientifique (CNRS)
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 89 unchanged lines hidden (view full) ---

98
99 if _platform_aliases:
100 print("\Platform aliases:")
101 for alias, target in _platform_aliases.items():
102 print("\t%s => %s" % (alias, target))
103
104def platform_names():
105 """Return a list of valid Platform names."""
1# Copyright (c) 2012, 2015 ARM Limited
2# All rights reserved.
3#
4# Copyright (c) 2017, Centre National de la Recherche Scientifique (CNRS)
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 89 unchanged lines hidden (view full) ---

98
99 if _platform_aliases:
100 print("\Platform aliases:")
101 for alias, target in _platform_aliases.items():
102 print("\t%s => %s" % (alias, target))
103
104def platform_names():
105 """Return a list of valid Platform names."""
106 return _platform_classes.keys() + _platform_aliases.keys()
106 return list(_platform_classes.keys()) + list(_platform_aliases.keys())
107
108# Add all Platforms in the object hierarchy.
109for name, cls in inspect.getmembers(m5.objects, is_platform_class):
110 _platform_classes[name] = cls
111
112for alias, target in _platform_aliases_all:
113 if target in _platform_classes:
114 _platform_aliases[alias] = target
107
108# Add all Platforms in the object hierarchy.
109for name, cls in inspect.getmembers(m5.objects, is_platform_class):
110 _platform_classes[name] = cls
111
112for alias, target in _platform_aliases_all:
113 if target in _platform_classes:
114 _platform_aliases[alias] = target