qemu/linux-user/tilegx
Peter Maydell a9175169cc linux-user: Support for restarting system calls for tilegx targets
Update the tilegx main loop and sigreturn code:
 * on TARGET_ERESTARTSYS, wind guest PC backwards to repeat syscall insn
 * return -TARGET_QEMU_ESIGRETURN from sigreturn rather than current R_RE
 * handle TARGET_QEMU_ESIGRETURN in the main loop as the indication
   that the main loop should not touch any guest CPU state

Note that this fixes a bug where a sigreturn which happened to have
an errno value in TILEGX_R_RE would incorrectly cause TILEGX_R_ERR
to get set.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2016-05-27 14:49:50 +03:00
..
syscall_nr.h linux-user: sync syscall numbers with kernel 2016-02-23 21:25:10 +02:00
target_cpu.h linux-user: tilegx: Add architecture related features 2015-09-15 07:17:51 -07:00
target_signal.h linux-user: Support for restarting system calls for tilegx targets 2016-05-27 14:49:50 +03:00
target_structs.h linux-user: tilegx: Add architecture related features 2015-09-15 07:17:51 -07:00
target_syscall.h build: [linux-user] Rename "syscall.h" to "target_syscall.h" in target directories 2016-02-23 21:25:09 +02:00
termbits.h linux-user: tilegx: Add architecture related features 2015-09-15 07:17:51 -07:00