Peter Maydell f81804a52b hw/core/or-irq: Support more than 16 inputs to an OR gate
For the IoTKit MPC support, we need to wire together the
interrupt outputs of 17 MPCs; this exceeds the current
value of MAX_OR_LINES. Increase MAX_OR_LINES to 32 (which
should be enough for anyone).

The tricky part is retaining the migration compatibility for
existing OR gates; we add a subsection which is only used
for larger OR gates, and define it such that we can freely
increase MAX_OR_LINES in future (or even move to a dynamically
allocated levels[] array without an upper size limit) without
breaking compatibility.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20180604152941.20374-10-peter.maydell@linaro.org
2018-06-15 15:23:34 +01:00
..
2018-06-04 10:15:16 +01:00
2018-06-12 15:34:34 +01:00
2018-06-13 13:47:35 +02:00
2018-06-01 18:24:16 +01:00
2018-06-13 13:47:35 +02:00
2018-06-01 18:24:16 +01:00
2018-06-04 10:15:16 +01:00
2018-06-13 13:47:35 +02:00
2018-06-04 10:15:16 +01:00
2018-06-01 18:24:16 +01:00
2018-06-01 15:14:31 +02:00