hw/arm/raspi: Set default RAM size to size encoded in board revision
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 8 Feb 2020 16:56:42 +0000 (17:56 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Feb 2020 14:30:51 +0000 (14:30 +0000)
commit975f3402fad40dc2e530e2a7a91ba7d0c2cd6a1d
tree0d4f05bd9d1d8bcf835d083b0adada02cc0d9327
parent13c4e2c087924d62da006858baee20b1ffb44462
hw/arm/raspi: Set default RAM size to size encoded in board revision

We added a helper to extract the RAM size from the board
revision, and made board_rev a field of RaspiMachineClass.
The class_init() can now use the helper to extract from the
board revision the board-specific amount of RAM.

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