On 2 March 2016 at 06:56, Peter Crosthwaite <crosthwaitepe...@gmail.com> wrote:
> 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.
>
> Signed-off-by: Peter Crosthwaite <crosthwaite.pe...@gmail.com>
> ---


> +                /* In BE32, the CPU has a different view of the per-byte
> +                 * address map than the rest of the system. BE32 elfs are
> +                 * organised such that they can be programmed through the
> +                 * CPUs per-word byte-reversed view of the world. QEMU

"CPU's".

> +                 * however loads elfs independently of the CPU. So tell
> +                 * the elf loader to byte reverse the data for us.
> +                 */

Otherwise
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org>

thanks
-- PMM

Reply via email to