Revision 273af660 target-m68k/op_helper.c

b/target-m68k/op_helper.c
31 31
extern int semihosting_enabled;
32 32

  
33 33
#define MMUSUFFIX _mmu
34
#define GETPC() (__builtin_return_address(0))
34
#ifdef __s390__
35
# define GETPC() ((void*)((unsigned long)__builtin_return_address(0) & 0x7fffffffUL))
36
#else
37
# define GETPC() (__builtin_return_address(0))
38
#endif
35 39

  
36 40
#define SHIFT 0
37 41
#include "softmmu_template.h"

Also available in: Unified diff