aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJuraj Marcin <jmarcin@redhat.com>2024-09-04 12:37:13 +0200
committerDavid Hildenbrand <david@redhat.com>2024-09-24 11:33:35 +0200
commit759cbb4ee971da13ddfa8ad73befc2351d542044 (patch)
tree0e281b023cf4358b4400488c44ad90c45ae25b7f /hw
parent1b063fe2df002052cc2d10799764979b8c583480 (diff)
downloadqemu-759cbb4ee971da13ddfa8ad73befc2351d542044.zip
qemu-759cbb4ee971da13ddfa8ad73befc2351d542044.tar.gz
qemu-759cbb4ee971da13ddfa8ad73befc2351d542044.tar.bz2
reset: Add RESET_TYPE_WAKEUP
Some devices need to distinguish cold start reset from waking up from a suspended state. This patch adds new value to the enum, and updates the i386 wakeup method to use this new reset type. Message-ID: <20240904103722.946194-3-jmarcin@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Juraj Marcin <jmarcin@redhat.com> Signed-off-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/i386/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 79a626a..80a65d9 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1732,7 +1732,7 @@ static void pc_machine_reset(MachineState *machine, ResetType type)
static void pc_machine_wakeup(MachineState *machine)
{
cpu_synchronize_all_states();
- pc_machine_reset(machine, RESET_TYPE_COLD);
+ pc_machine_reset(machine, RESET_TYPE_WAKEUP);
cpu_synchronize_all_post_reset();
}