qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT ad32308] pcnet: Restart poll timer on pcnet_start


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT ad32308] pcnet: Restart poll timer on pcnet_start
Date: Fri, 09 Oct 2009 02:22:03 -0000

From: Jan Kiszka <address@hidden>

Just like we call into pcnet_poll_timer on stop, we need to call it on
start to trigger the setup of the poll timer.

Patchworks-ID: 35313
Signed-off-by: Jan Kiszka <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/hw/pcnet.c b/hw/pcnet.c
index 4ba1dcc..afeaca7 100644
--- a/hw/pcnet.c
+++ b/hw/pcnet.c
@@ -935,6 +935,7 @@ static void pcnet_start(PCNetState *s)
 
     s->csr[0] &= ~0x0004;       /* clear STOP bit */
     s->csr[0] |= 0x0002;
+    pcnet_poll_timer(s);
 }
 
 static void pcnet_stop(PCNetState *s)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]