aboutsummaryrefslogtreecommitdiff
path: root/qemu-keymap.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-11-28 18:54:09 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-12-03 12:26:24 +0100
commit302075f85e29d6e658aeec75f50a90eec23f3726 (patch)
tree68de380c639d78c2c4159690e565570fa0c95b9d /qemu-keymap.c
parent5311599cdc48337f2f27b1b51a80d46d75b05ed0 (diff)
downloadqemu-302075f85e29d6e658aeec75f50a90eec23f3726.zip
qemu-302075f85e29d6e658aeec75f50a90eec23f3726.tar.gz
qemu-302075f85e29d6e658aeec75f50a90eec23f3726.tar.bz2
hw/display/vga: Do not reset 'big_endian_fb' in vga_common_reset()
The 'pci-vga' device allow setting a 'big-endian-framebuffer' property since commit 3c2784fc864 ("vga: Expose framebuffer byteorder as a QOM property"). Similarly, the 'virtio-vga' device since commit 8be61ce2ce3 ("virtio-vga: implement big-endian-framebuffer property"). Both call vga_common_reset() in their reset handler, respectively pci_secondary_vga_reset() and virtio_vga_base_reset_hold(), which reset 'big_endian_fb', overwritting the property. This is not correct: the hardware is expected to keep its configured endianness during resets. Move 'big_endian_fb' assignment from vga_common_reset() to vga_common_init() which is called once when the common VGA state is initialized. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Message-Id: <20241129101721.17836-2-philmd@linaro.org>
Diffstat (limited to 'qemu-keymap.c')
0 files changed, 0 insertions, 0 deletions