OSDN Git Service

target/arm/common-semi-target.h: Remove unnecessary boot.h include
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 25 Sep 2023 11:22:19 +0000 (12:22 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 19 Oct 2023 13:32:13 +0000 (14:32 +0100)
commit30722e0445908d3cf2d366d7bee69d0ae57401be
tree7a6ddeb3d4f9a3c6bf16f30806cb0c6f4cc2c0ce
parent4fd79a96ea9149a7ea8fba5c0ea74ff5f9f02139
target/arm/common-semi-target.h: Remove unnecessary boot.h include

The hw/arm/boot.h include in common-semi-target.h is not actually
needed, and it's a bit odd because it pulls a hw/arm header into a
target/arm file.

This include was originally needed because the semihosting code used
the arm_boot_info struct to get the base address of the RAM in system
emulation, to use in a (bad) heuristic for the return values for the
SYS_HEAPINFO semihosting call.  We've since overhauled how we
calculate the HEAPINFO values in system emulation, and the code no
longer uses the arm_boot_info struct.

Remove the now-redundant include line, and instead directly include
the cpu-qom.h header that we were previously getting via boot.h.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230925112219.3919261-1-peter.maydell@linaro.org
target/arm/common-semi-target.h