]> www.infradead.org Git - qemu-nvme.git/commit
hw/mips/bootloader: Allow bl_gen_jump_kernel to optionally set register
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 26 Oct 2022 19:18:19 +0000 (21:18 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 31 Oct 2022 10:32:45 +0000 (11:32 +0100)
commit36d7487b2aa033e9792fb310c39d106ffcadaa4f
tree645b52ba691ecff5ac56610af00d4fdf4cdbfa1b
parent3c43fc333be7747a29405bdf6b3bd9e82fa22164
hw/mips/bootloader: Allow bl_gen_jump_kernel to optionally set register

When one of the $sp/$a[0..3] register is already set, we might
want bl_gen_jump_kernel() to NOT set it again. Pass a boolean
argument for each register, to allow to optionally set them.

Tested-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221026191821.28167-2-philmd@linaro.org>
hw/mips/bootloader.c
hw/mips/boston.c
hw/mips/fuloong2e.c
include/hw/mips/bootloader.h