Commit f99ed40ad8f089eb18bf19c9473e72bb2d257c92

Authored by aurel32
1 parent d5529471

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
Showing 1 changed file with 1 additions and 1 deletions
hw/acpi.c
... ... @@ -145,7 +145,7 @@ static void pm_ioport_writew(void *opaque, uint32_t addr, uint32_t val)
145 145 s->pmcntrl = val & ~(SUS_EN);
146 146 if (val & SUS_EN) {
147 147 /* change suspend type */
148   - sus_typ = (val >> 10) & 3;
  148 + sus_typ = (val >> 10) & 7;
149 149 switch(sus_typ) {
150 150 case 0: /* soft power off */
151 151 qemu_system_shutdown_request();
... ...