aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/pl110.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/pl110.c b/hw/pl110.c
index 7340d4b4a3..9df77c46c4 100644
--- a/hw/pl110.c
+++ b/hw/pl110.c
@@ -302,8 +302,12 @@ static uint32_t pl110_read(void *opaque, target_phys_addr_t offset)
case 5: /* LCDLPBASE */
return s->lpbase;
case 6: /* LCDIMSC */
+ if (s->versatile)
+ return s->cr;
return s->int_mask;
case 7: /* LCDControl */
+ if (s->versatile)
+ return s->int_mask;
return s->cr;
case 8: /* LCDRIS */
return s->int_status;