Peter Maydell 01b5ab8cc0 hw/intc/arm_gicv3: Move checking of redist-region-count to arm_gicv3_common_realize
The GICv3 devices have an array property redist-region-count.
Currently we check this for errors (bad values) in
gicv3_init_irqs_and_mmio(), just before we use it.  Move this error
checking to the arm_gicv3_common_realize() function, where we
sanity-check all of the other base-class properties. (This will
always be before gicv3_init_irqs_and_mmio() is called, because
that function is called in the subclass realize methods, after
they have called the parent-class realize.)

The motivation for this refactor is:
 * we would like to use the redist_region_count[] values in
   arm_gicv3_common_realize() in a subsequent patch, so we need
   to have already done the sanity-checking first
 * this removes the only use of the Error** argument to
   gicv3_init_irqs_and_mmio(), so we can remove some error-handling
   boilerplate

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
2021-11-15 16:12:59 +00:00
..
2021-10-21 08:03:58 -07:00
2021-10-12 08:20:08 +02:00
2021-11-09 10:11:27 +01:00
2021-10-12 08:20:08 +02:00
2021-11-03 13:07:30 -04:00
2021-02-21 18:41:04 +01:00
2021-11-09 10:11:27 +01:00
2021-03-05 15:17:34 +00:00
2021-09-29 10:45:19 +02:00
2021-10-21 11:42:47 +11:00
2020-09-09 09:27:09 -04:00
2021-11-02 14:14:55 -04:00
2020-09-09 09:27:09 -04:00
2021-09-21 07:56:49 +10:00
2019-08-16 13:31:52 +02:00
2020-09-09 09:27:09 -04:00
2019-08-16 13:31:52 +02:00
2020-09-09 09:27:09 -04:00
2020-09-09 09:27:09 -04:00
2020-09-18 14:12:32 -04:00
2019-06-12 13:20:21 +02:00
2020-09-09 09:27:09 -04:00
2020-09-09 09:27:09 -04:00