target/arm: Remove useless TARGET_BIG_ENDIAN check in armv7m_load_kernel()
commitf92bd43480bf2da36354e148d139ef2aac12d3f2
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Aug 2022 16:04:16 +0000 (23 17:04 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 14 Sep 2022 10:19:40 +0000 (14 11:19 +0100)
tree98f9651ab9ac3d25ba1e98ea4d42e0f404052f42
parente31e0f56616ae88cda22da8d5a257c2fcee4de2a
target/arm: Remove useless TARGET_BIG_ENDIAN check in armv7m_load_kernel()

Arm system emulation targets always have TARGET_BIG_ENDIAN clear, so
there is no need to have handling in armv7m_load_kernel() for the
case when it is defined.  Remove the unnecessary code.

Side notes:
 * our M-profile implementation is always little-endian (that is, it
   makes the IMPDEF choice that the read-only AIRCR.ENDIANNESS is 0)
 * if we did want to handle big-endian ELF files here we should do it
   the way that hw/arm/boot.c:arm_load_elf() does, by looking at the
   ELF header to see what endianness the file itself is

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220823160417.3858216-2-peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/arm/armv7m.c