Merge pull request #11441 from JosJuice/jit64-lea-fixup
Jit64: Fix the offsetAddedToAddress correction
This commit is contained in:
commit
1023e5dd4f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue