Revert "Return the address of the current instruction in EmitSynchronization"
This reverts commit 1331589a22ccf21c02951db96d0335a10738ae4c.
This commit is contained in:
parent
5d42332d75
commit
edbd4bfc29
1 changed files with 2 additions and 3 deletions
|
@ -491,7 +491,7 @@ namespace ARMeilleure.Translation
|
||||||
context.MarkLabel(lblEnd);
|
context.MarkLabel(lblEnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static void EmitSynchronization(ArmEmitterContext context)
|
internal static void EmitSynchronization(EmitterContext context)
|
||||||
{
|
{
|
||||||
long countOffs = NativeContext.GetCounterOffset();
|
long countOffs = NativeContext.GetCounterOffset();
|
||||||
|
|
||||||
|
@ -505,8 +505,7 @@ namespace ARMeilleure.Translation
|
||||||
Operand running = context.Call(typeof(NativeInterface).GetMethod(nameof(NativeInterface.CheckSynchronization)));
|
Operand running = context.Call(typeof(NativeInterface).GetMethod(nameof(NativeInterface.CheckSynchronization)));
|
||||||
context.BranchIfTrue(lblExit, running, BasicBlockFrequency.Cold);
|
context.BranchIfTrue(lblExit, running, BasicBlockFrequency.Cold);
|
||||||
|
|
||||||
OpCode op = context.CurrOp;
|
context.Return(Const(0L));
|
||||||
context.Return(op != null ? Const(op.Address) : Const(0L));
|
|
||||||
|
|
||||||
context.MarkLabel(lblNonZero);
|
context.MarkLabel(lblNonZero);
|
||||||
count = context.Subtract(count, Const(1));
|
count = context.Subtract(count, Const(1));
|
||||||
|
|
Loading…
Reference in a new issue