]> git.proxmox.com Git - mirror_qemu.git/commit
hw/misc/sifive_test.c: replace exit calls with proper shutdown
authorClément Chigot <chigot@adacore.com>
Tue, 3 Oct 2023 07:14:25 +0000 (09:14 +0200)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 12 Oct 2023 02:34:30 +0000 (12:34 +1000)
commit215128e44bd3095b254e2f3d8ff067eadf166a1d
tree0435b5f66c8d05427e395506a1f302f822011e18
parent66bbe3e9b46112ec2fe35a7d6e79d8a9bb39d14a
hw/misc/sifive_test.c: replace exit calls with proper shutdown

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 request.

Signed-off-by: Clément Chigot <chigot@adacore.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20231003071427.188697-4-chigot@adacore.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/misc/sifive_test.c