Because use mmio_read32() to read 64-bit GICR_ TYPER in twice, add
processing case for reading the higher 32 bits of GICR_TYPER in
gicv3_handle_redist_access().

Signed-off-by: Alice Guo <[email protected]>
---
 hypervisor/arch/arm-common/gic-v3.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hypervisor/arch/arm-common/gic-v3.c 
b/hypervisor/arch/arm-common/gic-v3.c
index 6a1d90f8..584c2c79 100644
--- a/hypervisor/arch/arm-common/gic-v3.c
+++ b/hypervisor/arch/arm-common/gic-v3.c
@@ -351,6 +351,9 @@ static enum mmio_result gicv3_handle_redist_access(void 
*arg,
                if (cpu_public->cpu_id == last_gicr)
                                mmio->value |= GICR_TYPER_Last;
                return MMIO_HANDLED;
+       case GICR_TYPER + 4:
+               mmio_perform_access(cpu_public->gicr.base, mmio);
+               return MMIO_HANDLED;
        case GICR_IIDR:
        case 0xffd0 ... 0xfffc: /* ID registers */
                /*
-- 
2.17.1

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/20200815190949.6837-3-alice.guo%40nxp.com.

Reply via email to