projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de7a900
)
arm_gic: Use GIC_NR_SGIS constant
author
Adam Lackorzynski
<adam@os.inf.tu-dresden.de>
Fri, 29 Aug 2014 14:00:29 +0000
(15:00 +0100)
committer
Peter Maydell
<peter.maydell@linaro.org>
Fri, 29 Aug 2014 14:00:29 +0000
(15:00 +0100)
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>
Message-id:
1408372255
-12358-5-git-send-email-adam@os.inf.tu-dresden.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/intc/arm_gic_common.c
patch
|
blob
|
history
diff --git
a/hw/intc/arm_gic_common.c
b/hw/intc/arm_gic_common.c
index 6d884eca3b50b295f9ab25745a9603c521cd6057..18b01ba0c7d0bff3a83984e377add0614a51919b 100644
(file)
--- 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);
}