hw/arm/mps2-tz: Make number of IRQs board-specific
commit11e1d41265c3915c5fa4c4bc2457bcad2fe1da74
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 15 Feb 2021 11:51:23 +0000 (15 11:51 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Sat, 6 Mar 2021 13:30:39 +0000 (6 13:30 +0000)
tree3ee6ed241242f867e768c83efbb9e7c7d02d8a44
parentba94ffd7d18b4724733819eaef3953617d4e81ab
hw/arm/mps2-tz: Make number of IRQs board-specific

The AN524 has more interrupt lines than the AN505 and AN521; make
numirq board-specific rather than a compile-time constant.

Since the difference is small (92 on the current boards and 95 on the
new one) we don't dynamically allocate the cpu_irq_splitter[] array
but leave it as a fixed length array whose size is the maximum needed
for any of the boards.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210215115138.20465-10-peter.maydell@linaro.org
hw/arm/mps2-tz.c