]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/display/artist: Allow screen size up to 2048 lines
authorHelge Deller <deller@gmx.de>
Thu, 3 Sep 2020 05:44:58 +0000 (07:44 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 3 Sep 2020 15:30:04 +0000 (17:30 +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

index 16d85c65f86e3cb47549443184d0ed591fbfa6f9..955296d3d854d628d7deccdcea8f2d3855c0d20a 100644 (file)
@@ -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)