dev-arm: Adjust idreg value in RealViewCtrl
authorAdrian Herrera <adrian.herrera@arm.com>
Mon, 23 Mar 2020 18:15:27 +0000 (18:15 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 30 Mar 2020 17:12:04 +0000 (17:12 +0000)
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 <giacomo.travaglini@arm.com>
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27184
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: Gem5 Cloud Project GCB service account <345032938727@cloudbuild.gserviceaccount.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/RealView.py

index cf57ee208a8e1a18bbdde41c35948cd20cddc236..4cd625859a02650a7348f7bc62cc2b87fe5b36ff 100644 (file)
@@ -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()