summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiek Linnenbank2020-03-05 17:09:19 +0100
committerPeter Maydell2020-03-05 17:09:19 +0100
commit3c2fb21ad2a02186bec986001ae1f1eefdfdb549 (patch)
tree40d04eed3cb94246fceb2fb20dfc9daa89d9ad2d
parenthw/arm/cubieboard: restrict allowed RAM size to 512MiB and 1GiB (diff)
downloadqemu-3c2fb21ad2a02186bec986001ae1f1eefdfdb549.tar.gz
qemu-3c2fb21ad2a02186bec986001ae1f1eefdfdb549.tar.xz
qemu-3c2fb21ad2a02186bec986001ae1f1eefdfdb549.zip
hw/arm/cubieboard: report error when using unsupported -bios argument
The Cubieboard machine does not support the -bios argument. Report an error when -bios is used and exit immediately. Signed-off-by: Niek Linnenbank <nieklinnenbank@gmail.com> Message-id: 20200227220149.6845-5-nieklinnenbank@gmail.com Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/arm/cubieboard.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/arm/cubieboard.c b/hw/arm/cubieboard.c
index 6c55d9056f..871b1beef4 100644
--- a/hw/arm/cubieboard.c
+++ b/hw/arm/cubieboard.c
@@ -19,6 +19,7 @@
#include "exec/address-spaces.h"
#include "qapi/error.h"
#include "cpu.h"
+#include "sysemu/sysemu.h"
#include "hw/sysbus.h"
#include "hw/boards.h"
#include "hw/arm/allwinner-a10.h"
@@ -33,6 +34,12 @@ static void cubieboard_init(MachineState *machine)
AwA10State *a10;
Error *err = NULL;
+ /* BIOS is not supported by this board */
+ if (bios_name) {
+ error_report("BIOS not supported for this machine");
+ exit(1);
+ }
+
/* This board has fixed size RAM (512MiB or 1GiB) */
if (machine->ram_size != 512 * MiB &&
machine->ram_size != 1 * GiB) {