Precise tracking of current PC address

This commit is contained in:
gdkchan
2026-09-13 21:39:52 -05:00
committed by KeatonTheBot
parent d18abffa65
commit 4315f4795e
@@ -413,6 +413,10 @@ namespace ARMeilleure.Translation
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;
if (isLastOp)