From 7a1f018ce77e5c1b56c241d4899aa454fc168366 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Tue, 20 Aug 2019 14:25:40 +0100 Subject: [PATCH] dev-arm: Allow 32-bit access to GITS_TYPER Change-Id: I9d19174b38ba70f82050102f955ccc162965d1fb Signed-off-by: Giacomo Travaglini Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20618 Maintainer: Andreas Sandberg Tested-by: kokoro --- src/dev/arm/gic_v3_its.cc | 4 ++++ src/dev/arm/gic_v3_its.hh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/dev/arm/gic_v3_its.cc b/src/dev/arm/gic_v3_its.cc index 4108cc744..ca363f409 100644 --- a/src/dev/arm/gic_v3_its.cc +++ b/src/dev/arm/gic_v3_its.cc @@ -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; diff --git a/src/dev/arm/gic_v3_its.hh b/src/dev/arm/gic_v3_its.hh index 40d95c8b8..b9c1d8582 100644 --- a/src/dev/arm/gic_v3_its.hh +++ b/src/dev/arm/gic_v3_its.hh @@ -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; -- 2.30.2