Changeset 42601 in vbox for trunk/src/recompiler/dyngen-exec.h
- Timestamp:
- Aug 5, 2012 4:26:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/dyngen-exec.h
r37689 r42601 120 120 Subtracting one gets us the call instruction itself. */ 121 121 #if defined(__s390__) && !defined(__s390x__) 122 # define GETPC() ((void*)(((u nsigned long)__builtin_return_address(0) & 0x7fffffffUL) - 1))122 # define GETPC() ((void*)(((uintptr_t)__builtin_return_address(0) & 0x7fffffffUL) - 1)) 123 123 #elif defined(__arm__) 124 124 /* Thumb return addresses have the low bit set, so we need to subtract two. 125 125 This is still safe in ARM mode because instructions are 4 bytes. */ 126 # define GETPC() ((void *)((u nsigned long)__builtin_return_address(0) - 2))126 # define GETPC() ((void *)((uintptr_t)__builtin_return_address(0) - 2)) 127 127 #else 128 # define GETPC() ((void *)((u nsigned long)__builtin_return_address(0) - 1))128 # define GETPC() ((void *)((uintptr_t)__builtin_return_address(0) - 1)) 129 129 #endif 130 130
Note:
See TracChangeset
for help on using the changeset viewer.