From: David Gibson <david@gibson.dropbear.id.au>
To: peter.maydell@linaro.org
Cc: qemu-ppc@nongnu.org, agraf@suse.de, qemu-devel@nongnu.org,
groug@kaod.org, mdroth@linux.vnet.ibm.com, surajjs@au1.ibm.com,
BALATON Zoltan <balaton@eik.bme.hu>,
David Gibson <david@gibson.dropbear.id.au>
Subject: [Qemu-devel] [PULL 02/11] sm501: Add panel hardware cursor registers also to read function
Date: Thu, 11 Jan 2018 15:59:28 +1100 [thread overview]
Message-ID: <20180111045937.2119-3-david@gibson.dropbear.id.au> (raw)
In-Reply-To: <20180111045937.2119-1-david@gibson.dropbear.id.au>
From: BALATON Zoltan <balaton@eik.bme.hu>
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>
---
hw/display/sm501.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
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;
--
2.14.3
next prev parent reply other threads:[~2018-01-11 5:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-11 4:59 [Qemu-devel] [PULL 00/11] ppc-for-2.12 queue 20180111 David Gibson
2018-01-11 4:59 ` [Qemu-devel] [PULL 01/11] pseries: Update SLOF firmware image to qemu-slof-20171214 David Gibson
2018-01-11 4:59 ` David Gibson [this message]
2018-01-11 4:59 ` [Qemu-devel] [PULL 03/11] sm501: Add some more unimplemented registers David Gibson
2018-01-18 12:01 ` Peter Maydell
2018-01-19 1:44 ` BALATON Zoltan
2018-01-11 4:59 ` [Qemu-devel] [PULL 04/11] ppc4xx_i2c: Implement basic I2C functions David Gibson
2018-01-11 4:59 ` [Qemu-devel] [PULL 05/11] spapr_pci: use warn_report() David Gibson
2018-01-11 4:59 ` [Qemu-devel] [PULL 06/11] hw/ide: Emulate SiI3112 SATA controller David Gibson
2018-01-18 12:07 ` Peter Maydell
2018-01-19 1:48 ` BALATON Zoltan
2018-01-18 12:10 ` Peter Maydell
2018-03-06 18:32 ` [Qemu-devel] [Qemu-ppc] " Thomas Huth
2018-03-06 23:30 ` BALATON Zoltan
2018-01-11 4:59 ` [Qemu-devel] [PULL 07/11] ppc/pnv: change powernv_ prefix to pnv_ for overall naming consistency David Gibson
2018-01-11 4:59 ` [Qemu-devel] [PULL 08/11] target/ppc: more use of the PPC_*() macros David Gibson
2018-01-11 4:59 ` [Qemu-devel] [PULL 09/11] Update dtc to fix compilation problem on Mac OS 10.6 David Gibson
2018-01-11 4:59 ` [Qemu-devel] [PULL 10/11] hw/ppc: Remove the deprecated spapr-pci-vfio-host-bridge device David Gibson
2018-01-11 4:59 ` [Qemu-devel] [PULL 11/11] spapr: Correct compatibility mode setting for hotplugged CPUs David Gibson
2018-01-11 14:34 ` [Qemu-devel] [PULL 00/11] ppc-for-2.12 queue 20180111 Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180111045937.2119-3-david@gibson.dropbear.id.au \
--to=david@gibson.dropbear.id.au \
--cc=agraf@suse.de \
--cc=balaton@eik.bme.hu \
--cc=groug@kaod.org \
--cc=mdroth@linux.vnet.ibm.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=surajjs@au1.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).