Do not give false expectations, as this machine only
uses 64MB of RAM.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
hw/sh4/r2d.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c
index 010be6d5394..56da48f64cb 100644
--- a/hw/sh4/r2d.c
+++ b/hw/sh4/r2d.c
@@ -251,6 +251,14 @@ static void r2d_init(MachineState *machine)
USBBus *usb_bus;
r2d_fpga_t *fpga;
+ switch (machine->ram_size) {
+ case 64 * MiB:
+ break;
+ default:
+ error_report("This machine can only use 64M of memory");
+ exit(EXIT_FAILURE);
+ }
+
cpu = SUPERH_CPU(cpu_create(machine->cpu_type));
env = &cpu->env;
--
2.51.0