qemu/hw/core
Peter Crosthwaite 7ef295ea5b loader: Add data swap option to load-elf
Some CPUs are of an opposite data-endianness to other components in the
system. Sometimes elfs have the data sections layed out with this CPU
data-endianness accounting for when loaded via the CPU, so byte swaps
(relative to other system components) will occur.

The leading example, is ARM's BE32 mode, which is is basically LE with
address manipulation on half-word and byte accesses to access the
hw/byte reversed address. This means that word data is invariant
across LE and BE32. This also means that instructions are still LE.
The expectation is that the elf will be loaded via the CPU in this
endianness scheme, which means the data in the elf is reversed at
compile time.

As QEMU loads via the system memory directly, rather than the CPU, we
need a mechanism to reverse elf data endianness to implement this
possibility.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2016-03-04 11:30:21 +00:00
..
Makefile.objs Create specific config option for "platform-bus" 2015-02-27 15:17:42 +01:00
empty_slot.c hw/core: Clean up includes 2016-01-29 15:07:25 +00:00
fw-path-provider.c hw/core: Clean up includes 2016-01-29 15:07:25 +00:00
hotplug.c hw/core: Clean up includes 2016-01-29 15:07:25 +00:00
irq.c hw/core: Clean up includes 2016-01-29 15:07:25 +00:00
loader.c loader: Add data swap option to load-elf 2016-03-04 11:30:21 +00:00
machine.c migration: allow machine to enforce configuration section migration 2016-02-28 16:19:02 +11:00
nmi.c hw/core: Clean up includes 2016-01-29 15:07:25 +00:00
null-machine.c hw/core: Clean up includes 2016-01-29 15:07:25 +00:00
platform-bus.c hw/core: Clean up includes 2016-01-29 15:07:25 +00:00
ptimer.c hw/core: Clean up includes 2016-01-29 15:07:25 +00:00
qdev-properties-system.c qom: Swap 'name' next to visitor in ObjectPropertyAccessor 2016-02-08 17:29:56 +01:00
qdev-properties.c qapi: Drop unused 'kind' for struct/enum visit 2016-02-08 17:29:57 +01:00
qdev.c qom: Swap 'name' next to visitor in ObjectPropertyAccessor 2016-02-08 17:29:56 +01:00
stream.c hw/core: Clean up includes 2016-01-29 15:07:25 +00:00
sysbus.c hw/core: Clean up includes 2016-01-29 15:07:25 +00:00
uboot_image.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00