Skip to contentSkip to conversation

Reset HPET config register on hpet_reset

PATCH New Beth Kon 1 participant 1 message Jul 13, 2009

lore
Share & tools
lore

Beth Kon

author
#0 lore raw

PATCH 1/1 Reset HPET config register on hpet_reset

Without this, after system reset, hpet does not detect transition from non-legacy to legacy mode.

hw/hpet.c +1 -0
index 186d671..60dff90 100644
@@ -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,