Thomas Huth 058096f1c5 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>
2023-09-11 11:45:54 +10:00
..
2023-07-25 17:15:47 +03:00
2023-09-08 13:08:52 +03:00
2023-08-23 12:06:39 +02:00
2023-09-06 11:14:55 -04:00
2023-08-23 12:06:39 +02:00
2023-08-31 09:45:17 +01:00
2023-09-08 13:08:52 +03:00
2023-09-06 11:14:55 -04:00
2023-08-31 19:47:43 +02:00
2023-07-25 17:14:07 +03:00
2023-09-07 14:01:29 -04:00
2023-09-08 13:08:52 +03:00