[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 7d93b1f] Reset HPET config register on hpet_reset
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 7d93b1f] Reset HPET config register on hpet_reset |
Date: |
Thu, 16 Jul 2009 23:12:46 -0000 |
From: Beth Kon <address@hidden>
Without this, after system reset, hpet does not detect transition from
non-legacy to legacy mode.
Signed-off-by: Beth Kon <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/hw/hpet.c b/hw/hpet.c
index 3873f4c..24aee6a 100644
--- a/hw/hpet.c
+++ b/hw/hpet.c
@@ -553,6 +553,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,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 7d93b1f] Reset HPET config register on hpet_reset,
Anthony Liguori <=