Message ID | 1441731092-6513-6-git-send-email-peter.maydell@linaro.org |
---|---|
State | Accepted |
Commit | d5523a13656fb8df902a15a9fd8bd652b85e97e0 |
Headers | show
Return-Path: <patchwork-forward+bncBC6Z756YVMIBB5XIXSXQKGQERLLLMYI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by patches.linaro.org (Postfix) with ESMTPS id 3E58522B05 for <linaro@patches.linaro.org>; Tue, 8 Sep 2015 19:18:16 +0000 (UTC) Received: by lbcao8 with SMTP id ao8sf39785596lbc.1 for <linaro@patches.linaro.org>; Tue, 08 Sep 2015 12:18:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=bkxvnfEWFwadMOtlEA1DhgnioKVkUTNaFxGwhcaXhsQ=; b=X11ar7OdNwlQVM1kN90Q3+0HdMIrBByCc3oumRWlmVue04iYfiLG0lSoPv3GAHsWyQ 0qyyM4LKav00dWqLKNRCtcBH2cLO113b+z0Ni5er0yjUar6GlpVORQj6O8goL3zbfLqx miiyLzKE1Ilx+xpg/Bw5jaW3tzGMEnHFxXJBwyPCtCseM6D46iHdLwXrpO9IYdvZ3o3e stXzGi2AneJvVg1S9X/4LpWrsZAqeZOKNLTwY57SBzjWbDOaOj8NwzlyOhQpL7XZO2yT SHLFtoXLdILfZDJjp+WIEgB/Cx4NcRNHch9u1HsYpB5EAM835d8O9v3NpkmjSIVAITon 2faQ== X-Gm-Message-State: ALoCoQnzVWloWEY7CpkLqaVAYMNjRtlefm8lI3XiFRzysQKFh8EZrFX22oA5Mj08N1h2XfojjddW X-Received: by 10.112.189.105 with SMTP id gh9mr7110611lbc.16.1441739894774; Tue, 08 Sep 2015 12:18:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.129 with SMTP id 1ls636489lau.58.gmail; Tue, 08 Sep 2015 12:18:14 -0700 (PDT) X-Received: by 10.153.4.40 with SMTP id cb8mr24634867lad.121.1441739894485; Tue, 08 Sep 2015 12:18:14 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id ea10si4237945lbc.34.2015.09.08.12.18.14 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Sep 2015 12:18:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lagj9 with SMTP id j9so77030665lag.2 for <patchwork-forward@linaro.org>; Tue, 08 Sep 2015 12:18:14 -0700 (PDT) X-Received: by 10.152.5.228 with SMTP id v4mr24617990lav.36.1441739894163; Tue, 08 Sep 2015 12:18:14 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1168293lbq; Tue, 8 Sep 2015 12:18:13 -0700 (PDT) X-Received: by 10.140.97.33 with SMTP id l30mr37434971qge.27.1441739893234; Tue, 08 Sep 2015 12:18:13 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 195si207629qhb.5.2015.09.08.12.18.12 for <patch@linaro.org> (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 08 Sep 2015 12:18:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:35840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1ZZMEA-0004Zk-UW for patch@linaro.org; Tue, 08 Sep 2015 12:58:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <pm215@archaic.org.uk>) id 1ZZM7X-0002VQ-0t for qemu-devel@nongnu.org; Tue, 08 Sep 2015 12:51:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <pm215@archaic.org.uk>) id 1ZZM7W-0007yx-6e for qemu-devel@nongnu.org; Tue, 08 Sep 2015 12:51:46 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:35050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <pm215@archaic.org.uk>) id 1ZZM7V-0007xj-W9 for qemu-devel@nongnu.org; Tue, 08 Sep 2015 12:51:46 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from <pm215@archaic.org.uk>) id 1ZZM7I-0001hq-CU for qemu-devel@nongnu.org; Tue, 08 Sep 2015 17:51:32 +0100 From: Peter Maydell <peter.maydell@linaro.org> To: qemu-devel@nongnu.org Date: Tue, 8 Sep 2015 17:51:17 +0100 Message-Id: <1441731092-6513-6-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1441731092-6513-1-git-send-email-peter.maydell@linaro.org> References: <1441731092-6513-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Subject: [Qemu-devel] [PULL 05/20] hw/intc/arm_gic: Actually set the active bits for active interrupts X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
diff --git a/hw/intc/arm_gic.c b/hw/intc/arm_gic.c index 9daa8cd..2df550c 100644 --- a/hw/intc/arm_gic.c +++ b/hw/intc/arm_gic.c @@ -262,6 +262,7 @@ static void gic_activate_irq(GICState *s, int cpu, int irq) } s->running_priority[cpu] = prio; + GIC_SET_ACTIVE(irq, 1 << cpu); } static int gic_get_prio_from_apr_bits(GICState *s, int cpu) @@ -536,6 +537,7 @@ void gic_complete_irq(GICState *s, int cpu, int irq, MemTxAttrs attrs) */ gic_drop_prio(s, cpu, group); + GIC_CLEAR_ACTIVE(irq, cm); gic_update(s); }
Although we were correctly handling interrupts becoming active and then inactive, we weren't actually exposing this to the guest by setting the 'active' flag for the interrupt, so reads of GICD_ICACTIVERn and GICD_ISACTIVERn would generally incorrectly return zeroes. Correct this oversight. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1438089748-5528-6-git-send-email-peter.maydell@linaro.org --- hw/intc/arm_gic.c | 2 ++ 1 file changed, 2 insertions(+)