qemu/hw/char
Thomas Huth b9f83298b9 hw/char/riscv_htif: Fix the console syscall on big endian hosts
Values that have been read via cpu_physical_memory_read() from the
guest's memory have to be swapped in case the host endianess differs
from the guest.

Fixes: a6e13e31d5 ("riscv_htif: Support console output via proxy syscall")
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-Id: <20230721094720.902454-3-thuth@redhat.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
(cherry picked from commit 058096f1c55ab688db7e1d6814aaefc1bcd87f7a)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-09-21 19:35:19 +03:00
..
avr_usart.c
bcm2835_aux.c
cadence_uart.c
cmsdk-apb-uart.c
debugcon.c
digic-uart.c
escc.c hw/char/escc: Implement loopback mode 2023-07-25 14:40:49 +02:00
etraxfs_ser.c
exynos4210_uart.c
goldfish_tty.c
grlib_apbuart.c
ibex_uart.c
imx_serial.c
ipoctal232.c
Kconfig
mcf_uart.c
mchp_pfsoc_mmuart.c
meson.build meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
nrf51_uart.c
omap_uart.c
parallel-isa.c
parallel.c
pl011.c
renesas_sci.c
riscv_htif.c hw/char/riscv_htif: Fix the console syscall on big endian hosts 2023-09-21 19:35:19 +03:00
sclpconsole-lm.c
sclpconsole.c
serial-isa.c
serial-pci-multi.c
serial-pci.c
serial.c
sh_serial.c
shakti_uart.c
sifive_uart.c
spapr_vty.c
stm32f2xx_usart.c
terminal3270.c
trace-events
trace.h
virtio-console.c
virtio-serial-bus.c
xen_console.c
xilinx_uartlite.c