hw/mips/boston: Fix load_elf() error detection
commitd77c462bf25001cc2ae03824a547ed761cd0c5bc
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Tue, 30 Nov 2021 21:17:29 +0000 (30 21:17 +0000)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 6 Dec 2021 10:57:36 +0000 (6 11:57 +0100)
treed79d347576c386b8967e12e9a4e29758e80576e8
parent24ade8c5decd092bde5e863bc542db45d924ae12
hw/mips/boston: Fix load_elf() error detection

load_elf() gives negative return in case of error, not zero.

Fixes: 10e3f30ff73 ("hw/mips/boston: Allow loading elf kernel and dtb")
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211130211729.7116-3-jiaxun.yang@flygoat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/mips/boston.c