dev-arm: Allow 32-bit access to GITS_TYPER
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 20 Aug 2019 13:25:40 +0000 (14:25 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 6 Sep 2019 11:53:49 +0000 (11:53 +0000)
Change-Id: I9d19174b38ba70f82050102f955ccc162965d1fb
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20618
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/gic_v3_its.cc
src/dev/arm/gic_v3_its.hh

index 4108cc744f5f8f7fe95fd4215554ed25029f1c70..ca363f409b90895a9b3430a287a9d8fc1dd83947 100644 (file)
@@ -836,6 +836,10 @@ Gicv3Its::read(PacketPtr pkt)
         value = gitsTyper;
         break;
 
+      case GITS_TYPER + 4:
+        value = gitsTyper.high;
+        break;
+
       case GITS_CBASER:
         value = gitsCbaser;
         break;
index 40d95c8b8f3010c4eb626350d5a3c852251e845c..b9c1d8582630f0b7a667961ef221a2e866a9dae3 100644 (file)
@@ -196,6 +196,8 @@ class Gicv3Its : public BasicPioDevice
     EndBitUnion(BASER)
 
     BitUnion64(TYPER)
+        Bitfield<63, 32> high;
+        Bitfield<31, 0> low;
         Bitfield<37> vmovp;
         Bitfield<36> cil;
         Bitfield<35, 32> cidBits;