Commit 4a6bf7ad authored by Max Filippov's avatar Max Filippov
Browse files

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



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

Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent 20ef6670
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4006,6 +4006,9 @@ void cpu_loop(CPUXtensaState *env)
                    break;

                case -TARGET_ERESTARTSYS:
                    env->pc -= 3;
                    break;

                case -TARGET_QEMU_ESIGRETURN:
                    break;
                }