summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorGlenn Bergmans <glenn.bergmans@arm.com>2015-12-16 15:43:42 +0000
committerCurtis Dunham <curtis.dunham@arm.com>2018-01-29 22:21:30 +0000
commit7c8662f54a6beb4c07da4b2b58f19e5b94909bc8 (patch)
tree9b7ff9b17903a6e795f6624c24739af81b3692d9 /src/sim
parent3da05785813662f647b07400734337630a9f6f78 (diff)
downloadgem5-7c8662f54a6beb4c07da4b2b58f19e5b94909bc8.tar.xz
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 <andreas.sandberg@arm.com> Reviewed-by: Curtis Dunham <curtis.dunham@arm.com> Reviewed-on: https://gem5-review.googlesource.com/5962 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/SubSystem.py4
1 files changed, 3 insertions, 1 deletions
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