Re: [Qemu-devel] [PATCH v2 07/18] linux-user: arm: handle CPSR.E correctly in strex emulation

2016-03-03 Thread Peter Maydell
On 2 March 2016 at 06:56, Peter Crosthwaite wrote: > From: Paolo Bonzini > @@ -610,11 +642,11 @@ static int do_strex(CPUARMState *env) > segv = get_user_u8(val, addr); > break; > case 1: > -segv = get_user_u16(val, addr); > +segv = get_user_data_u16(val, add

[Qemu-devel] [PATCH v2 07/18] linux-user: arm: handle CPSR.E correctly in strex emulation

2016-03-01 Thread Peter Crosthwaite
From: Paolo Bonzini Now that CPSR.E is set correctly, prepare for when setend will be able to change it; bswap data in and out of strex manually by comparing SCTLR.B, CPSR.E and TARGET_WORDS_BIGENDIAN (we do not have the luxury of using TCGMemOps). Signed-off-by: Paolo Bonzini [ PC changes: *