From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJ9Mm-0007sH-76 for qemu-devel@nongnu.org; Tue, 02 Oct 2012 16:46:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJ9Ml-0006mm-E8 for qemu-devel@nongnu.org; Tue, 02 Oct 2012 16:46:56 -0400 Received: from mailout-eu.gmx.com ([213.165.64.43]:39093) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TJ9Ml-0006lo-3b for qemu-devel@nongnu.org; Tue, 02 Oct 2012 16:46:55 -0400 Content-Type: text/plain; charset="utf-8" Date: Tue, 02 Oct 2012 22:46:49 +0200 From: odanet@caramail.com Message-ID: <20121002204651.222950@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH] esp: On qemu-system-sparc's esp, TC is not set properly List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Could you please try this patch. The TC (count to zero) flag is wrongly cleared after reading the RINTR register. (contradicting the comment just above the patch in the source file.) Regards Olivier diff --rup a/hw/esp.c b/hw/esp.c --- a/hw/esp.c  2012-10-01 22:06:39.000000000 +0200 +++ b/hw/esp.c  2012-10-02 22:22:53.000000000 +0200 @@ -417,9 +417,9 @@ uint64_t esp_reg_read(ESPState *s, uint3            except TC */         old_val = s->rregs[ESP_RINTR];         s->rregs[ESP_RINTR] = 0; -        s->rregs[ESP_RSTAT] &= ~STAT_TC;         s->rregs[ESP_RSEQ] = SEQ_CD;         esp_lower_irq(s); +        s->rregs[ESP_RSTAT] &= STAT_TC | STAT_MI;         return old_val;     default: