From patchwork Tue May 21 06:30:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 245198 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1D5E42C00A8 for ; Tue, 21 May 2013 16:35:06 +1000 (EST) Received: from localhost ([::1]:46142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UegA4-0005bG-5M for incoming@patchwork.ozlabs.org; Tue, 21 May 2013 02:35:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ueg9X-0005R4-T8 for qemu-devel@nongnu.org; Tue, 21 May 2013 02:34:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ueg9S-00047a-S9 for qemu-devel@nongnu.org; Tue, 21 May 2013 02:34:31 -0400 Received: from mail-pb0-x22f.google.com ([2607:f8b0:400e:c01::22f]:52247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ueg9S-00047G-LM for qemu-devel@nongnu.org; Tue, 21 May 2013 02:34:26 -0400 Received: by mail-pb0-f47.google.com with SMTP id rr4so289273pbb.6 for ; Mon, 20 May 2013 23:34:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=lKbiivDKpKGI7KjvUy2VWys+538LOMViVHQQ7k91vak=; b=NCcdjJCyqObHgCClXaQbwH0ku3Tkc+oEwNsnEnRHEztGFJrulJFDKLUwGrNkb2O9ki GIhL/MMPKkGIB4/rkmDQyaPWolWSYbzqfi/z3xV0/NcXFQELtdo3gPUwxHojddSA9HMw H4/movlI6lUFPj+YaAxwxlhLE2VrB5x+MJfkCts8pl6usZYG/myydGyi6u2CjW/Y7C3M TuQMIid9uwzdlRW04V4HVXSN7hI+fosTQE6Ic5bvDBNABXx71yYsxpBRzCI3BvaOT9Gx O9dLSGtmqB9tGD5TuDntJD05o97kXD3/U7q1jv//g86exx1TVWI+6nzOOQAr9U3G96qa UVdQ== X-Received: by 10.66.253.74 with SMTP id zy10mr1645209pac.123.1369118065736; Mon, 20 May 2013 23:34:25 -0700 (PDT) Received: from localhost ([203.126.243.116]) by mx.google.com with ESMTPSA id qb1sm1421250pbb.33.2013.05.20.23.34.22 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 20 May 2013 23:34:24 -0700 (PDT) From: peter.crosthwaite@xilinx.com To: peter.maydell@linaro.org, qemu-devel@nongnu.org Date: Tue, 21 May 2013 16:30:06 +1000 Message-Id: <999ff0091ed3cc3969a431bf55c00ef934cecc8e.1369117359.git.peter.crosthwaite@xilinx.com> X-Mailer: git-send-email 1.8.3.rc1.44.gb387c77.dirty In-Reply-To: References: X-Gm-Message-State: ALoCoQnIlJKHzmmAikrpekd2nb5G6c22OvtQuaipVFBe1FAeJ5mUqScmpioNpILWLX9AEJypQtw6 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::22f Cc: edgar.iglesias@gmail.com Subject: [Qemu-devel] [PATCH arm-devs v4 02/15] xilinx_spips: Make interrupts clear on read X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Peter Crosthwaite By default these interrupts are clear on read. Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell Reviewed-by: Edgar E. Iglesias --- hw/ssi/xilinx_spips.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/ssi/xilinx_spips.c b/hw/ssi/xilinx_spips.c index 734adf0..261d948 100644 --- a/hw/ssi/xilinx_spips.c +++ b/hw/ssi/xilinx_spips.c @@ -330,6 +330,10 @@ static uint64_t xilinx_spips_read(void *opaque, hwaddr addr, mask = 0x0002FFFF; break; case R_INTR_STATUS: + ret = s->regs[addr] & IXR_ALL; + s->regs[addr] = 0; + DB_PRINT("addr=" TARGET_FMT_plx " = %x\n", addr * 4, ret); + return ret; case R_INTR_MASK: mask = IXR_ALL; break;