qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-arm] [PATCH v2 18/18] arm: boot: Support big-endian elfs


From: Peter Maydell
Subject: Re: [Qemu-arm] [PATCH v2 18/18] arm: boot: Support big-endian elfs
Date: Thu, 3 Mar 2016 15:23:38 +0000

On 2 March 2016 at 06:56, Peter Crosthwaite <address@hidden> 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 <address@hidden>
> ---


> +                /* 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 <address@hidden>

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]