Skip to content

Commit

Permalink
Merge pull request #11441 from JosJuice/jit64-lea-fixup
Browse files Browse the repository at this point in the history
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.
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/Jit64/Jit.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 1023e5d

Please sign in to comment.