Peter Maydell ba94ffd7d1 hw/arm/mps2-tz: Condition IRQ splitting on number of CPUs, not board type
In the mps2-tz board code, we handle devices whose interrupt lines
must be wired to all CPUs by creating IRQ splitter devices for the
AN521, because it has 2 CPUs, but wiring the device IRQ directly to
the SSE/IoTKit input for the AN505, which has only 1 CPU.

We can avoid making an explicit check on the board type constant by
instead creating and using the IRQ splitters for any board with more
than 1 CPU.  This avoids having to add extra cases to the
conditionals every time we add new 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-9-peter.maydell@linaro.org
2021-03-06 13:30:39 +00:00
..
2020-08-28 15:14:40 +01:00
2020-12-10 12:15:07 -05:00
2020-12-15 12:51:55 -05:00
2020-12-10 12:15:04 -05:00
2021-02-11 11:50:14 +00:00
2021-03-05 15:17:34 +00:00
2020-12-08 13:48:57 -05:00
2020-10-27 11:10:44 +00:00
2021-02-05 08:52:59 -05:00