A read to a write only register is unknown. Use a memorable value to
differentiate from an actual RAZ register.
Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
goto read_impl_defined;
case VREG64(GICR_SETLPIR):
- /* WO. Read as zero */
- goto read_as_zero_64;
+ /* WO. Read unknown */
+ goto read_unknown;
case VREG64(GICR_CLRLPIR):
- /* WO. Read as zero */
- goto read_as_zero_64;
+ /* WO. Read unknown */
+ goto read_unknown;
case 0x0050:
goto read_reserved;
goto read_reserved;
case VREG64(GICR_INVLPIR):
- /* WO. Read as zero */
- goto read_as_zero_64;
+ /* WO. Read unknown */
+ goto read_unknown;
case 0x00A8:
goto read_reserved;
case VREG64(GICR_INVALLR):
- /* WO. Read as zero */
- goto read_as_zero_64;
+ /* WO. Read unknown */
+ goto read_unknown;
case 0x00B8:
goto read_reserved;
v, gicr_reg);
*r = 0;
return 1;
+
+read_unknown:
+ *r = vgic_reg64_extract(0xdeadbeafdeadbeaf, info);
+ return 1;
}
static int __vgic_v3_rdistr_rd_mmio_write(struct vcpu *v, mmio_info_t *info,