]> git.proxmox.com Git - mirror_qemu.git/commit - linux-user/main.c
Userspace ARM BE8 support
authorPaul Brook <paul@codesourcery.com>
Fri, 30 Mar 2012 17:02:50 +0000 (18:02 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 6 Apr 2012 16:25:57 +0000 (19:25 +0300)
commitd8fd2954996255ba6ad610917e7849832d0120b7
tree8278d793ca64380475ce207fc0baf374ac5f522a
parentef8b0c0474aa7eab5172e866dc37428b41ff2934
Userspace ARM BE8 support

Add support for ARM BE8 userspace binaries.
i.e. big-endian data and little-endian code.
In principle LE8 mode is also possible, but AFAIK has never actually
been implemented/used.

System emulation doesn't have any useable big-endian board models,
but should in principle work once you fix that.
Dynamic endianness switching requires messing with data accesses,
preferably with TCG cooperation, and is orthogonal to BE8 support.

Signed-off-by: Paul Brook <paul@codesourcery.com>
[PMM: various changes, mostly as per my suggestions in code review:
 * rebase
 * use EF_ defines rather than hardcoded constants
 * make bswap_code a bool for future VMSTATE macro compatibility
 * update comment in cpu.h about TB flags bit field usage
 * factor out load-code-and-swap into arm_ld*_code functions and
   get_user_code* macros
 * fix stray trailing space at end of line
 * added braces in disas.c to satisfy checkpatch
]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
disas.c
linux-user/elfload.c
linux-user/main.c
linux-user/qemu.h
target-arm/cpu.h
target-arm/helper.c
target-arm/translate.c