From ca888361bbe8c2b66b6619ba8714a396e98f67c9 Mon Sep 17 00:00:00 2001 From: Beth Kon Date: Mon, 13 Jul 2009 19:43:13 -0400 Subject: 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 Signed-off-by: Anthony Liguori --- hw/hpet.c | 1 + 1 file changed, 1 insertion(+) 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, -- cgit v1.2.1