mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 03:44:53 +00:00 
			
		
		
		
	 0763788868
			
		
	
	
		0763788868
		
	
	
	
	
		
			
			All instances of rewind_if_in_safe_syscall are the same, differing only in how the instruction point is fetched from the ucontext and the size of the registers. Use host_signal_pc and new host_signal_set_pc interfaces to fetch the pointer to the PC and adjust if needed. Delete all the old copies of rewind_if_in_safe_syscall. Acked-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20211113045603.60391-3-imp@bsdimp.com> [rth: include safe-syscall.h, simplify ifdefs] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
		
			
				
	
	
		
			19 lines
		
	
	
		
			422 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			422 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * hostdep.h : things which are dependent on the host architecture
 | |
|  *
 | |
|  *  * Written by Peter Maydell <peter.maydell@linaro.org>
 | |
|  *
 | |
|  * Copyright (C) 2016 Linaro Limited
 | |
|  *
 | |
|  * This work is licensed under the terms of the GNU GPL, version 2 or later.
 | |
|  * See the COPYING file in the top-level directory.
 | |
|  */
 | |
| 
 | |
| #ifndef ARM_HOSTDEP_H
 | |
| #define ARM_HOSTDEP_H
 | |
| 
 | |
| /* We have a safe-syscall.inc.S */
 | |
| #define HAVE_SAFE_SYSCALL
 | |
| 
 | |
| #endif
 |