hw/rx/rx-gdbsim: Do not accept invalid memory size
commit9197b5d4b5f163455c891baec531ae73f5d3a73a
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 7 Apr 2021 22:30:56 +0000 (8 00:30 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 3 May 2021 08:07:41 +0000 (3 10:07 +0200)
treede3bc45e5eb12a03aa6185786d0e66773b688269
parent56c9f00ef96844d3c77bc14e06ad894ed5d07441
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>
hw/rx/rx-gdbsim.c