Explorar o código

Fix load/store exclusive/atomic pairwise instructions (#337)

gdkchan %!s(int64=7) %!d(string=hai) anos
pai
achega
267af1f0f7
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      ChocolArm64/Instruction/AInstEmitMemoryEx.cs

+ 2 - 2
ChocolArm64/Instruction/AInstEmitMemoryEx.cs

@@ -75,7 +75,7 @@ namespace ChocolArm64.Instruction
             {
                 Context.EmitLdarg(ATranslatedSub.MemoryArgIdx);
                 Context.EmitLdtmp();
-                Context.EmitLdc_I(8 << Op.Size);
+                Context.EmitLdc_I8(1 << Op.Size);
 
                 Context.Emit(OpCodes.Add);
 
@@ -145,7 +145,7 @@ namespace ChocolArm64.Instruction
             {
                 Context.EmitLdarg(ATranslatedSub.MemoryArgIdx);
                 Context.EmitLdint(Op.Rn);
-                Context.EmitLdc_I(8 << Op.Size);
+                Context.EmitLdc_I8(1 << Op.Size);
 
                 Context.Emit(OpCodes.Add);