aboutsummaryrefslogtreecommitdiff
path: root/hw/arm
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2019-02-05 16:52:42 +0000
committerPeter Maydell <peter.maydell@linaro.org>2019-02-05 16:52:42 +0000
commit2a5bdfc8d524535e78d81f5932fc62a6b34addc6 (patch)
tree5224d94019c15331fb419733ca22f85244be0d8d /hw/arm
parent4c0f268731c17e77403825b4ad550a16d2145d79 (diff)
downloadqemu-2a5bdfc8d524535e78d81f5932fc62a6b34addc6.zip
qemu-2a5bdfc8d524535e78d81f5932fc62a6b34addc6.tar.gz
qemu-2a5bdfc8d524535e78d81f5932fc62a6b34addc6.tar.bz2
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: 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-5-peter.maydell@linaro.org
Diffstat (limited to 'hw/arm')
-rw-r--r--hw/arm/boot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/arm/boot.c b/hw/arm/boot.c
index 2d4f710..328cc6b 100644
--- a/hw/arm/boot.c
+++ b/hw/arm/boot.c
@@ -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.
*/
}