From patchwork Wed Dec 5 06:53:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 203792 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 AE30A2C00BD for ; Wed, 5 Dec 2012 17:54:14 +1100 (EST) Received: from localhost ([::1]:43187 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tg8s0-0006IY-TH for incoming@patchwork.ozlabs.org; Wed, 05 Dec 2012 01:54:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tg8ro-0006C6-SQ for qemu-devel@nongnu.org; Wed, 05 Dec 2012 01:54:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tg8rk-0002tr-L2 for qemu-devel@nongnu.org; Wed, 05 Dec 2012 01:54:00 -0500 Received: from mail-da0-f45.google.com ([209.85.210.45]:37564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tg8rk-0002tF-FC for qemu-devel@nongnu.org; Wed, 05 Dec 2012 01:53:56 -0500 Received: by mail-da0-f45.google.com with SMTP id w4so1986970dam.4 for ; Tue, 04 Dec 2012 22:53:56 -0800 (PST) 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:in-reply-to:references:x-gm-message-state; bh=GVX+ndG62yzm7UEO9bJ6SNrOYr4KroPQbj/xWFvcqzw=; b=KjzKAnLU2QoRpAfux5/3ZL+EdYhelsaPV737zzIxfVH4AElRkl+I6jH/iLd7DYHMVB Asais/wpxIuLez+i8sn2k1oX8eb1TY1G0MZ9Yt9LyhEq0vYZia5E0FpwhEOKuqM1jFUf uaTRU/TuaxwbmBPhkkoDphUKhe9jwel6wjUtN5zY8syW1g3aBA4gMl5CTCPL3bWmJjrD OFRVE5yTLXD5efS8F3KjFfRivEwxkenb51tGJkSSlkSK5s8tz0cvUCdlUWTvY3J8wQOI QpM0HviuDeBKbYvwvz4P/ILYav51KLBe2tF41MfOYx7B01Yff5tz5IMcMgNkJ8soQC77 7o8g== Received: by 10.66.88.133 with SMTP id bg5mr42049737pab.21.1354690436001; Tue, 04 Dec 2012 22:53:56 -0800 (PST) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id us7sm2381337pbc.40.2012.12.04.22.53.53 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Dec 2012 22:53:55 -0800 (PST) From: Peter Crosthwaite To: qemu-devel@nongnu.org Date: Wed, 5 Dec 2012 16:53:42 +1000 Message-Id: <0726bd9390d5c58e61657ac42f368ecebc6cc1c3.1354690179.git.peter.crosthwaite@xilinx.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQnqvuW7niQ2DzE8acGJIkkEmfwXQ3WOOERHVagVPCr7sPq/HTawdGelh+m09u6yEICfn9QJ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.210.45 Cc: edgar.iglesias@gmail.com, Peter Crosthwaite , peter.maydell@linaro.org Subject: [Qemu-devel] [PATCH v1 1/3] xilinx_axienet: Implement R_IS behaviour 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 The interrupt status register R_IS is the standard clear-on-write behaviour. This was unimplemented and defaulting to updating the register to the written value. Implemented clear-on-write. Reported-by: Jason Wu Signed-off-by: Peter Crosthwaite --- hw/xilinx_axienet.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/xilinx_axienet.c b/hw/xilinx_axienet.c index baae02b..f2e3bf1 100644 --- a/hw/xilinx_axienet.c +++ b/hw/xilinx_axienet.c @@ -591,6 +591,10 @@ static void enet_write(void *opaque, hwaddr addr, s->maddr[s->fmi & 3][addr & 1] = value; break; + case R_IS: + s->regs[addr] &= ~value; + break; + case 0x8000 ... 0x83ff: s->ext_mtable[addr - 0x8000] = value; break;