|
@@ -973,8 +973,18 @@ static uint8_t gic_dist_readb(void *opaque, hwaddr offset, MemTxAttrs attrs)
|
|
|
/* GICD_TYPER byte 1 */
|
|
|
return (s->security_extn << 2);
|
|
|
}
|
|
|
- if (offset < 0x08)
|
|
|
+ if (offset == 8) {
|
|
|
+ /* GICD_IIDR byte 0 */
|
|
|
+ return 0x3b; /* Arm JEP106 identity */
|
|
|
+ }
|
|
|
+ if (offset == 9) {
|
|
|
+ /* GICD_IIDR byte 1 */
|
|
|
+ return 0x04; /* Arm JEP106 identity */
|
|
|
+ }
|
|
|
+ if (offset < 0x0c) {
|
|
|
+ /* All other bytes in this range are RAZ */
|
|
|
return 0;
|
|
|
+ }
|
|
|
if (offset >= 0x80) {
|
|
|
/* Interrupt Group Registers: these RAZ/WI if this is an NS
|
|
|
* access to a GIC with the security extensions, or if the GIC
|