target/xtensa: linux-user: rewind pc for restarted syscall

In case of syscall restart request set pc back to the syscall
instruction.

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
Max Filippov 2018-03-28 01:08:36 -07:00
parent 20ef667060
commit 4a6bf7adb9
1 changed files with 3 additions and 0 deletions

View File

@ -4006,6 +4006,9 @@ void cpu_loop(CPUXtensaState *env)
break;
case -TARGET_ERESTARTSYS:
env->pc -= 3;
break;
case -TARGET_QEMU_ESIGRETURN:
break;
}