Re: [PATCH 1/4] semihosting: Don't return negative values on qemu_semihosting_console_write() failure

2022-07-24 Thread Richard Henderson
On 7/19/22 17:41, Peter Maydell wrote: The documentation comment for qemu_semihosting_console_write() says * Returns: number of bytes written -- this should only ever be short * on some sort of i/o error. and the callsites rely on this. However, the implementation code path which sends cons

[PATCH 1/4] semihosting: Don't return negative values on qemu_semihosting_console_write() failure

2022-07-19 Thread Peter Maydell
The documentation comment for qemu_semihosting_console_write() says * Returns: number of bytes written -- this should only ever be short * on some sort of i/o error. and the callsites rely on this. However, the implementation code path which sends console output to a chardev doesn't honour this