Re: [Qemu-devel] [PULL 07/13] linux-user: Fix sched_get/setaffinity conversion

2018-01-26 Thread Samuel Thibault
Peter Maydell, on ven. 26 janv. 2018 18:23:02 +, wrote: > On 23 January 2018 at 14:48, Laurent Vivier wrote: > > From: Samuel Thibault > > > > sched_get/setaffinity linux-user syscalls were missing conversions for > > little/big endian, which is hairy since longs may not be the same size > >

Re: [Qemu-devel] [PULL 07/13] linux-user: Fix sched_get/setaffinity conversion

2018-01-26 Thread Peter Maydell
On 23 January 2018 at 14:48, Laurent Vivier wrote: > From: Samuel Thibault > > sched_get/setaffinity linux-user syscalls were missing conversions for > little/big endian, which is hairy since longs may not be the same size > either. > > For simplicity, this just introduces loops to convert bit by

[Qemu-devel] [PULL 07/13] linux-user: Fix sched_get/setaffinity conversion

2018-01-23 Thread Laurent Vivier
From: Samuel Thibault sched_get/setaffinity linux-user syscalls were missing conversions for little/big endian, which is hairy since longs may not be the same size either. For simplicity, this just introduces loops to convert bit by bit like is done for select. Signed-off-by: Samuel Thibault R