提交 055479fe 编写于 作者: A aliguori

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: NXiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6375 c046a42c-6fe2-441c-8c8c-71466251a162
上级 14778c20
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册