Skip to contentSkip to conversation

pcnet: Clear ERR in CSR0 on stop

PATCH New Jan Kiszka 1 participant 1 message Mar 5, 2012

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 pcnet: Clear ERR in CSR0 on stop

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.

---
 hw/pcnet.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/pcnet.c +1 -1
index c53f06e..7413409 100644
@@ -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;
Signature · 1 line
1.7.3.4