qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
To: qemu-devel@nongnu.org
Cc: christoffer.dall@linaro.org
Subject: [Qemu-devel] [PATCH v4 4/4] arm_gic: Use GIC_NR_SGIS constant
Date: Mon, 18 Aug 2014 16:30:55 +0200	[thread overview]
Message-ID: <1408372255-12358-5-git-send-email-adam@os.inf.tu-dresden.de> (raw)
In-Reply-To: <1408372255-12358-1-git-send-email-adam@os.inf.tu-dresden.de>

Use constant rather than a plain number.

Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
---
 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);
     }
-- 
2.1.0.rc1

  parent reply	other threads:[~2014-08-18 14:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-18 14:30 [Qemu-devel] [PATCH v4 0/4] Improve handling of GICD_ICFGR Adam Lackorzynski
2014-08-18 14:30 ` [Qemu-devel] [PATCH v4 1/4] arm_gic: Fix read " Adam Lackorzynski
2014-08-18 14:30 ` [Qemu-devel] [PATCH v4 2/4] arm_gic: GICD_ICFGR: Write model only for pre v1 GICs Adam Lackorzynski
2014-08-18 14:30 ` [Qemu-devel] [PATCH v4 3/4] arm_gic: Do not force PPIs to edge-triggered mode Adam Lackorzynski
2014-08-18 14:30 ` Adam Lackorzynski [this message]
2014-08-21 21:59 ` [Qemu-devel] [PATCH v4 0/4] Improve handling of GICD_ICFGR Adam Lackorzynski
2014-08-29 13:11 ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1408372255-12358-5-git-send-email-adam@os.inf.tu-dresden.de \
    --to=adam@os.inf.tu-dresden.de \
    --cc=christoffer.dall@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).