Rebased on Riku's linux-user-for-upstream branch. Fixed some nits that Peter pointed out. Fixed the ppc64 version to properly return -errno.
Retested all except s390x, which is, at the moment, inconvenient. r~ Richard Henderson (5): linux-user: Provide safe_syscall for i386 linux-user: Provide safe_syscall for arm linux-user: Provide safe_syscall for aarch64 linux-user: Provide safe_syscall for s390x linux-user: Provide safe_syscall for ppc64 linux-user/host/aarch64/hostdep.h | 23 ++++++ linux-user/host/aarch64/safe-syscall.inc.S | 75 +++++++++++++++++++ linux-user/host/arm/hostdep.h | 23 ++++++ linux-user/host/arm/safe-syscall.inc.S | 90 +++++++++++++++++++++++ linux-user/host/i386/hostdep.h | 23 ++++++ linux-user/host/i386/safe-syscall.inc.S | 112 +++++++++++++++++++++++++++++ linux-user/host/ppc64/hostdep.h | 23 ++++++ linux-user/host/ppc64/safe-syscall.inc.S | 92 ++++++++++++++++++++++++ linux-user/host/s390x/hostdep.h | 23 ++++++ linux-user/host/s390x/safe-syscall.inc.S | 90 +++++++++++++++++++++++ 10 files changed, 574 insertions(+) create mode 100644 linux-user/host/aarch64/safe-syscall.inc.S create mode 100644 linux-user/host/arm/safe-syscall.inc.S create mode 100644 linux-user/host/i386/safe-syscall.inc.S create mode 100644 linux-user/host/ppc64/safe-syscall.inc.S create mode 100644 linux-user/host/s390x/safe-syscall.inc.S -- 2.5.5