diff options
author | Laurent Vivier <laurent@vivier.eu> | 2016-03-30 18:36:51 +0200 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2016-05-27 14:50:40 +0300 |
commit | 49e55cbacf4ad08f831b9f3f9cb0f3082883a3a1 (patch) | |
tree | fee064053f1ba14014304fc69e7c0be5e383cc16 /audio | |
parent | 5b1d59d0bb2a30d9fd8e8def88cba2ead7006ece (diff) |
linux-user,target-ppc: fix use of MSR_LE
setup_frame()/setup_rt_frame()/restore_user_regs() are using
MSR_LE as the similar kernel functions do: as a bitmask.
But in QEMU, MSR_LE is a bit position, so change this
accordingly.
The previous code was doing nothing as MSR_LE is 0,
and "env->msr &= ~MSR_LE" doesn't change the value of msr.
And yes, a user process can change its endianness,
see linux kernel commit:
fab5db9 [PATCH] powerpc: Implement support for setting little-endian mode via prctl
and prctl(2): PR_SET_ENDIAN, PR_GET_ENDIAN
Reviewed-by: Thomas Huth <huth@tuxfamily.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'audio')
0 files changed, 0 insertions, 0 deletions