x86: Fix powerdown for non-ACPI case
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 2 Sep 2008 00:09:25 +0000 (00:09 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 2 Sep 2008 00:09:25 +0000 (00:09 +0000)
commit95eae45422d71c03ec328375881459b17a7d4250
treef078e38f9fa6529b974e3e5d826a6c3352e89522
parent65d16c5fcbe19c739f7fd3c3fa29a09a348dbe59
x86: Fix powerdown for non-ACPI case

Trivial fix for a corner case: system_shutdown on isapc machines causes
qemu to segfaults due to accessing the uninitialized pm_state. Issue a
system shutdown instead.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5130 c046a42c-6fe2-441c-8c8c-71466251a162
hw/acpi.c