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:
		
							parent
							
								
									20ef667060
								
							
						
					
					
						commit
						4a6bf7adb9
					
				| @ -4006,6 +4006,9 @@ void cpu_loop(CPUXtensaState *env) | ||||
|                     break; | ||||
| 
 | ||||
|                 case -TARGET_ERESTARTSYS: | ||||
|                     env->pc -= 3; | ||||
|                     break; | ||||
| 
 | ||||
|                 case -TARGET_QEMU_ESIGRETURN: | ||||
|                     break; | ||||
|                 } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Max Filippov
						Max Filippov