[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/8] target/xtensa: linux-user: rewind pc for restart
From: |
Max Filippov |
Subject: |
[Qemu-devel] [PULL 2/8] target/xtensa: linux-user: rewind pc for restarted syscall |
Date: |
Mon, 2 Apr 2018 10:13:48 -0700 |
In case of syscall restart request set pc back to the syscall
instruction.
Reviewed-by: Laurent Vivier <address@hidden>
Signed-off-by: Max Filippov <address@hidden>
---
linux-user/main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/linux-user/main.c b/linux-user/main.c
index ba09b7d0c873..8907a8411411 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -4006,6 +4006,9 @@ void cpu_loop(CPUXtensaState *env)
break;
case -TARGET_ERESTARTSYS:
+ env->pc -= 3;
+ break;
+
case -TARGET_QEMU_ESIGRETURN:
break;
}
--
2.11.0
- [Qemu-devel] [PULL 0/8] xtensa-specific and generic fixes for linux-user, Max Filippov, 2018/04/02
- [Qemu-devel] [PULL 1/8] target/xtensa: fix flush_window_regs, Max Filippov, 2018/04/02
- [Qemu-devel] [PULL 2/8] target/xtensa: linux-user: rewind pc for restarted syscall,
Max Filippov <=
- [Qemu-devel] [PULL 3/8] linux-user: call cpu_copy under clone_lock, Max Filippov, 2018/04/02
- [Qemu-devel] [PULL 4/8] linux-user: fix mq_getsetattr implementation, Max Filippov, 2018/04/02
- [Qemu-devel] [PULL 5/8] target/xtensa: linux-user: fix sysv IPC structures, Max Filippov, 2018/04/02
- [Qemu-devel] [PULL 6/8] linux-user: fix error propagation in clock_gettime, Max Filippov, 2018/04/02
- [Qemu-devel] [PULL 7/8] linux-user: implement clock_settime, Max Filippov, 2018/04/02
- [Qemu-devel] [PULL 8/8] target/xtensa: linux-user: fix fadvise64 call, Max Filippov, 2018/04/02
- Re: [Qemu-devel] [PULL 0/8] xtensa-specific and generic fixes for linux-user, Peter Maydell, 2018/04/03