mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
hw/arm/highbank: Specify explicitly the GIC has 128 external IRQs
When not specified, Cortex-A9MP configures its GIC with 64 external IRQs, (see commita32134aad8
"arm:make the number of GIC interrupts configurable"), and Cortex-15MP to 128 (see commit528622421e
"hw/cpu/a15mpcore: Correct default value for num-irq"). The Caldexa Highbank board however expects a fixed set of 128 interrupts (see the fixed IRQ length when this board was added in commit2488514cef
("arm: SoC model for Calxeda Highbank"). Add the GIC_EXT_IRQS definition (with a comment) to make that explicit. Except explicitly setting a property value to its same implicit value, there is no logical change intended. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20250212154333.28644-8-philmd@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
e2e5266c45
commit
2bf8bdcbb4
1 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,7 @@
|
|||
#define MVBAR_ADDR 0x200
|
||||
#define BOARD_SETUP_ADDR (MVBAR_ADDR + 8 * sizeof(uint32_t))
|
||||
|
||||
#define NIRQ_GIC 160
|
||||
#define GIC_EXT_IRQS 128 /* EnergyCore ECX-1000 & ECX-2000 */
|
||||
|
||||
/* Board init. */
|
||||
|
||||
|
@ -180,7 +180,7 @@ static void calxeda_init(MachineState *machine, enum cxmachines machine_id)
|
|||
{
|
||||
DeviceState *dev = NULL;
|
||||
SysBusDevice *busdev;
|
||||
qemu_irq pic[128];
|
||||
qemu_irq pic[GIC_EXT_IRQS];
|
||||
int n;
|
||||
unsigned int smp_cpus = machine->smp.cpus;
|
||||
qemu_irq cpu_irq[4];
|
||||
|
@ -260,7 +260,7 @@ static void calxeda_init(MachineState *machine, enum cxmachines machine_id)
|
|||
break;
|
||||
}
|
||||
qdev_prop_set_uint32(dev, "num-cpu", smp_cpus);
|
||||
qdev_prop_set_uint32(dev, "num-irq", NIRQ_GIC);
|
||||
qdev_prop_set_uint32(dev, "num-irq", GIC_EXT_IRQS + GIC_INTERNAL);
|
||||
busdev = SYS_BUS_DEVICE(dev);
|
||||
sysbus_realize_and_unref(busdev, &error_fatal);
|
||||
sysbus_mmio_map(busdev, 0, MPCORE_PERIPHBASE);
|
||||
|
@ -271,7 +271,7 @@ static void calxeda_init(MachineState *machine, enum cxmachines machine_id)
|
|||
sysbus_connect_irq(busdev, n + 3 * smp_cpus, cpu_vfiq[n]);
|
||||
}
|
||||
|
||||
for (n = 0; n < 128; n++) {
|
||||
for (n = 0; n < GIC_EXT_IRQS; n++) {
|
||||
pic[n] = qdev_get_gpio_in(dev, n);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue