Re: [PATCH 2/3] hw/char: riscv_htif: replace exit(0) with proper shutdown

2023-08-21 Thread Alistair Francis
On Fri, Aug 18, 2023 at 5:03 AM Clément Chigot wrote: > > This replaces the exit(0) call by a shutdown request, ensuring a proper > cleanup of Qemu. Otherwise, some connections like gdb could be broken > without being correctly flushed. > > Signed-off-by: Clément Chigot Reviewed-by: Alistair Fra

[PATCH 2/3] hw/char: riscv_htif: replace exit(0) with proper shutdown

2023-08-18 Thread Clément Chigot
This replaces the exit(0) call by a shutdown request, ensuring a proper cleanup of Qemu. Otherwise, some connections like gdb could be broken without being correctly flushed. Signed-off-by: Clément Chigot --- hw/char/riscv_htif.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-)