qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] hw/char/sifive_uart: Fix broken UART on big endian hosts


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] hw/char/sifive_uart: Fix broken UART on big endian hosts
Date: Mon, 4 Nov 2024 21:50:17 +0100
User-agent: Mozilla Thunderbird

On 4/11/24 13:35, Thomas Huth wrote:
Casting a "uint32_t *" to a "uint8_t *" to get to the lowest 8-bit
part of the value does not work on big endian hosts. We've got to
take the proper detour through an 8-bit variable.

Fixes: 53c1557b23 ("hw/char: sifive_uart: Print uart characters async")
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
  hw/char/sifive_uart.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]