Revision 9b7b85d2 target-alpha/op_helper.c
b/target-alpha/op_helper.c | ||
---|---|---|
1093 | 1093 |
/* Softmmu support */ |
1094 | 1094 |
#if !defined (CONFIG_USER_ONLY) |
1095 | 1095 |
|
1096 |
#ifdef __s390__ |
|
1097 |
# define GETPC() ((void*)((unsigned long)__builtin_return_address(0) & 0x7fffffffUL)) |
|
1098 |
#else |
|
1099 |
# define GETPC() (__builtin_return_address(0)) |
|
1100 |
#endif |
|
1101 |
|
|
1102 | 1096 |
/* XXX: the two following helpers are pure hacks. |
1103 | 1097 |
* Hopefully, we emulate the PALcode, then we should never see |
1104 | 1098 |
* HW_LD / HW_ST instructions. |
Also available in: Unified diff