hw/arm_gic.c: Fix improper DPRINTF output.
s->cpu_enabled is an array, so s->cpu_enabled ? "En" : "Dis" returns "En" always. We should use s->cpu_enabled[cpu] here. Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
884285bf64
commit
9ab1b6053f
@ -566,7 +566,7 @@ static void gic_cpu_write(gic_state *s, int cpu, int offset, uint32_t value)
|
|||||||
switch (offset) {
|
switch (offset) {
|
||||||
case 0x00: /* Control */
|
case 0x00: /* Control */
|
||||||
s->cpu_enabled[cpu] = (value & 1);
|
s->cpu_enabled[cpu] = (value & 1);
|
||||||
DPRINTF("CPU %d %sabled\n", cpu, s->cpu_enabled ? "En" : "Dis");
|
DPRINTF("CPU %d %sabled\n", cpu, s->cpu_enabled[cpu] ? "En" : "Dis");
|
||||||
break;
|
break;
|
||||||
case 0x04: /* Priority mask */
|
case 0x04: /* Priority mask */
|
||||||
s->priority_mask[cpu] = (value & 0xff);
|
s->priority_mask[cpu] = (value & 0xff);
|
||||||
|
Loading…
Reference in New Issue
Block a user