dev-arm: Store the IOMMU reference from within the SMMU::connect
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 14 Aug 2019 10:36:22 +0000 (11:36 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 13 Sep 2019 08:14:24 +0000 (08:14 +0000)
Change-Id: I35718a71dc040ee4acad9eee2a07076ebb571304
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20840
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/SMMUv3.py

index 72540f5cffd94b4f8fc866394662316cfb47b089..230a0ac48e40e3c55bb84d8ac27eb73e6058865d 100644 (file)
@@ -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