mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Merge pull request #11441 from JosJuice/jit64-lea-fixup
Jit64: Fix the offsetAddedToAddress correction
This commit is contained in:
@ -241,7 +241,7 @@ bool Jit64::BackPatch(SContext* ctx)
|
|||||||
if (info.offsetAddedToAddress)
|
if (info.offsetAddedToAddress)
|
||||||
{
|
{
|
||||||
u64* ptr = ContextRN(ctx, info.op_arg.GetSimpleReg());
|
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);
|
ctx->CTX_PC = reinterpret_cast<u64>(trampoline);
|
||||||
|
Reference in New Issue
Block a user