Commit 2a5bdfc8 authored by Peter Maydell's avatar Peter Maydell
Browse files

hw/arm/boot: Clarify why arm_setup_firmware_boot() doesn't set env->boot_info



The code path for booting firmware doesn't set env->boot_info. At
first sight this looks odd, so add a comment saying why we don't.

Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Reviewed-by: default avatarIgor Mammedov <imammedo@redhat.com>
Message-id: 20190131112240.8395-5-peter.maydell@linaro.org
parent 4c0f2687
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1182,7 +1182,8 @@ static void arm_setup_firmware_boot(ARMCPU *cpu, struct arm_boot_info *info)

    /*
     * We will start from address 0 (typically a boot ROM image) in the
     * same way as hardware.
     * same way as hardware. Leave env->boot_info NULL, so that
     * do_cpu_reset() knows it does not need to alter the PC on reset.
     */
}