diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-08-09 08:42:19 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-09 08:42:19 +0000 |
commit | d9c3231019a0fbacbe15dcb26a0e3708b726af77 (patch) | |
tree | f00d2747772fbf49fcc46cefcd8f30bec97154a2 /vl.c | |
parent | b2b6f6ec3996925ebc85e77c5ac31ff34e8783f6 (diff) | |
download | qemu-d9c3231019a0fbacbe15dcb26a0e3708b726af77.zip qemu-d9c3231019a0fbacbe15dcb26a0e3708b726af77.tar.gz qemu-d9c3231019a0fbacbe15dcb26a0e3708b726af77.tar.bz2 |
Use qemu_irq for system_powerdown
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -4281,6 +4281,8 @@ static int vm_can_run(void) return 1; } +qemu_irq qemu_system_powerdown; + static void main_loop(void) { int r; @@ -4321,8 +4323,9 @@ static void main_loop(void) qemu_system_reset(); resume_all_vcpus(); } - if (qemu_powerdown_requested()) - qemu_system_powerdown(); + if (qemu_powerdown_requested()) { + qemu_irq_raise(qemu_system_powerdown); + } if ((r = qemu_vmstop_requested())) vm_stop(r); } |