Re: [Qemu-devel] [PATCH v1 12/17] target-arm: implement SCTLR.B, drop bswap_code

2016-01-19 Thread Peter Maydell
On 18 January 2016 at 07:12, Peter Crosthwaite wrote: > From: Paolo Bonzini > > 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

[Qemu-devel] [PATCH v1 12/17] target-arm: implement SCTLR.B, drop bswap_code

2016-01-17 Thread Peter Crosthwaite
From: Paolo Bonzini 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_