diff options
author | Igor Mammedov | 2020-02-19 17:09:28 +0100 |
---|---|---|
committer | Patchew Importer | 2020-02-19 17:49:59 +0100 |
commit | 7c3dd4c6a50ea31bedc2efb7497271273bf42cb9 (patch) | |
tree | f2348f5ef336d1d093dc1ec1083cb851bd76abc6 /hw/mips/mips_jazz.c | |
parent | mips/mips_jazz: use memdev for RAM (diff) | |
download | qemu-7c3dd4c6a50ea31bedc2efb7497271273bf42cb9.tar.gz qemu-7c3dd4c6a50ea31bedc2efb7497271273bf42cb9.tar.xz qemu-7c3dd4c6a50ea31bedc2efb7497271273bf42cb9.zip |
mips/mips_jazz: add max ram size check
error out in case user asked for more RAM than board
supports.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Message-Id: <20200219160953.13771-55-imammedo@redhat.com>
Diffstat (limited to 'hw/mips/mips_jazz.c')
-rw-r--r-- | hw/mips/mips_jazz.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/mips/mips_jazz.c b/hw/mips/mips_jazz.c index 85d49cf155..32fbd10b4e 100644 --- a/hw/mips/mips_jazz.c +++ b/hw/mips/mips_jazz.c @@ -164,6 +164,11 @@ static void mips_jazz_init(MachineState *machine, SysBusESPState *sysbus_esp; ESPState *esp; + if (machine->ram_size > 256 * MiB) { + error_report("RAM size more than 256Mb is not supported"); + exit(EXIT_FAILURE); + } + /* init CPUs */ cpu = MIPS_CPU(cpu_create(machine->cpu_type)); env = &cpu->env; |