Commit 055479feab63607b8042bb8ebb2e0523f17cbc4e
1 parent
14778c20
Always return latest pmsts instead of the old one (Xiantao Zhang)
It may lead to the issue when booting windows guests with acpi=1 if return the old pmsts. Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6375 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
hw/acpi.c
@@ -92,7 +92,7 @@ static int get_pmsts(PIIX4PMState *s) | @@ -92,7 +92,7 @@ static int get_pmsts(PIIX4PMState *s) | ||
92 | d = muldiv64(qemu_get_clock(vm_clock), PM_FREQ, ticks_per_sec); | 92 | d = muldiv64(qemu_get_clock(vm_clock), PM_FREQ, ticks_per_sec); |
93 | if (d >= s->tmr_overflow_time) | 93 | if (d >= s->tmr_overflow_time) |
94 | s->pmsts |= TMROF_EN; | 94 | s->pmsts |= TMROF_EN; |
95 | - return pmsts; | 95 | + return s->pmsts; |
96 | } | 96 | } |
97 | 97 | ||
98 | static void pm_update_sci(PIIX4PMState *s) | 98 | static void pm_update_sci(PIIX4PMState *s) |