From: Pierre Ayoub Date: Sat, 3 Oct 2020 14:34:26 +0000 (+0200) Subject: arch-arm: Add recursion for DTB entry generation inside ArmISA X-Git-Tag: develop-gem5-snapshot~682 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1cdfbde6c2c85be403597fc80d883034f4a33891;p=gem5.git arch-arm: Add recursion for DTB entry generation inside ArmISA In order to generate the ArmPMU's DTB entry, we have to enable recursion from the ArmISA. This commit follows this mailing list entry: https://www.mail-archive.com/gem5-users@gem5.org/msg18401.html Change-Id: I73012755f0f8c8d4d17278793cf16cb1e8b011df Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35555 Reviewed-by: Giacomo Travaglini Maintainer: Giacomo Travaglini Tested-by: kokoro --- diff --git a/src/arch/arm/ArmISA.py b/src/arch/arm/ArmISA.py index ebad774ee..a70989448 100644 --- a/src/arch/arm/ArmISA.py +++ b/src/arch/arm/ArmISA.py @@ -36,6 +36,7 @@ from m5.params import * from m5.proxy import * +from m5.SimObject import SimObject from m5.objects.ArmPMU import ArmPMU from m5.objects.ArmSystem import SveVectorLength from m5.objects.BaseISA import BaseISA @@ -124,3 +125,7 @@ class ArmISA(BaseISA): # allocated, instead of an ArmSystem sve_vl_se = Param.SveVectorLength(1, "SVE vector length in quadwords (128-bit), SE-mode only") + + # Recurse into subnodes to generate DTB entries. This is mainly needed to + # generate the PMU entry. + generateDeviceTree = SimObject.recurseDeviceTree