diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-06-24 13:00:56 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-07-03 03:12:35 -0400 |
commit | ee80f5ba22c660453c012a92c766f13498fd6a09 (patch) | |
tree | f6aa44230430c69efcd9955daad31cc423e9c981 /hw/acpi | |
parent | 40f23e4e52f6188036062abea432560e5cdd239a (diff) | |
download | qemu-ee80f5ba22c660453c012a92c766f13498fd6a09.zip qemu-ee80f5ba22c660453c012a92c766f13498fd6a09.tar.gz qemu-ee80f5ba22c660453c012a92c766f13498fd6a09.tar.bz2 |
acpi/ged: fix reset cause
Reset requests should use SHUTDOWN_CAUSE_GUEST_RESET not
SHUTDOWN_CAUSE_GUEST_SHUTDOWN.
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20210624110057.2398779-1-kraxel@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/acpi')
-rw-r--r-- | hw/acpi/generic_event_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/acpi/generic_event_device.c b/hw/acpi/generic_event_device.c index 39c8257..e28457a 100644 --- a/hw/acpi/generic_event_device.c +++ b/hw/acpi/generic_event_device.c @@ -207,7 +207,7 @@ static void ged_regs_write(void *opaque, hwaddr addr, uint64_t data, return; case ACPI_GED_REG_RESET: if (data == ACPI_GED_RESET_VALUE) { - qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN); + qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET); } return; } |