]> git.proxmox.com Git - mirror_qemu.git/commit
hw/arm/boot: Factor out "direct kernel boot" code into its own function
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Feb 2019 16:52:41 +0000 (16:52 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Feb 2019 16:52:41 +0000 (16:52 +0000)
commitd33774ee446569162a8ab8b4d43606b049207b80
tree6808257c09daf118889f4427e372c6587adc2904
parentc3a42358e31a7bd45e6ac12013895d2897169ca5
hw/arm/boot: Factor out "direct kernel boot" code into its own function

Factor out the "direct kernel boot" code path from arm_load_kernel()
into its own function; this function is getting long enough that
the code flow is a bit confusing.

This commit only moves code around; no semantic changes.

We leave the "load the dtb" code in arm_load_kernel() -- this
is currently only used by the "direct kernel boot" path, but
this is a bug which we will fix shortly.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-id: 20190131112240.8395-3-peter.maydell@linaro.org
hw/arm/boot.c