correct THREAD_STATE_THREAD register for arm64 on darwin

This commit is contained in:
Joshua Warner 2014-12-09 16:34:46 -07:00
parent 46e445017e
commit 8be7b6aeb3

View File

@ -35,7 +35,7 @@
#define THREAD_STATE_IP(state) ((state).FIELD(pc))
#define THREAD_STATE_STACK(state) ((state).FIELD(sp))
#if (defined __APPLE__) && (defined ARCH_arm64)
#define THREAD_STATE_THREAD(state) ((state).FIELD(x[8]))
#define THREAD_STATE_THREAD(state) ((state).FIELD(x[19]))
#else
#define THREAD_STATE_THREAD(state) ((state).FIELD(r[8]))
#endif