From 7c6eee22a88856288c5e29f0aa245709387be7b8 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 47c1746f3..3c1c9bc2e 100644 --- a/artiq/language/core.py +++ b/artiq/language/core.py @@ -117,7 +117,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