aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-04-08 00:30:56 +0200
committerLaurent Vivier <laurent@vivier.eu>2021-05-03 10:07:41 +0200
commit9197b5d4b5f163455c891baec531ae73f5d3a73a (patch)
treede3bc45e5eb12a03aa6185786d0e66773b688269 /hw
parent56c9f00ef96844d3c77bc14e06ad894ed5d07441 (diff)
downloadqemu-9197b5d4b5f163455c891baec531ae73f5d3a73a.zip
qemu-9197b5d4b5f163455c891baec531ae73f5d3a73a.tar.gz
qemu-9197b5d4b5f163455c891baec531ae73f5d3a73a.tar.bz2
hw/rx/rx-gdbsim: Do not accept invalid memory size
We check the amount of RAM is enough, warn when it is not, but if so we neglect to bail out. Fix that by adding the missing exit() call. Fixes: bda19d7bb56 ("hw/rx: Add RX GDB simulator") Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Yoshinori Sato <ysato@users.sourceforge.jp> Message-Id: <20210407223056.1870497-1-f4bug@amsat.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw')
-rw-r--r--hw/rx/rx-gdbsim.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/rx/rx-gdbsim.c b/hw/rx/rx-gdbsim.c
index b52d76b..75d1fec 100644
--- a/hw/rx/rx-gdbsim.c
+++ b/hw/rx/rx-gdbsim.c
@@ -89,6 +89,7 @@ static void rx_gdbsim_init(MachineState *machine)
char *sz = size_to_str(mc->default_ram_size);
error_report("Invalid RAM size, should be more than %s", sz);
g_free(sz);
+ exit(1);
}
/* Allocate memory space */