From 7e9adcce565a00de9091d7d0f9b46d9e479e6625 Mon Sep 17 00:00:00 2001 From: Glenn Bergmans Date: Fri, 22 Jan 2016 15:23:03 +0000 Subject: 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 Reviewed-by: Curtis Dunham Reviewed-on: https://gem5-review.googlesource.com/5963 Maintainer: Andreas Sandberg --- src/dev/Platform.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dev/Platform.py') 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 -- cgit v1.2.3