diff options
Diffstat (limited to 'hw/arm/raspi4b.c')
-rw-r--r-- | hw/arm/raspi4b.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/arm/raspi4b.c b/hw/arm/raspi4b.c index cb1b1f2f14..85877880fc 100644 --- a/hw/arm/raspi4b.c +++ b/hw/arm/raspi4b.c @@ -112,7 +112,11 @@ static void raspi4b_machine_class_init(ObjectClass *oc, void *data) MachineClass *mc = MACHINE_CLASS(oc); RaspiBaseMachineClass *rmc = RASPI_BASE_MACHINE_CLASS(oc); +#if HOST_LONG_BITS == 32 + rmc->board_rev = 0xa03111; /* Revision 1.1, 1 Gb RAM */ +#else rmc->board_rev = 0xb03115; /* Revision 1.5, 2 Gb RAM */ +#endif raspi_machine_class_common_init(mc, rmc->board_rev); mc->init = raspi4b_machine_init; } |