[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/5] raspi4b: Reduce RAM to 1Gb on 32-bit hosts
From: |
Peter Maydell |
Subject: |
[PULL 5/5] raspi4b: Reduce RAM to 1Gb on 32-bit hosts |
Date: |
Tue, 2 Apr 2024 11:29:51 +0100 |
From: Cédric Le Goater <clg@redhat.com>
Change the board revision number and RAM size to 1Gb on 32-bit hosts.
On these systems, RAM has a 2047 MB limit and this breaks the tests.
Fixes: 7785e8ea2204 ("hw/arm: Introduce Raspberry PI 4 machine")
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Message-id: 20240329150155.357043-1-clg@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/arm/raspi4b.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/arm/raspi4b.c b/hw/arm/raspi4b.c
index cb1b1f2f147..85877880fc7 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;
}
--
2.34.1
- [PULL 0/5] target-arm queue, Peter Maydell, 2024/04/02
- [PULL 3/5] hw/intc/arm_gicv3: ICC_HPPIR* return SPURIOUS if int group is disabled, Peter Maydell, 2024/04/02
- [PULL 5/5] raspi4b: Reduce RAM to 1Gb on 32-bit hosts,
Peter Maydell <=
- [PULL 2/5] docs: sbsa: update specs, add dt note, Peter Maydell, 2024/04/02
- [PULL 1/5] target/arm: take HSTR traps of cp15 accesses to EL2, not EL1, Peter Maydell, 2024/04/02
- [PULL 4/5] tests/qtest: Fix STM32L4x5 GPIO test on 32-bit, Peter Maydell, 2024/04/02
- Re: [PULL 0/5] target-arm queue, Peter Maydell, 2024/04/02