From patchwork Fri Apr 19 02:04:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 237803 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 AA3562C0216 for ; Fri, 19 Apr 2013 12:06:41 +1000 (EST) Received: from localhost ([::1]:41608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UT0il-0007JN-Qw for incoming@patchwork.ozlabs.org; Thu, 18 Apr 2013 22:06:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UT0iP-0007HP-Rr for qemu-devel@nongnu.org; Thu, 18 Apr 2013 22:06:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UT0iM-00031H-HK for qemu-devel@nongnu.org; Thu, 18 Apr 2013 22:06:17 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:64732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UT0iM-00030p-AR for qemu-devel@nongnu.org; Thu, 18 Apr 2013 22:06:14 -0400 Received: by mail-pa0-f41.google.com with SMTP id kx10so103987pab.14 for ; Thu, 18 Apr 2013 19:06:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=RXlZy1aIziNqEjEueEIIC4TggZy4FBXI5pwIeCSNIDY=; b=nEU0DQgJxX6e465qNBFDSWfJufTlPq6kC397SbqfS+sQTWDpw+21S7GQ3D2vy4r02v 3A7ovKW3pXH67RZQ/OlZMdnEHYdFToFS65milNW0wDoCJENqTJClNCW0PpVhydzj/rrB NT60ubGDEj9wZVKQfvlxK6i7UxVfNQvUaKX02UYPeLh9UfVrhmmnOWeRlo7YTX513+u4 fOeFqdKOHuwTY/vX3VSvkJYms1vHr5Tg6Su3zDOjWGP520sfRhdE6kV0jgfa7xoqI56F KIWMKV757270UTiABaentO83b4Oct+Ga9+iYst1WcCO4aBvgs8LvYVjQGgGAZOutxXtv 8HGA== X-Received: by 10.66.233.34 with SMTP id tt2mr2948404pac.160.1366337173703; Thu, 18 Apr 2013 19:06:13 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPS id jw10sm11619389pbb.3.2013.04.18.19.06.11 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 18 Apr 2013 19:06:12 -0700 (PDT) From: peter.crosthwaite@xilinx.com To: qemu-devel@nongnu.org Date: Fri, 19 Apr 2013 12:04:09 +1000 Message-Id: <1ef58cf6a871b74f59addd5cbdbbd26bb001dc55.1366335998.git.peter.crosthwaite@xilinx.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: X-Gm-Message-State: ALoCoQlY6PgQQ2ntjTFCBpPevioxkYz0ZHdjxHxx7ZTc9KWdP2RYsgkRwO7ufPGiNyMpp+aESwnl X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.41 Cc: peter.maydell@linaro.org Subject: [Qemu-devel] [PATCH for-1.5 v2 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 --- hw/ssi/xilinx_spips.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) 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;