From patchwork Mon Aug 18 14:30:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Lackorzynski X-Patchwork-Id: 381023 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 260F1140097 for ; Tue, 19 Aug 2014 00:31:41 +1000 (EST) Received: from localhost ([::1]:44141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJNyF-0006Xw-8m for incoming@patchwork.ozlabs.org; Mon, 18 Aug 2014 10:31:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJNxg-0005dW-Iq for qemu-devel@nongnu.org; Mon, 18 Aug 2014 10:31:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJNxZ-0006uW-IF for qemu-devel@nongnu.org; Mon, 18 Aug 2014 10:31:04 -0400 Received: from os.inf.tu-dresden.de ([2002:8d4c:3001:48::99]:47211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJNxZ-0006tw-9a for qemu-devel@nongnu.org; Mon, 18 Aug 2014 10:30:57 -0400 Received: from erwin.inf.tu-dresden.de ([141.76.48.80] helo=x) by os.inf.tu-dresden.de with esmtp (Exim 4.84) id 1XJNxY-0003p9-Gr; Mon, 18 Aug 2014 16:30:56 +0200 From: Adam Lackorzynski To: qemu-devel@nongnu.org Date: Mon, 18 Aug 2014 16:30:55 +0200 Message-Id: <1408372255-12358-5-git-send-email-adam@os.inf.tu-dresden.de> X-Mailer: git-send-email 2.1.0.rc1 In-Reply-To: <1408372255-12358-1-git-send-email-adam@os.inf.tu-dresden.de> References: <1408372255-12358-1-git-send-email-adam@os.inf.tu-dresden.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2002:8d4c:3001:48::99 Cc: christoffer.dall@linaro.org Subject: [Qemu-devel] [PATCH v4 4/4] arm_gic: Use GIC_NR_SGIS constant 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 Use constant rather than a plain number. Acked-by: Christoffer Dall Signed-off-by: Adam Lackorzynski --- hw/intc/arm_gic_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/intc/arm_gic_common.c b/hw/intc/arm_gic_common.c index 6d884ec..18b01ba 100644 --- a/hw/intc/arm_gic_common.c +++ b/hw/intc/arm_gic_common.c @@ -128,7 +128,7 @@ static void arm_gic_common_reset(DeviceState *dev) s->running_priority[i] = 0x100; s->cpu_enabled[i] = false; } - for (i = 0; i < 16; i++) { + for (i = 0; i < GIC_NR_SGIS; i++) { GIC_SET_ENABLED(i, ALL_CPU_MASK); GIC_SET_EDGE_TRIGGER(i); }