hw/gpio/gpio_pwr: use shutdown function for reboot
authorMaxim Uvarov <maxim.uvarov@linaro.org>
Fri, 25 Jun 2021 11:18:42 +0000 (14:18 +0300)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Jul 2021 10:48:36 +0000 (11:48 +0100)
commite3bcf57c1a3c498fe7bd1f18744614a802d8859a
treefe4a1a850341388855a256c1fd154738560bcff9
parent103e7579ddbd539fbe38e150da78264d0496023a
hw/gpio/gpio_pwr: use shutdown function for reboot

qemu has 2 type of functions: shutdown and reboot. Shutdown
function has to be used for machine shutdown. Otherwise we cause
a reset with a bogus "cause" value, when we intended a shutdown.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20210625111842.3790-3-maxim.uvarov@linaro.org
[PMM: tweaked commit message]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/gpio/gpio_pwr.c