hw/display/artist: rewrite vram access mode handling
commit3b21d998a12b380c590f1005343ab95e2d6a7669
authorSven Schnelle <svens@stackframe.org>
Fri, 21 Jan 2022 22:16:19 +0000 (21 23:16 +0100)
committerHelge Deller <deller@gmx.de>
Wed, 2 Feb 2022 17:46:43 +0000 (2 18:46 +0100)
tree98b96146ad80fcaa2430807dddf695a68c37ed2e
parent4a4554c6c561971197dffc80d641dc17ee2314dd
hw/display/artist: rewrite vram access mode handling

When writing this code it was assumed that register 0x118000 is the
buffer access mode for color map accesses. It turned out that this
is wrong. Instead register 0x118000 sets both src and dst buffer
access mode at the same time.

This required a larger rewrite of the code. The good thing is that
both the linear framebuffer and the register based vram access can
now be combined into one function.

This makes the linux 'stifb' framebuffer work, and both HP-UX 10.20
and HP-UX 11.11 are still working.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: qemu-stable@nongnu.org
Signed-off-by: Helge Deller <deller@gmx.de>
hw/display/artist.c
hw/display/trace-events