On Mon, Jan 2, 2023 at 7:54 PM Daniel Henrique Barboza <dbarb...@ventanamicro.com> wrote: > > riscv_load_firmware(), riscv_load_initrd() and riscv_load_kernel() works > under the assumption that a 'filename' parameter is always not NULL. > > This is currently the case since all callers of these functions are > checking for NULL before calling them. Add an g_assert() to make sure > that a NULL value in these cases are to be considered a bug. > > Suggested-by: Alex Bennée <alex.ben...@linaro.org> > Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org> > Signed-off-by: Daniel Henrique Barboza <dbarb...@ventanamicro.com> > --- > hw/riscv/boot.c | 6 ++++++ > 1 file changed, 6 insertions(+) >
Reviewed-by: Bin Meng <bm...@tinylab.org>