summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
authorGlenn Bergmans <glenn.bergmans@arm.com>2016-01-22 15:23:03 +0000
committerCurtis Dunham <curtis.dunham@arm.com>2018-01-29 22:21:48 +0000
commit7e9adcce565a00de9091d7d0f9b46d9e479e6625 (patch)
tree436fc9e05b30cd5e68d75b922daa902d0486b9e2 /src/dev
parent7c8662f54a6beb4c07da4b2b58f19e5b94909bc8 (diff)
downloadgem5-7e9adcce565a00de9091d7d0f9b46d9e479e6625.tar.xz
arm: DT autogeneration - Generate cpus node
Equips cpu models with a method to generate the cpu node. Note: even though official documentation requires that CPU ids start counting from 0 in every cluster, GEM5 requires a globally unique cpu_id. Change-Id: Ida3e17af3124a68ef7dbf2449cd034dfc3ec39df Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Curtis Dunham <curtis.dunham@arm.com> Reviewed-on: https://gem5-review.googlesource.com/5963 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/dev')
-rw-r--r--src/dev/Platform.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dev/Platform.py b/src/dev/Platform.py
index 8a9871b35..b182acfd6 100644
--- a/src/dev/Platform.py
+++ b/src/dev/Platform.py
@@ -34,3 +34,7 @@ class Platform(SimObject):
abstract = True
cxx_header = "dev/platform.hh"
intrctrl = Param.IntrControl(Parent.any, "interrupt controller")
+
+ # for platforms using device trees to set properties of CPU nodes
+ def annotateCpuDeviceNode(self, cpu, state):
+ pass