diff options
author | Helge Deller <deller@gmx.de> | 2020-09-03 07:44:58 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2020-09-03 17:30:04 +0200 |
commit | 32a2b033f0a406c0dd4cc7375367ee63cc36789a (patch) | |
tree | 02d323deffd90e98d6857ea510f547d9ca9f621e /hw/display/artist.c | |
parent | c7050f3f167b80e844c6c52f9586c4632a4f54f3 (diff) |
hw/display/artist: Allow screen size up to 2048 lines
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>
Diffstat (limited to 'hw/display/artist.c')
-rw-r--r-- | hw/display/artist.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |