qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 0/2] linux-user: fix clock_nanosleep()


From: Laurent Vivier
Subject: [PATCH v2 0/2] linux-user: fix clock_nanosleep()
Date: Wed, 22 Jul 2020 19:46:10 +0200

Update the "remain" time only if errno is EINTR and flags is TIMER_ABSTIME.

The v2 restores the get_errno() as our safe_clock_nanosleep() uses
errno to return the error value (and not ret).

As we use errno, we don't need the special case for ppc here, the CRF
bit is correctly managed in cpu_loop.c if ret is -errno.

Laurent Vivier (2):
  linux-user: fix clock_nanosleep()
  linux-user,ppc: fix clock_nanosleep() for linux-user-ppc

 linux-user/syscall.c | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

-- 
2.26.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]