Peter Maydell ff3dcf28c0 hw/arm/raspi: Diagnose requests for too much RAM
The Raspberry Pi boards have a physical memory map which does
not allow for more than 1GB of RAM. Currently if the user tries
to ask for more then we fail in a confusing way:

$ qemu-system-aarch64 --machine raspi3 -m 8G
Unexpected error in visit_type_uintN() at qapi/qapi-visit-core.c:164:
qemu-system-aarch64: Parameter 'vcram-base' expects uint32_t
Aborted (core dumped)

Catch this earlier and diagnose it with a more friendly message:
$ qemu-system-aarch64 --machine raspi3 -m 8G
qemu-system-aarch64: Requested ram size is too large for this machine: maximum is 1GB

Fixes: https://bugs.launchpad.net/qemu/+bug/1794187
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
2019-05-07 12:55:02 +01:00
..
2019-03-07 21:45:53 +01:00
2019-04-01 08:53:40 +02:00
2019-03-07 21:45:53 +01:00
2019-04-25 14:16:41 -03:00
2019-03-07 21:45:53 +01:00
2019-03-25 17:01:10 +00:00
2019-03-07 21:45:53 +01:00
2019-04-29 16:09:51 +01:00
2019-03-07 21:45:53 +01:00
2019-04-27 21:34:46 +01:00
2019-04-04 16:36:21 -07:00
2019-04-26 14:30:18 +01:00
2019-03-07 21:45:53 +01:00
2019-03-08 16:31:34 +00:00
2019-04-27 21:34:46 +01:00