linux-user/ppc: Implement swapcontext syscall
commitfa97e38eed3bbdbc322d94092ca49450e724fff1
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 18 Jul 2018 20:06:48 +0000 (18 13:06 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 22 Jul 2018 19:33:45 +0000 (22 21:33 +0200)
tree3bce29b6e2fdb36090534f8cd9f1848fef58f4db
parent33143c446eb88de28ea3088b279feda8f693e398
linux-user/ppc: Implement swapcontext syscall

This allows the tests generated by debian-powerpc-user-cross
to function properly, especially tests/test-coroutine.

Technically this syscall is available to both ppc32 and ppc64,
but only ppc32 glibc actually uses it.  Thus the ppc64 path is
untested.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180718200648.22529-1-richard.henderson@linaro.org>
linux-user/ppc/signal.c
linux-user/qemu.h
linux-user/syscall.c