From patchwork Thu Jan 27 19:06:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Olivier DANET X-Patchwork-Id: 80718 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5B22BB70E9 for ; Fri, 28 Jan 2011 06:09:00 +1100 (EST) Received: from localhost ([127.0.0.1]:35539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiXDF-0008Jl-GU for incoming@patchwork.ozlabs.org; Thu, 27 Jan 2011 14:08:57 -0500 Received: from [140.186.70.92] (port=33245 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiXBJ-0007J8-1y for qemu-devel@nongnu.org; Thu, 27 Jan 2011 14:06:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiXBH-0003O9-Mt for qemu-devel@nongnu.org; Thu, 27 Jan 2011 14:06:56 -0500 Received: from mailout-eu.gmx.com ([213.165.64.42]:52901) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PiXBH-0003NM-9n for qemu-devel@nongnu.org; Thu, 27 Jan 2011 14:06:55 -0500 Received: (qmail 13740 invoked by uid 0); 27 Jan 2011 19:06:50 -0000 Received: from 82.241.250.68 by rms-eu014.v300.gmx.net with HTTP Date: Thu, 27 Jan 2011 20:06:48 +0100 From: "Olivier DANET" Message-ID: <20110127190648.245680@gmx.com> MIME-Version: 1.0 To: qemu-devel@nongnu.org X-Authenticated: #53979548 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 X-GMX-UID: efBnZdH4Li50bLSNXWhpyAhrZml1ZBg1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.42 Subject: [Qemu-devel] [PATCH] ESP : Fix status register update X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The Count to zero flag (STAT_TC) must not be cleared after an Interrupt Status register read. Signed-off-by: Olivier Danet --- hw/esp.c     2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/esp.c b/hw/esp.c index fa9d2a2..90bfdc6 100644 --- a/hw/esp.c +++ b/hw/esp.c @@ -525,9 +525,9 @@ static uint32_t esp_mem_readb(void *opaque, target_phys_addr_t addr)            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: