aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Instructions/InstEmitException32.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ARMeilleure/Instructions/InstEmitException32.cs')
-rw-r--r--ARMeilleure/Instructions/InstEmitException32.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/ARMeilleure/Instructions/InstEmitException32.cs b/ARMeilleure/Instructions/InstEmitException32.cs
index 8ffad1d1..fd64e7bf 100644
--- a/ARMeilleure/Instructions/InstEmitException32.cs
+++ b/ARMeilleure/Instructions/InstEmitException32.cs
@@ -10,21 +10,21 @@ namespace ARMeilleure.Instructions
{
public static void Svc(ArmEmitterContext context)
{
- EmitExceptionCall(context, NativeInterface.SupervisorCall);
+ EmitExceptionCall(context, nameof(NativeInterface.SupervisorCall));
}
public static void Trap(ArmEmitterContext context)
{
- EmitExceptionCall(context, NativeInterface.Break);
+ EmitExceptionCall(context, nameof(NativeInterface.Break));
}
- private static void EmitExceptionCall(ArmEmitterContext context, _Void_U64_S32 func)
+ private static void EmitExceptionCall(ArmEmitterContext context, string name)
{
OpCode32Exception op = (OpCode32Exception)context.CurrOp;
context.StoreToContext();
- context.Call(func, Const(op.Address), Const(op.Id));
+ context.Call(typeof(NativeInterface).GetMethod(name), Const(op.Address), Const(op.Id));
context.LoadFromContext();