1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-09-23 20:31:54 +01:00

platform: adding default big core for ARM platforms.

Since for specific platforms (Juno/TC2) we know what the big core is, we
can set the big_core default so it doesn't have to be specified by the
user. Also remove validation prior to being updated from target and
setting little_core based on the value of big_core rather than by
indexing into core_names.
This commit is contained in:
Sergei Trofimov
2015-12-10 11:48:10 +00:00
parent 64261a65cb
commit 2d9c0bf8a5
2 changed files with 8 additions and 3 deletions

View File

@@ -25,7 +25,6 @@ class Platform(object):
self.logger = logging.getLogger(self.name)
if not self.core_clusters and self.core_names:
self._set_core_clusters_from_core_names()
self._validate()
def init_target_connection(self, target):
# May be ovewritten by subclasses to provide target-specific
@@ -76,6 +75,8 @@ class Platform(object):
raise ValueError(message.format(self.big_core,
', '.join(set(self.core_names))))
if self.big_core:
little_idx = self.core_clusters.index(min(self.core_clusters))
self.little_core = self.core_names[little_idx]
for core in self.core_names:
if core != self.big_core:
self.little_core = core
break