]> Git Repo - qemu.git/commitdiff
Always return latest pmsts instead of the old one (Xiantao Zhang)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 21 Jan 2009 16:31:20 +0000 (16:31 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 21 Jan 2009 16:31:20 +0000 (16:31 +0000)
It may lead to the issue when booting windows guests with acpi=1
if return the old pmsts.

Signed-off-by: Xiantao Zhang <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6375 c046a42c-6fe2-441c-8c8c-71466251a162

hw/acpi.c

index 92b1ffa6cf6e86056425e1517e69c422ed487386..c127d4cb4072e423211ccee0c131fd679da6bbc2 100644 (file)
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -92,7 +92,7 @@ static int get_pmsts(PIIX4PMState *s)
     d = muldiv64(qemu_get_clock(vm_clock), PM_FREQ, ticks_per_sec);
     if (d >= s->tmr_overflow_time)
         s->pmsts |= TMROF_EN;
-    return pmsts;
+    return s->pmsts;
 }
 
 static void pm_update_sci(PIIX4PMState *s)
This page took 0.027026 seconds and 4 git commands to generate.