hw/misc/debugexit: use runstate API instead of plain exit()
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 23 May 2024 07:09:17 +0000 (09:09 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 4 Jun 2024 09:53:43 +0000 (11:53 +0200)
commitaf1cf62401f01b1ecce1e2cd94fbd8410064418a
treead6aedeccd84d0f7687af90d301743aa14e35466
parent6ece1df96629de8e2381f06b876ceeb5fade758a
hw/misc/debugexit: use runstate API instead of plain exit()

Directly calling exit() prevents any kind of management or handling.
Instead use the corresponding runstate API.
The default behavior of the runstate API is the same as exit().

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240523-debugexit-v1-1-d52fcaf7bf8b@t-8ch.de>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/misc/debugexit.c