This is v2 of the series to implement CPSR.E. I've now included support for strex emulation and SCTLR.EE. I've now also tested system emulation better using an Arch Linux image.
Using the Raspberry Pi optimized memcmp library and associated harness, QEMU 2.0 fails with "Illegal instruction", while these patches work. Paolo Paolo Bonzini (8): linux-user: arm: fix coding style for some linux-user signal functions linux-user: arm: set CPSR.E correctly for BE8 mode linux-user: arm: pass env to get_user_code_* linux-user: arm: handle CPSR.E correctly in strex emulation target-arm: implement SCTLR.EE target-arm: pass DisasContext to gen_aa32_ld*/st* target-arm: introduce be8 tbflag target-arm: implement setend linux-user/main.c | 71 +++++++++--- linux-user/signal.c | 122 +++++++++++--------- target-arm/cpu.h | 7 ++ target-arm/helper.c | 38 +++++- target-arm/helper.h | 1 + target-arm/op_helper.c | 5 + target-arm/translate.c | 307 +++++++++++++++++++++++++------------------------ target-arm/translate.h | 1 + 8 files changed, 322 insertions(+), 230 deletions(-) -- 1.9.3