mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-06 07:21:05 +02:00
Precise tracking of current PC address
This commit is contained in:
@@ -413,6 +413,10 @@ namespace ARMeilleure.Translation
|
|||||||
|
|
||||||
context.CurrOp = opCode;
|
context.CurrOp = opCode;
|
||||||
|
|
||||||
|
Operand nativeContext = context.LoadArgument(OperandType.I64, 0);
|
||||||
|
Operand dispAddressAddr = context.Add(nativeContext, Const((ulong)NativeContext.GetDispatchAddressOffset()));
|
||||||
|
context.Store(dispAddressAddr, Const(opCode.Address));
|
||||||
|
|
||||||
bool isLastOp = opcIndex == block.OpCodes.Count - 1;
|
bool isLastOp = opcIndex == block.OpCodes.Count - 1;
|
||||||
|
|
||||||
if (isLastOp)
|
if (isLastOp)
|
||||||
|
|||||||
Reference in New Issue
Block a user