From d6aaa4c9323604ec923c5d918d3ae392d3d399da Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 23 Jan 2019 15:42:03 -0200 Subject: [PATCH] Use the IsThumb method to check if its a thumb opcode --- ChocolArm64/Instructions/InstEmitAlu32.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChocolArm64/Instructions/InstEmitAlu32.cs b/ChocolArm64/Instructions/InstEmitAlu32.cs index 9aa912c4d3..2ebb807385 100644 --- a/ChocolArm64/Instructions/InstEmitAlu32.cs +++ b/ChocolArm64/Instructions/InstEmitAlu32.cs @@ -106,7 +106,7 @@ namespace ChocolArm64.Instructions private static void EmitAluWritePc(ILEmitterCtx context) { - if (context.CurrOp is OpCodeT16) + if (IsThumb(context.CurrOp)) { context.EmitLdc_I4(~1);