arm: boot: Support big-endian elfs
commit9acc8fab754ac6e9b4b651aa44ebf9046ed1fe97
authorPeter Crosthwaite <crosthwaite.peter@gmail.com>
Mon, 18 Jan 2016 01:24:44 +0000 (17 17:24 -0800)
committerPeter Crosthwaite <crosthwaite.peter@gmail.com>
Sun, 28 Feb 2016 05:49:54 +0000 (27 21:49 -0800)
treed8bb478f4df1e718d3ae42b8f1bbe7cec6efdb1e
parent051187da95a38404e0cb1e76d8c41e21248e0cd2
arm: boot: Support big-endian elfs

Support ARM big-endian ELF files in system-mode emulation. When loading
an elf, determine the endianness mode expected by the elf, and set the
relevant CPU state accordingly.

With this, big-endian modes are now fully supported via system-mode LE,
so there is no need to restrict the elf loading to the TARGET
endianness so the ifdeffery on TARGET_WORDS_BIGENDIAN goes away.

---CHANGELOG---
Changed since v1:
Factor out elf manipulation logic into static helper (PMM review)
---END---

Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
hw/arm/boot.c
include/hw/arm/arm.h