Re: [Qemu-devel] [PATCH] linux-user,target-ppc: fix use of MSR_LE

2016-03-31 Thread Thomas Huth
On 30.03.2016 18:36, Laurent Vivier wrote: > 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, > a

[Qemu-devel] [PATCH] linux-user,target-ppc: fix use of MSR_LE

2016-03-30 Thread Laurent Vivier
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.