From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4Y80-0005Qn-Sw for qemu-devel@nongnu.org; Mon, 05 Mar 2012 08:39:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4Y7z-0003jh-1A for qemu-devel@nongnu.org; Mon, 05 Mar 2012 08:39:04 -0500 Received: from david.siemens.de ([192.35.17.14]:32129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4Y7y-0003jV-Nq for qemu-devel@nongnu.org; Mon, 05 Mar 2012 08:39:02 -0500 Message-ID: <4F54C1F2.7050004@siemens.com> Date: Mon, 05 Mar 2012 14:38:58 +0100 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] pcnet: Clear ERR in CSR0 on stop List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel , Anthony Liguori pcnet_stop already clears any reason (BABL, CERR, MISS, MERR) why ERR (bit 15) should be set in CRS0. So we have to clear that bit as well. Signed-off-by: Jan Kiszka --- hw/pcnet.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pcnet.c b/hw/pcnet.c index c53f06e..7413409 100644 --- a/hw/pcnet.c +++ b/hw/pcnet.c @@ -884,7 +884,7 @@ static void pcnet_stop(PCNetState *s) #ifdef PCNET_DEBUG printf("pcnet_stop\n"); #endif - s->csr[0] &= ~0x7feb; + s->csr[0] &= ~0xffeb; s->csr[0] |= 0x0014; s->csr[4] &= ~0x02c2; s->csr[5] &= ~0x0011; -- 1.7.3.4