[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 06/24] hw/gpio/gpio_pwr: use shutdown function for reboot
From: |
Peter Maydell |
Subject: |
[PULL 06/24] hw/gpio/gpio_pwr: use shutdown function for reboot |
Date: |
Fri, 2 Jul 2021 13:59:36 +0100 |
From: Maxim Uvarov <maxim.uvarov@linaro.org>
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/gpio/gpio_pwr.c b/hw/gpio/gpio_pwr.c
index 7714fa0dc4d..dbaf1c70c88 100644
--- a/hw/gpio/gpio_pwr.c
+++ b/hw/gpio/gpio_pwr.c
@@ -43,7 +43,7 @@ static void gpio_pwr_reset(void *opaque, int n, int level)
static void gpio_pwr_shutdown(void *opaque, int n, int level)
{
if (level) {
- qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN);
+ qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN);
}
}
--
2.20.1
- [PULL 04/24] tests: Boot and halt a Linux guest on the Raspberry Pi 2 machine, (continued)
- [PULL 04/24] tests: Boot and halt a Linux guest on the Raspberry Pi 2 machine, Peter Maydell, 2021/07/02
- [PULL 07/24] target/arm: Fix MVE widening/narrowing VLDR/VSTR offset calculation, Peter Maydell, 2021/07/02
- [PULL 08/24] target/arm: Fix bugs in MVE VRMLALDAVH, VRMLSLDAVH, Peter Maydell, 2021/07/02
- [PULL 12/24] target/arm: Implement MVE logical immediate insns, Peter Maydell, 2021/07/02
- [PULL 13/24] target/arm: Implement MVE vector shift left by immediate insns, Peter Maydell, 2021/07/02
- [PULL 20/24] target/arm: Implement MVE VADDLV, Peter Maydell, 2021/07/02
- [PULL 21/24] target/arm: Implement MVE long shifts by immediate, Peter Maydell, 2021/07/02
- [PULL 18/24] target/arm: Implement MVE saturating narrowing shifts, Peter Maydell, 2021/07/02
- [PULL 11/24] target/arm: Use dup_const() instead of bitfield_replicate(), Peter Maydell, 2021/07/02
- [PULL 17/24] target/arm: Implement MVE VSHRN, VRSHRN, Peter Maydell, 2021/07/02
- [PULL 06/24] hw/gpio/gpio_pwr: use shutdown function for reboot,
Peter Maydell <=
- [PULL 09/24] target/arm: Make asimd_imm_const() public, Peter Maydell, 2021/07/02
- [PULL 15/24] target/arm: Implement MVE VSHLL, Peter Maydell, 2021/07/02
- [PULL 24/24] target/arm: Implement MVE shifts by register, Peter Maydell, 2021/07/02
- [PULL 23/24] target/arm: Implement MVE shifts by immediate, Peter Maydell, 2021/07/02
- [PULL 16/24] target/arm: Implement MVE VSRI, VSLI, Peter Maydell, 2021/07/02
- [PULL 10/24] target/arm: Use asimd_imm_const for A64 decode, Peter Maydell, 2021/07/02
- [PULL 19/24] target/arm: Implement MVE VSHLC, Peter Maydell, 2021/07/02
- [PULL 22/24] target/arm: Implement MVE long shifts by register, Peter Maydell, 2021/07/02
- [PULL 14/24] target/arm: Implement MVE vector shift right by immediate insns, Peter Maydell, 2021/07/02
- Re: [PULL 00/24] target-arm queue, Peter Maydell, 2021/07/04