Files
qemu/hw/display
Philippe Mathieu-Daudé 302075f85e 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 3c2784fc86 ("vga: Expose framebuffer
byteorder as a QOM property"). Similarly, the 'virtio-vga'
device since commit 8be61ce2ce ("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>
2024-12-03 12:26:24 +01:00
..
2023-12-29 11:17:30 +11:00
2017-03-27 12:14:45 +02:00
2024-10-01 14:57:49 +01:00
2022-12-03 22:07:07 +01:00
2024-04-18 11:17:27 +02:00
2023-12-29 11:17:30 +11:00
2024-10-03 19:33:23 +02:00
2023-12-29 11:17:30 +11:00
2023-12-29 11:17:30 +11:00
2023-10-16 11:29:56 +04:00