diff options
author | Thomas Huth <thuth@redhat.com> | 2023-07-21 11:47:20 +0200 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2023-09-11 11:45:54 +1000 |
commit | 058096f1c55ab688db7e1d6814aaefc1bcd87f7a (patch) | |
tree | b7ac0207603fd9951cd95300b3c96079f41158de /qemu-io-cmds.c | |
parent | c255946e3df4d9660e4f468a456633c24393d468 (diff) | |
download | qemu-058096f1c55ab688db7e1d6814aaefc1bcd87f7a.zip qemu-058096f1c55ab688db7e1d6814aaefc1bcd87f7a.tar.gz qemu-058096f1c55ab688db7e1d6814aaefc1bcd87f7a.tar.bz2 |
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>
Diffstat (limited to 'qemu-io-cmds.c')
0 files changed, 0 insertions, 0 deletions