Merge pull request #11441 from JosJuice/jit64-lea-fixup

Jit64: Fix the offsetAddedToAddress correction
This commit is contained in:
Admiral H. Curtiss 2023-03-09 16:13:25 +01:00 committed by GitHub
commit 1023e5dd4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);