x64 backend: Pass guest return address as first argument to guest functions.
This commit is contained in:
@@ -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])]);
|
||||
|
||||
Reference in New Issue
Block a user