[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
- Re: [Qemu-arm] [PATCH v2 07/18] linux-user: arm: handle CPSR.E correctly in strex emulation, (continued)
- [Qemu-arm] [PATCH v2 10/18] target-arm: introduce disas flag for endianness, Peter Crosthwaite, 2016/03/02
- [Qemu-arm] [PATCH v2 11/18] target-arm: a64: Add endianness support, Peter Crosthwaite, 2016/03/02
- [Qemu-arm] [PATCH v2 09/18] target-arm: pass DisasContext to gen_aa32_ld*/st*, Peter Crosthwaite, 2016/03/02
- [Qemu-arm] [PATCH v2 12/18] target-arm: introduce tbflag for endianness, Peter Crosthwaite, 2016/03/02
- [Qemu-arm] [PATCH v2 13/18] target-arm: implement setend, Peter Crosthwaite, 2016/03/02
- [Qemu-arm] [PATCH v2 15/18] loader: add API to load elf header, Peter Crosthwaite, 2016/03/02
- [Qemu-arm] [PATCH v2 16/18] loader: load_elf(): Add doc comment, Peter Crosthwaite, 2016/03/02
- [Qemu-arm] [PATCH v2 18/18] arm: boot: Support big-endian elfs, Peter Crosthwaite, 2016/03/02
- Re: [Qemu-arm] [PATCH v2 18/18] arm: boot: Support big-endian elfs,
Peter Maydell <=
- [Qemu-arm] [PATCH v2 17/18] loader: Add data swap option to load-elf, Peter Crosthwaite, 2016/03/02
- Re: [Qemu-arm] [PATCH v2 00/18] ARM big-endian and setend support, Peter Maydell, 2016/03/03
- Message not available