Commit 7d93b1fa188a7e32bd5e53fce819d39cf6d90fcc
Committed by
Anthony Liguori
1 parent
ca94dbc7
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>
Showing
1 changed file
with
1 additions
and
0 deletions
hw/hpet.c
... | ... | @@ -553,6 +553,7 @@ static void hpet_reset(void *opaque) { |
553 | 553 | /* 64-bit main counter; 3 timers supported; LegacyReplacementRoute. */ |
554 | 554 | s->capability = 0x8086a201ULL; |
555 | 555 | s->capability |= ((HPET_CLK_PERIOD) << 32); |
556 | + s->config = 0ULL; | |
556 | 557 | if (count > 0) |
557 | 558 | /* we don't enable pit when hpet_reset is first called (by hpet_init) |
558 | 559 | * because hpet is taking over for pit here. On subsequent invocations, | ... | ... |