qemu-patch-raspberry4/include
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
..
block include: Clean up includes 2016-02-23 12:43:05 +00:00
crypto include: Clean up includes 2016-02-23 12:43:05 +00:00
disas disas: Add print_insn to disassemble info 2015-07-09 15:20:40 +02:00
exec * Asynchronous dump-guest-memory from Peter 2016-02-25 15:30:57 +00:00
fpu include: Clean up includes 2016-02-23 12:43:05 +00:00
hw loader: Add data swap option to load-elf 2016-03-04 11:30:21 +00:00
io include: Clean up includes 2016-02-23 12:43:05 +00:00
libdecnumber include: Clean up includes 2016-02-23 12:43:05 +00:00
migration migration (ordinary): move bdrv_invalidate_cache_all of of coroutine context 2016-02-26 20:39:50 +05:30
monitor qom: add helpers for UserCreatable object types 2016-02-16 17:12:57 +01:00
net include: Clean up includes 2016-02-23 12:43:05 +00:00
qapi include: Clean up includes 2016-02-23 12:43:05 +00:00
qemu typedefs: Add CPUState 2016-03-01 13:27:09 +00:00
qom typedefs: Add CPUState 2016-03-01 13:27:09 +00:00
standard-headers linux-headers: update from kvm/next 2015-12-17 15:24:34 +01:00
sysemu rng: add request queue support to rng-random 2016-03-03 17:42:26 +05:30
ui console: add & use qemu_console_lookup_by_device_name 2016-03-01 07:51:34 +01:00
config.h include: Clean up includes 2016-02-23 12:43:05 +00:00
elf.h include: Clean up includes 2016-02-23 12:43:05 +00:00
glib-compat.h glib: add compatibility interface for g_hash_table_add() 2015-10-30 09:01:03 +01:00
qemu-common.h * Asynchronous dump-guest-memory from Peter 2016-02-25 15:30:57 +00:00
qemu-io.h qemu-io: Use BlockBackend 2015-02-16 15:07:19 +00:00
qjson.h QJSON: Add JSON writer 2015-02-05 17:16:14 +01:00
trace-tcg.h trace: [tcg] Generate TCG tracing routines 2014-08-12 14:26:12 +01:00
trace.h trace: [tcg] Include event definitions in "trace.h" 2014-08-12 14:26:12 +01:00