Re: [Qemu-devel] [V2 PATCH 10/12] linux-user: clock_nanosleep errno Handling on PPC

2014-08-25 Thread David Gibson
On Tue, Aug 12, 2014 at 01:53:41PM -0500, Tom Musta wrote: > The clock_nanosleep syscall is unusual in that it returns positive > numbers in error handling situations, versus returning -1 and setting > errno, or returning a negative errno value. On POWER, the kernel will > set the SO bit of CR0 to

[Qemu-devel] [V2 PATCH 10/12] linux-user: clock_nanosleep errno Handling on PPC

2014-08-12 Thread Tom Musta
The clock_nanosleep syscall is unusual in that it returns positive numbers in error handling situations, versus returning -1 and setting errno, or returning a negative errno value. On POWER, the kernel will set the SO bit of CR0 to indicate failure in a syscall. QEMU has generic handling to do th