Re: [PATCH v3 3/5] hw/misc/sifive_test.c: replace exit calls with proper shutdown

2023-09-17 Thread Alistair Francis
On Thu, Sep 7, 2023 at 9:26 PM Clément Chigot wrote: > > This replaces the exit calls by shutdown requests, ensuring a proper > cleanup of Qemu. Otherwise, some connections like gdb could be broken > before its final packet ("Wxx") is being sent. This part, being done > inside qemu_cleanup functio

[PATCH v3 3/5] hw/misc/sifive_test.c: replace exit calls with proper shutdown

2023-09-07 Thread Clément Chigot
This replaces the exit calls by shutdown requests, ensuring a proper cleanup of Qemu. Otherwise, some connections like gdb could be broken before its final packet ("Wxx") is being sent. This part, being done inside qemu_cleanup function, can be reached only when the main loop exits after a shutdown