From patchwork Sat Mar 5 12:51:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Lackorzynski X-Patchwork-Id: 85524 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 DF276B70D3 for ; Sat, 5 Mar 2011 23:59:19 +1100 (EST) Received: from localhost ([127.0.0.1]:36661 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pvr3k-0006HX-Qf for incoming@patchwork.ozlabs.org; Sat, 05 Mar 2011 07:58:12 -0500 Received: from [140.186.70.92] (port=38144 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pvqxc-0002rM-11 for qemu-devel@nongnu.org; Sat, 05 Mar 2011 07:51:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvqxZ-0002zY-2j for qemu-devel@nongnu.org; Sat, 05 Mar 2011 07:51:51 -0500 Received: from os.inf.tu-dresden.de ([141.76.48.99]:40835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvqxY-0002z3-RC for qemu-devel@nongnu.org; Sat, 05 Mar 2011 07:51:49 -0500 Received: from erwin.inf.tu-dresden.de ([141.76.48.80] helo=x) by os.inf.tu-dresden.de with esmtp (Exim 4.74) id 1PvqxW-0008Ps-GK for qemu-devel@nongnu.org; Sat, 05 Mar 2011 13:51:46 +0100 From: Adam Lackorzynski To: qemu-devel@nongnu.org Date: Sat, 5 Mar 2011 13:51:42 +0100 Message-Id: <1299329505-7379-2-git-send-email-adam@os.inf.tu-dresden.de> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1299329505-7379-1-git-send-email-adam@os.inf.tu-dresden.de> References: <1299329505-7379-1-git-send-email-adam@os.inf.tu-dresden.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 141.76.48.99 Subject: [Qemu-devel] [PATCH 1/4] target-arm: Fix soft interrupt in GIC distributor 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 Fix selection of target list filter mode. Signed-off-by: Adam Lackorzynski Reviewed-by: Peter Maydell --- hw/arm_gic.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm_gic.c b/hw/arm_gic.c index e6b1953..0e934ec 100644 --- a/hw/arm_gic.c +++ b/hw/arm_gic.c @@ -549,10 +549,10 @@ static void gic_dist_writel(void *opaque, target_phys_addr_t offset, mask = (value >> 16) & ALL_CPU_MASK; break; case 1: - mask = 1 << cpu; + mask = ALL_CPU_MASK ^ (1 << cpu); break; case 2: - mask = ALL_CPU_MASK ^ (1 << cpu); + mask = 1 << cpu; break; default: DPRINTF("Bad Soft Int target filter\n");