From: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
To: qemu-devel@nongnu.org
Cc: christoffer.dall@linaro.org
Subject: [Qemu-devel] [PATCH 4/4] arm_gic: Use GIC_NR_SGIS constant
Date: Mon, 18 Aug 2014 15:08:00 +0200 [thread overview]
Message-ID: <1408367280-5093-5-git-send-email-adam@os.inf.tu-dresden.de> (raw)
In-Reply-To: <1408367280-5093-1-git-send-email-adam@os.inf.tu-dresden.de>
Use constant rather than a plain number.
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
next prev parent reply other threads:[~2014-08-18 13:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-18 13:07 [Qemu-devel] [PATCH 0/4] arm_gic: Improve handling of GICD_ICFGR Adam Lackorzynski
2014-08-18 13:07 ` [Qemu-devel] [PATCH 1/4] arm_gic: Fix read " Adam Lackorzynski
2014-08-18 13:07 ` [Qemu-devel] [PATCH 2/4] arm_gic: GICD_ICFGR: Write model only for pre v1 GICs Adam Lackorzynski
2014-08-18 13:07 ` [Qemu-devel] [PATCH 3/4] arm_gic: Do not force PPIs to edge-triggered mode Adam Lackorzynski
2014-08-18 13:08 ` Adam Lackorzynski [this message]
2014-08-18 14:14 ` [Qemu-devel] [PATCH 4/4] arm_gic: Use GIC_NR_SGIS constant Christoffer Dall
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=1408367280-5093-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).