hw/intc/arm_gicv3: Sanity-check num-cpu property
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 8 Apr 2022 14:15:11 +0000 (15:15 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 22 Apr 2022 08:19:24 +0000 (09:19 +0100)
commit89ac9d0cba3c5d86c4a19ba1cd139ad25d041826
tree41aee15c6b034c649f7c9e8ebbdbad769f575674
parent2a1990369719e3e202188236483bab0208a87d24
hw/intc/arm_gicv3: Sanity-check num-cpu property

In the GICv3 code we implicitly rely on there being at least one CPU
and thus at least one redistributor and CPU interface.  Sanity-check
that the property the board code sets is not zero.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220408141550.1271295-3-peter.maydell@linaro.org
hw/intc/arm_gicv3_common.c