Diff for /qemu/dyngen-exec.h between versions 1.1.1.11 and 1.1.1.12

version 1.1.1.11, 2018/04/24 18:34:07 version 1.1.1.12, 2018/04/24 19:17:29
Line 19 Line 19
 #if !defined(__DYNGEN_EXEC_H__)  #if !defined(__DYNGEN_EXEC_H__)
 #define __DYNGEN_EXEC_H__  #define __DYNGEN_EXEC_H__
   
 #include "qemu-common.h"  #if defined(CONFIG_TCG_INTERPRETER)
   /* The TCG interpreter does not need a special register AREG0,
 #ifdef __OpenBSD__   * but it is possible to use one by defining AREG0.
 #include <sys/types.h>   * On i386, register edi seems to work. */
 #endif  /* Run without special register AREG0 or use a value defined elsewhere. */
   #elif defined(__i386__)
 /* XXX: This may be wrong for 64-bit ILP32 hosts.  */  
 typedef void * host_reg_t;  
   
 #if defined(__i386__)  
 #define AREG0 "ebp"  #define AREG0 "ebp"
 #elif defined(__x86_64__)  #elif defined(__x86_64__)
 #define AREG0 "r14"  #define AREG0 "r14"
Line 64  typedef void * host_reg_t; Line 60  typedef void * host_reg_t;
 #error unsupported CPU  #error unsupported CPU
 #endif  #endif
   
 #define xglue(x, y) x ## y  #if defined(AREG0)
 #define glue(x, y) xglue(x, y)  register CPUState *env asm(AREG0);
 #define stringify(s)    tostring(s)  
 #define tostring(s)     #s  
   
 /* The return address may point to the start of the next instruction.  
    Subtracting one gets us the call instruction itself.  */  
 #if defined(__s390__) && !defined(__s390x__)  
 # define GETPC() ((void*)(((unsigned long)__builtin_return_address(0) & 0x7fffffffUL) - 1))  
 #elif defined(__arm__)  
 /* Thumb return addresses have the low bit set, so we need to subtract two.  
    This is still safe in ARM mode because instructions are 4 bytes.  */  
 # define GETPC() ((void *)((unsigned long)__builtin_return_address(0) - 2))  
 #else  #else
 # define GETPC() ((void *)((unsigned long)__builtin_return_address(0) - 1))  /* TODO: Try env = cpu_single_env. */
   extern CPUState *env;
 #endif  #endif
   
 #endif /* !defined(__DYNGEN_EXEC_H__) */  #endif /* !defined(__DYNGEN_EXEC_H__) */

Removed from v.1.1.1.11  
changed lines
  Added in v.1.1.1.12


unix.superglobalmegacorp.com