All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] cirrus-vga: Make frame buffer endianness little endian by default
@ 2026-04-01 20:53 BALATON Zoltan
  2026-04-02 17:04 ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 2+ messages in thread
From: BALATON Zoltan @ 2026-04-01 20:53 UTC (permalink / raw)
  To: qemu-devel
  Cc: Gerd Hoffmann, marcandre.lureau, Thomas Huth, Peter Xu,
	Fabiano Rosas, Philippe Mathieu-Daudé

QEMU VGA defaults to target endianness but real Cirrus VGA is little
endian so set it explicitly in cirrus_init_common() to fix it on big
endian machines.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
 hw/display/cirrus_vga.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c
index 629b34fc68..48be3c8a93 100644
--- a/hw/display/cirrus_vga.c
+++ b/hw/display/cirrus_vga.c
@@ -2930,6 +2930,8 @@ void cirrus_init_common(CirrusVGAState *s, Object *owner,
     s->vga.cursor_invalidate = cirrus_cursor_invalidate;
     s->vga.cursor_draw_line = cirrus_cursor_draw_line;
 
+    s->vga.big_endian_fb = false;
+
     qemu_register_reset(cirrus_reset, s);
 }
 
-- 
2.41.3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v3] cirrus-vga: Make frame buffer endianness little endian by default
  2026-04-01 20:53 [PATCH v3] cirrus-vga: Make frame buffer endianness little endian by default BALATON Zoltan
@ 2026-04-02 17:04 ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-04-02 17:04 UTC (permalink / raw)
  To: BALATON Zoltan, qemu-devel
  Cc: Gerd Hoffmann, marcandre.lureau, Thomas Huth, Peter Xu,
	Fabiano Rosas

On 1/4/26 22:53, BALATON Zoltan wrote:
> QEMU VGA defaults to target endianness but real Cirrus VGA is little
> endian so set it explicitly in cirrus_init_common() to fix it on big
> endian machines.
> 
> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
> ---
>   hw/display/cirrus_vga.c | 2 ++
>   1 file changed, 2 insertions(+)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-02 17:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-01 20:53 [PATCH v3] cirrus-vga: Make frame buffer endianness little endian by default BALATON Zoltan
2026-04-02 17:04 ` Philippe Mathieu-Daudé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.