hw/arm/bcm2836: Split out common realize() code
commitf5600924ad42fba8eb5e30778baff6b4a5644070
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 24 Oct 2020 17:01:23 +0000 (24 19:01 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Oct 2020 11:10:44 +0000 (27 11:10 +0000)
tree5c16de79db95d63a4782fdfa5df530993554f0fd
parent96c741d7ce94741234e4ccad0d08c0055dd48c7e
hw/arm/bcm2836: Split out common realize() code

The realize() function is clearly composed of two parts,
each described by a comment:

  void realize()
  {
     /* common peripherals from bcm2835 */
     ...
     /* bcm2836 interrupt controller (and mailboxes, etc.) */
     ...
   }

Split the two part, so we can reuse the common part with other
SoCs from this family.

Reviewed-by: Luc Michel <luc.michel@greensocs.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20201024170127.3592182-6-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/bcm2836.c