aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-19 13:14:17 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-19 13:14:17 +0000
commitf99ed40ad8f089eb18bf19c9473e72bb2d257c92 (patch)
tree288a0b011356d3cb5b25af0958f8a5a0399d8e29
parentd55294710772a264e6697b06272c057b4fc61939 (diff)
ACPI suspend type field is 3 bits long
According to ACPI spec table 4-13 suspend type field should be 3 bits long. (Gleb Natapov) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5027 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--hw/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/acpi.c b/hw/acpi.c
index ef0e0978dd..bdcc4255f1 100644
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -145,7 +145,7 @@ static void pm_ioport_writew(void *opaque, uint32_t addr, uint32_t val)
s->pmcntrl = val & ~(SUS_EN);
if (val & SUS_EN) {
/* change suspend type */
- sus_typ = (val >> 10) & 3;
+ sus_typ = (val >> 10) & 7;
switch(sus_typ) {
case 0: /* soft power off */
qemu_system_shutdown_request();