From 869053c8fa25fb58b70d59ccdd8e81825e5ee9e3 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Fri, 16 Aug 2019 11:53:12 +0100 Subject: [PATCH] dev-arm: Add redistributor-stride property to GICv3 This is needed since by default the model is assuming a GICv4 memory layout. Change-Id: Ic64e6a488cc1a43a56ce28f6d11b8868df102aa0 Signed-off-by: Giacomo Travaglini Reviewed-by: Ciro Santilli Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20248 Maintainer: Andreas Sandberg Tested-by: kokoro --- src/dev/arm/Gic.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dev/arm/Gic.py b/src/dev/arm/Gic.py index d2e2ace3f..734299f50 100644 --- a/src/dev/arm/Gic.py +++ b/src/dev/arm/Gic.py @@ -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) + -- 2.30.2