diff options
| author | Peter Maydell | 2021-02-15 12:51:22 +0100 |
|---|---|---|
| committer | Peter Maydell | 2021-03-06 14:30:39 +0100 |
| commit | ba94ffd7d18b4724733819eaef3953617d4e81ab (patch) | |
| tree | d9cb086c0804cb484fc0abce29c86d6853950588 /include | |
| parent | hw/arm/mps2-tz: Make FPGAIO switch and LED config per-board (diff) | |
| download | qemu-ba94ffd7d18b4724733819eaef3953617d4e81ab.tar.gz qemu-ba94ffd7d18b4724733819eaef3953617d4e81ab.tar.xz qemu-ba94ffd7d18b4724733819eaef3953617d4e81ab.zip | |
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
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
