target-arm: implement SCTLR.B, drop bswap_code
commitfdb05d19499d207cf5555becaa57c78e97d7a55e
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 21 Jun 2014 12:58:14 +0000 (21 14:58 +0200)
committerStefan Weil <sw@weilnetz.de>
Fri, 31 Oct 2014 20:22:27 +0000 (31 21:22 +0100)
treef84a2b4fd660071fef06fbb04b3c43d0577a8f60
parentac160e013c49f0f7d14f249d01d100e6f1a65b98
target-arm: implement SCTLR.B, drop bswap_code

bswap_code is a CPU property of sorts ("is the iside endianness the
opposite way round to TARGET_WORDS_BIGENDIAN?") but it is not the
actual CPU state involved here which is SCTLR.B (set for BE32
binaries, clear for BE8).

Replace bswap_code with SCTLR.B, and pass that to arm_ld*_code.
The next patches will make data fetches honor both SCTLR.B and
CPSR.E appropriately.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
linux-user/main.c
target-arm/arm_ldst.h
target-arm/cpu.h
target-arm/helper.c
target-arm/translate-a64.c
target-arm/translate.c
target-arm/translate.h