mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 20:19:44 +00:00
hw/arm: versal: Use nr_apu_cpus in favor of hard coding 2
Use nr_apu_cpus in favor of hard coding 2. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Luc Michel <luc@lmichel.fr> Message-id: 20210210142048.3125878-2-edgar.iglesias@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
e6a41a045c
commit
4565d82616
@ -67,10 +67,10 @@ static void versal_create_apu_gic(Versal *s, qemu_irq *pic)
|
||||
gicbusdev = SYS_BUS_DEVICE(&s->fpd.apu.gic);
|
||||
gicdev = DEVICE(&s->fpd.apu.gic);
|
||||
qdev_prop_set_uint32(gicdev, "revision", 3);
|
||||
qdev_prop_set_uint32(gicdev, "num-cpu", 2);
|
||||
qdev_prop_set_uint32(gicdev, "num-cpu", nr_apu_cpus);
|
||||
qdev_prop_set_uint32(gicdev, "num-irq", XLNX_VERSAL_NR_IRQS + 32);
|
||||
qdev_prop_set_uint32(gicdev, "len-redist-region-count", 1);
|
||||
qdev_prop_set_uint32(gicdev, "redist-region-count[0]", 2);
|
||||
qdev_prop_set_uint32(gicdev, "redist-region-count[0]", nr_apu_cpus);
|
||||
qdev_prop_set_bit(gicdev, "has-security-extensions", true);
|
||||
|
||||
sysbus_realize(SYS_BUS_DEVICE(&s->fpd.apu.gic), &error_fatal);
|
||||
|
Loading…
Reference in New Issue
Block a user