summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeth Kon <eak@us.ibm.com>2009-07-13 19:43:13 -0400
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-16 18:49:08 -0500
commitca888361bbe8c2b66b6619ba8714a396e98f67c9 (patch)
tree3ebc55a23789ff0230174906253822f9a89755fb
parentdf97ff696bcf4d81e36468e33e2c7797acbe4c6c (diff)
downloadqemu-ca888361bbe8c2b66b6619ba8714a396e98f67c9.tar.gz
Reset HPET config register on hpet_reset
Without this, after system reset, hpet does not detect transition from non-legacy to legacy mode. Signed-off-by: Beth Kon <eak@us.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--hw/hpet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/hpet.c b/hw/hpet.c
index c7945ecded..336c731bd7 100644
--- a/hw/hpet.c
+++ b/hw/hpet.c
@@ -554,6 +554,7 @@ static void hpet_reset(void *opaque) {
/* 64-bit main counter; 3 timers supported; LegacyReplacementRoute. */
s->capability = 0x8086a201ULL;
s->capability |= ((HPET_CLK_PERIOD) << 32);
+ s->config = 0ULL;
if (count > 0)
/* we don't enable pit when hpet_reset is first called (by hpet_init)
* because hpet is taking over for pit here. On subsequent invocations,