dev-arm: Define a ParentMem object for DTB autogen
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 28 May 2020 10:01:31 +0000 (11:01 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 2 Nov 2020 08:49:42 +0000 (08:49 +0000)
commit80ad34da780aad04f194ece5e79f5776cf776dd7
tree0039d8cb0caa41c43f7db9afb6e95bbd26b9b653
parent5c548ad30e60eb0ba46da305e5ec18d193fec881
dev-arm: Define a ParentMem object for DTB autogen

A memory willing to autogenerate child nodes can do that directly in
the generateDeviceTree method.  However sometimes portions of memory
(child nodes) are tagged for specific applications. Hardcoding the
child node in the parent memory class is not flexible, so we delegate
this to the application model, which is registering the generator
helper via the ParentMem interface

JIRA: https://gem5.atlassian.net/browse/GEM5-768

Change-Id: I5fa5bac0decf5399dbaa3804569998dc5e6d7bc0
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34376
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
src/dev/arm/RealView.py