Possibly fix for OSX

This commit is contained in:
Nekotekina 2015-02-28 22:37:31 +03:00
parent eaf3787ae6
commit 619b8e473f

View File

@ -465,7 +465,7 @@ typedef ucontext_t x64_context;
#define X64REG(context, reg) (darwin_x64reg(context, reg)) #define X64REG(context, reg) (darwin_x64reg(context, reg))
#define XMMREG(context, reg) (reinterpret_cast<u128*>(&(context)->uc_mcontext->__fs.__fpu_xmm0[reg])) #define XMMREG(context, reg) (reinterpret_cast<u128*>(&(context)->uc_mcontext->__fs.__fpu_xmm0[reg]))
#define EFLAGS(context) ((context)->uc_mcontext->__ss.__eflags) #define EFLAGS(context) ((context)->uc_mcontext->__ss.__rflags)
uint64_t* darwin_x64reg(x64_context *context, int reg) uint64_t* darwin_x64reg(x64_context *context, int reg)
{ {