From 35f331f82c34e3e989ba687bbb8c6fe654c5a201 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 30 Nov 2018 17:59:24 +0800 Subject: [PATCH] language: fix syscall arg handling --- artiq/language/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/language/core.py b/artiq/language/core.py index 40b932fb4..fe1a7e814 100644 --- a/artiq/language/core.py +++ b/artiq/language/core.py @@ -118,7 +118,7 @@ def syscall(arg=None, flags={}): def inner_decorator(function): function.artiq_embedded = \ _ARTIQEmbeddedInfo(core_name=None, portable=False, function=None, - syscall=function.__name__, forbidden=False, + syscall=arg, forbidden=False, flags=set(flags)) return function return inner_decorator