x64 backend: Pass guest return address as first argument to guest functions.

This commit is contained in:
Dr. Chat
2016-08-26 13:46:21 -05:00
parent 7683069f6c
commit 52c75c8dbc
2 changed files with 6 additions and 6 deletions

View File

@@ -422,7 +422,7 @@ HostToGuestThunk X64ThunkEmitter::EmitHostToGuestThunk() {
mov(rax, rcx);
mov(rsi, rdx); // context
mov(rdx, r8);
mov(rcx, r8); // return address
call(rax);
movaps(xmm6, qword[rsp + offsetof(StackLayout::Thunk, xmm[0])]);