From: Giacomo Travaglini Date: Wed, 14 Aug 2019 10:36:22 +0000 (+0100) Subject: dev-arm: Store the IOMMU reference from within the SMMU::connect X-Git-Tag: v19.0.0.0~546 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=587c94c7735c652be9ab12a8050f08ce0f834113;p=gem5.git dev-arm: Store the IOMMU reference from within the SMMU::connect Change-Id: I35718a71dc040ee4acad9eee2a07076ebb571304 Signed-off-by: Giacomo Travaglini Reviewed-by: Ciro Santilli Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20840 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg Tested-by: kokoro --- diff --git a/src/dev/arm/SMMUv3.py b/src/dev/arm/SMMUv3.py index 72540f5cf..230a0ac48 100644 --- a/src/dev/arm/SMMUv3.py +++ b/src/dev/arm/SMMUv3.py @@ -207,3 +207,7 @@ class SMMUv3(ClockedObject): sys.exit(1) self.slave_interfaces.append(slave_interface) + + # Storing a reference to the smmu to be used when generating + # the binding in the device DTB. + device._iommu = self