From 7c8662f54a6beb4c07da4b2b58f19e5b94909bc8 Mon Sep 17 00:00:00 2001 From: Glenn Bergmans Date: Wed, 16 Dec 2015 15:43:42 +0000 Subject: arm: DT autogeneration - Device Tree generation methods This patch adds an extra layer to the pyfdt library such that usage gets easier and device tree nodes can be specified in less code, without limiting original usage. Note to not import both the pyfdt and fdthelper in the same namespace (but generally fdthelper is all you need, because it supplies the same classes even when they are not extended in any way) Also, this patch lays out the primary functionality for generating a device tree, where every SimObject gets an empty generateDeviceTree method and ArmSystems loop over their children in an effort to merge all the nodes. Devices are implemented in other patches. Change-Id: I4d0a0666827287fe42e18447f19acab4dc80cc49 Reviewed-by: Andreas Sandberg Reviewed-by: Curtis Dunham Reviewed-on: https://gem5-review.googlesource.com/5962 Maintainer: Andreas Sandberg --- src/sim/SubSystem.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sim') diff --git a/src/sim/SubSystem.py b/src/sim/SubSystem.py index 47e9d4d6f..50e7dbd40 100644 --- a/src/sim/SubSystem.py +++ b/src/sim/SubSystem.py @@ -52,6 +52,8 @@ class SubSystem(SimObject): cxx_header = "sim/sub_system.hh" abstract = False - # Thermal doamin associated to this object, inheriting the parent's + # Thermal domain associated to this object, inheriting the parent's # clock domain by default thermal_domain = Param.ThermalDomain(NULL, "Thermal domain") + + generateDeviceTree = SimObject.recurseDeviceTree -- cgit v1.2.3