From patchwork Tue Feb 15 10:49:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Lackorzynski X-Patchwork-Id: 83232 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 6227AB7119 for ; Tue, 15 Feb 2011 21:50:28 +1100 (EST) Received: from localhost ([127.0.0.1]:53452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpIUD-0005JP-81 for incoming@patchwork.ozlabs.org; Tue, 15 Feb 2011 05:50:25 -0500 Received: from [140.186.70.92] (port=57309 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpIT8-0005I0-Gh for qemu-devel@nongnu.org; Tue, 15 Feb 2011 05:49:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpIT7-0003e3-Bf for qemu-devel@nongnu.org; Tue, 15 Feb 2011 05:49:18 -0500 Received: from os.inf.tu-dresden.de ([141.76.48.99]:38254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpIT7-0003dx-6Q for qemu-devel@nongnu.org; Tue, 15 Feb 2011 05:49:17 -0500 Received: from erwin.inf.tu-dresden.de ([141.76.48.80] helo=os.inf.tu-dresden.de) by os.inf.tu-dresden.de with esmtps (TLSv1:AES128-SHA:128) (Exim 4.74) id 1PpIT6-0003Ac-Ce for qemu-devel@nongnu.org; Tue, 15 Feb 2011 11:49:16 +0100 Date: Tue, 15 Feb 2011 11:49:15 +0100 From: Adam Lackorzynski To: qemu-devel@nongnu.org Message-ID: <20110215104915.GC19666@os.inf.tu-dresden.de> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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 2/3] 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");