[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL][PATCH 2/5] pcnet: Clear ERR in CSR0 on stop
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PULL][PATCH 2/5] pcnet: Clear ERR in CSR0 on stop |
Date: |
Mon, 16 Apr 2012 17:36:30 +0200 |
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 <address@hidden>
---
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
- [Qemu-devel] [PULL][PATCH 0/5] Pending assorted patches in my queue, Jan Kiszka, 2012/04/16
- [Qemu-devel] [PULL][PATCH 4/5] Kick io-thread on qemu_chr_accept_input, Jan Kiszka, 2012/04/16
- [Qemu-devel] [PULL][PATCH 2/5] pcnet: Clear ERR in CSR0 on stop,
Jan Kiszka <=
- [Qemu-devel] [PULL][PATCH 3/5] pcnet: Properly handle TX requests during Link Fail, Jan Kiszka, 2012/04/16
- [Qemu-devel] [PULL][PATCH 5/5] vapic: Disable for pre-1.1 machines, Jan Kiszka, 2012/04/16
- [Qemu-devel] [PULL][PATCH 1/5] signrom: Rewrite as python script, Jan Kiszka, 2012/04/16
- Re: [Qemu-devel] [PULL][PATCH 0/5] Pending assorted patches in my queue, Anthony Liguori, 2012/04/16