diff options
author | BALATON Zoltan | 2017-12-16 23:57:46 +0100 |
---|---|---|
committer | David Gibson | 2018-01-10 02:52:59 +0100 |
commit | a45de1794e4d35d4458367dffb483d36a48cc3ee (patch) | |
tree | 1992c919502944b7573417a8e87582de27b413c9 /hw/display/sm501.c | |
parent | pseries: Update SLOF firmware image to qemu-slof-20171214 (diff) | |
download | qemu-a45de1794e4d35d4458367dffb483d36a48cc3ee.tar.gz qemu-a45de1794e4d35d4458367dffb483d36a48cc3ee.tar.xz qemu-a45de1794e4d35d4458367dffb483d36a48cc3ee.zip |
sm501: Add panel hardware cursor registers also to read function
These were forgotten when adding panel layer support in ffd39257018
"SM501 emulation for R2D-SH4".
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
[dwg: Added reference to earlier commit in message]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/display/sm501.c')
-rw-r--r-- | hw/display/sm501.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hw/display/sm501.c b/hw/display/sm501.c index 7f1822421a..b9b611131e 100644 --- a/hw/display/sm501.c +++ b/hw/display/sm501.c @@ -956,6 +956,19 @@ static uint64_t sm501_disp_ctrl_read(void *opaque, hwaddr addr, ret = s->dc_panel_v_sync; break; + case SM501_DC_PANEL_HWC_ADDR: + ret = s->dc_panel_hwc_addr; + break; + case SM501_DC_PANEL_HWC_LOC: + ret = s->dc_panel_hwc_location; + break; + case SM501_DC_PANEL_HWC_COLOR_1_2: + ret = s->dc_panel_hwc_color_1_2; + break; + case SM501_DC_PANEL_HWC_COLOR_3: + ret = s->dc_panel_hwc_color_3; + break; + case SM501_DC_VIDEO_CONTROL: ret = s->dc_video_control; break; |