dev-arm: Add redistributor-stride property to GICv3
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 16 Aug 2019 10:53:12 +0000 (11:53 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 20 Aug 2019 14:23:47 +0000 (14:23 +0000)
This is needed since by default the model is assuming a GICv4
memory layout.

Change-Id: Ic64e6a488cc1a43a56ce28f6d11b8868df102aa0
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20248
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/Gic.py

index d2e2ace3f943f517866d69d269630b38a6902adf..734299f50b2450d729c216bb87ca2ac90f9f7515 100644 (file)
@@ -237,6 +237,10 @@ class Gicv3(BaseGic):
         node.append(self._state.sizeCellsProperty())
         node.append(FdtProperty("interrupt-controller"))
 
+        redist_stride = 0x40000 if self.gicv4 else 0x20000
+        node.append(FdtPropertyWords("redistributor-stride",
+            state.sizeCells(redist_stride)))
+
         regs = (
             state.addrCells(self.dist_addr) +
             state.sizeCells(0x10000) +