Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MaygI-0003Je-QL for qemu-devel@nongnu.org; Tue, 11 Aug 2009 17:14:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MaygD-0003Hj-Rb for qemu-devel@nongnu.org; Tue, 11 Aug 2009 17:14:54 -0400 Received: from [199.232.76.173] (port=33559 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaygD-0003He-Ko for qemu-devel@nongnu.org; Tue, 11 Aug 2009 17:14:49 -0400 Received: from mail.gmx.net ([213.165.64.20]:37311) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MaygC-0001po-Kt for qemu-devel@nongnu.org; Tue, 11 Aug 2009 17:14:49 -0400 Date: Tue, 11 Aug 2009 23:14:46 +0200 From: Reimar =?iso-8859-1?Q?D=F6ffinger?= Message-ID: <20090811211446.GB10500@1und1.de> References: <4A81D3F1.1040300@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4A81D3F1.1040300@codemonkey.ws> Subject: [Qemu-devel] [PATCH 1/5] Setting the MDI SCBAck flag when interrupts for MDI are disabled is wrong, even if it does not seem to cause any real issue with known drivers. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This makes the emulation not set the SBAck flag for MDI interrupts when interrupts are actually disabled for MDI. I think (have not tested yet) that this is not necessary to fix anything, but according to the documentation the current code is wrong. Signed-off-by: Reimar Döffinger --- hw/eepro100.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/hw/eepro100.c b/hw/eepro100.c index ec31a6a..bf5d920 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -1043,9 +1043,7 @@ static void eepro100_write_mdi(EEPRO100State * s, uint32_t val) } data = s->mdimem[reg]; } - /* Emulation takes no time to finish MDI transaction. - * Set MDI bit in SCB status register. */ - s->mem[SCBAck] |= 0x08; + /* Emulation takes no time to finish MDI transaction. */ val |= BIT(28); if (raiseint) { eepro100_mdi_interrupt(s); -- 1.6.4