hw/arm/raspi: Make board_rev a field of RaspiMachineClass
commitc318c66c67ba143cd32d709cb2eb20eaf8cb9f8f
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 8 Feb 2020 16:56:40 +0000 (8 17:56 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Feb 2020 14:30:51 +0000 (13 14:30 +0000)
treeb798a09e6032b8e51229cf3f386132d10a216ec2
parentcb57df6f7f5481904db987a2afa8aabdc1e1d545
hw/arm/raspi: Make board_rev a field of RaspiMachineClass

We want to have a common class_init(). The only value that
matters (and changes) is the board revision.
Pass the board_rev as class_data to class_init().

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20200208165645.15657-9-f4bug@amsat.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/raspi.c