arm: make the number of GIC interrupts configurable
commita32134aad891bd7b6cfa72b8f5ae2290bbe6fdda
authorMark Langsdorf <mark.langsdorf@calxeda.com>
Tue, 17 Jan 2012 10:54:07 +0000 (17 10:54 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 17 Jan 2012 10:54:07 +0000 (17 10:54 +0000)
treea6dce78dfb6c6e0d866df3b94ea0ac9f5f8e46eb
parentb09da0c335204322ba7a806f63180984df4db6f3
arm: make the number of GIC interrupts configurable

Increase the maximum number of GIC interrupts for a9mp and a11mp to 1020,
and create a configurable property for each defaulting to 96 and 64
(respectively) so that device modelers can set the value appropriately
for their SoC. Other ARM processors also set their maximum number of
used IRQs appropriately.

Set the maximum theoretical number of GIC interrupts to 1020 and
update the save/restore code to only use the appropriate number for
each SoC.

Signed-off-by: Mark Langsdorf <mark.langsdorf@calxeda.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
[Peter Maydell: fixed minor whitespace snafu]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/a9mpcore.c
hw/arm11mpcore.c
hw/arm_gic.c
hw/armv7m_nvic.c
hw/realview_gic.c