From e780202373eac75152b535e9bba406c8546af580 Mon Sep 17 00:00:00 2001 From: Adrian Herrera Date: Mon, 23 Mar 2020 18:15:27 +0000 Subject: [PATCH] dev-arm: Adjust idreg value in RealViewCtrl This is to match the FVP Foundation platform. Priviledged software could query the SYS_ID register in the V2m Motherboard controller to extract platform information: https:// static.docs.arm.com/100961/1110/armv8_a_fp_ug_100961_1110_00_en.pdf In particular: * SYS_ID[31:28] (REV) = Revision Number ** Value = 0x3 -> FVP Foundation v9.6 * SYS_ID[27:16] (HBI) = Board Number ** Value = 0x010 -> FVP Foundation platform * SYS_ID[15:12] (BLD) = Which variant of the GIC memory is implemented in the model ** Value = 0x1 -> (!= legacy VE memory map) * SYS_ID[11:8] (Arch) = Architecture ** Value = 0x1 -> Architectural model (FVP) Change-Id: Ib9395eb872cb925c029077acfdd18e48478f779b Signed-off-by: Giacomo Travaglini Reviewed-by: Ciro Santilli Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27184 Reviewed-by: Nikos Nikoleris Maintainer: Nikos Nikoleris Tested-by: Gem5 Cloud Project GCB service account <345032938727@cloudbuild.gserviceaccount.com> Tested-by: kokoro --- src/dev/arm/RealView.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/arm/RealView.py b/src/dev/arm/RealView.py index cf57ee208..4cd625859 100644 --- a/src/dev/arm/RealView.py +++ b/src/dev/arm/RealView.py @@ -961,7 +961,7 @@ Interrupts: # Platform control device (off-chip) realview_io = RealViewCtrl(proc_id0=0x14000000, proc_id1=0x14000000, - idreg=0x02250000, pio_addr=0x1c010000) + idreg=0x30101100, pio_addr=0x1c010000) mcc = VExpressMCC() dcc = CoreTile2A15DCC() -- 2.30.2