Revision 273af660 target-mips/op_helper.c

b/target-mips/op_helper.c
22 22

  
23 23
#include "host-utils.h"
24 24

  
25
#define GETPC() (__builtin_return_address(0))
25
#ifdef __s390__
26
# define GETPC() ((void*)((unsigned long)__builtin_return_address(0) & 0x7fffffffUL))
27
#else
28
# define GETPC() (__builtin_return_address(0))
29
#endif
26 30

  
27 31
/*****************************************************************************/
28 32
/* Exceptions processing helpers */

Also available in: Unified diff