From: Lisa Hsu Date: Tue, 18 May 2004 18:30:17 +0000 (-0400) Subject: fix the indefinite interrupting of the ethernet device. X-Git-Tag: m5_1.0_tutorial~335 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=675b849b50083c1bcde52c806fc5e03702142371;p=gem5.git fix the indefinite interrupting of the ethernet device. dev/ns_gige.cc: clear the device interrupts dev/ns_gige_reg.h: Add a new mask --HG-- extra : convert_revision : ce3617315677cbee577ed8893821a8abc5a1a10d --- diff --git a/dev/ns_gige.cc b/dev/ns_gige.cc index 36f17c4fb..cae90a3b4 100644 --- a/dev/ns_gige.cc +++ b/dev/ns_gige.cc @@ -299,7 +299,7 @@ EtherDev::read(MemReqPtr &req, uint8_t *data) case ISR: reg = regs.isr; - regs.isr = 0; + devIntrClear(ISR_ALL); break; case IMR: diff --git a/dev/ns_gige_reg.h b/dev/ns_gige_reg.h index 5b5b6dc27..774fec435 100644 --- a/dev/ns_gige_reg.h +++ b/dev/ns_gige_reg.h @@ -219,6 +219,7 @@ #define ISR_RXERR 0x00000004 #define ISR_RXDESC 0x00000002 #define ISR_RXOK 0x00000001 +#define ISR_ALL 0x7FFFFFFF /* transmit configuration register */ #define TXCFG_CSI 0x80000000