qemu-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]