summaryrefslogtreecommitdiff
path: root/src/dev/arm
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2019-08-14 11:36:22 +0100
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2019-09-13 08:14:24 +0000
commit587c94c7735c652be9ab12a8050f08ce0f834113 (patch)
tree42f75d44d0228501f24169e5aa68e704f42ef764 /src/dev/arm
parent3d494d763d1be011a30333f8036d718c4070ef25 (diff)
downloadgem5-587c94c7735c652be9ab12a8050f08ce0f834113.tar.xz
dev-arm: Store the IOMMU reference from within the SMMU::connect
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>
Diffstat (limited to 'src/dev/arm')
-rw-r--r--src/dev/arm/SMMUv3.py4
1 files changed, 4 insertions, 0 deletions
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