Skip to content
Permalink
Browse files
Merge pull request #11441 from JosJuice/jit64-lea-fixup
Jit64: Fix the offsetAddedToAddress correction
  • Loading branch information
AdmiralCurtiss committed Mar 9, 2023
2 parents 9ed388f + 78c53bf commit 1023e5d
Showing 1 changed file with 1 addition and 1 deletion.
@@ -241,7 +241,7 @@ bool Jit64::BackPatch(SContext* ctx)
if (info.offsetAddedToAddress)
{
u64* ptr = ContextRN(ctx, info.op_arg.GetSimpleReg());
*ptr -= static_cast<u32>(info.offset);
*ptr = static_cast<u32>(*ptr - info.offset);
}

ctx->CTX_PC = reinterpret_cast<u64>(trampoline);

0 comments on commit 1023e5d

Please sign in to comment.