[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/10] hw/display/artist: Allow screen size up to 2048 lines
From: |
Helge Deller |
Subject: |
[PULL 10/10] hw/display/artist: Allow screen size up to 2048 lines |
Date: |
Thu, 3 Sep 2020 18:07:46 +0200 |
Adjust the ADDR_TO_Y() macro to extract 11 bits, which allows userspace
to address screen sizes up to 2048 lines (instead of 1024 before).
Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/display/artist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/display/artist.c b/hw/display/artist.c
index 16d85c65f8..955296d3d8 100644
--- a/hw/display/artist.c
+++ b/hw/display/artist.c
@@ -193,7 +193,7 @@ static const char *artist_reg_name(uint64_t addr)
#undef REG_NAME
/* artist has a fixed line length of 2048 bytes. */
-#define ADDR_TO_Y(addr) extract32(addr, 11, 10)
+#define ADDR_TO_Y(addr) extract32(addr, 11, 11)
#define ADDR_TO_X(addr) extract32(addr, 0, 11)
static int16_t artist_get_x(uint32_t reg)
--
2.21.3
- [PULL 00/10] hppa power button support, graphics updates and firmware fixes, Helge Deller, 2020/09/03
- [PULL 04/10] hw/hppa: Change fw_cfg port address, Helge Deller, 2020/09/03
- [PULL 01/10] seabios-hppa: Update SeaBIOS to hppa-qemu-5.2-2 tag, Helge Deller, 2020/09/03
- [PULL 10/10] hw/display/artist: Allow screen size up to 2048 lines,
Helge Deller <=
- [PULL 02/10] hw/hppa: Make number of TLB and BTLB entries configurable, Helge Deller, 2020/09/03
- [PULL 05/10] hw/hppa: Tell SeaBIOS port address of fw_cfg, Helge Deller, 2020/09/03
- [PULL 08/10] hw/display/artist: Verify artist screen resolution, Helge Deller, 2020/09/03
- [PULL 09/10] hw/display/artist: Refactor x/y coordination extraction, Helge Deller, 2020/09/03
- [PULL 06/10] hw/hppa: Add power button emulation, Helge Deller, 2020/09/03
- [PULL 07/10] target/hppa: Fix boot with old Linux installation CDs, Helge Deller, 2020/09/03
- [PULL 03/10] hw/hppa: Store boot device in fw_cfg section, Helge Deller, 2020/09/03
- Re: [PULL 00/10] hppa power button support, graphics updates and firmware fixes, Peter Maydell, 2020/09/07