* [Qemu-devel] [PATCH] Reset HPET config register on hpet_reset
@ 2009-07-13 23:43 Beth Kon
0 siblings, 0 replies; only message in thread
From: Beth Kon @ 2009-07-13 23:43 UTC (permalink / raw)
To: qemu-devel; +Cc: Beth Kon
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>
diff --git a/hw/hpet.c b/hw/hpet.c
index 186d671..60dff90 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,
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-13 23:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-13 23:43 [Qemu-devel] [PATCH] Reset HPET config register on hpet_reset Beth Kon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).