From 711be75c354b0e7749e55ef3a7cac841399cbfe5 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 5 Jul 2014 19:13:05 +0200 Subject: [PATCH] compiler/ir: pass arguments to syscall --- artiq/compiler/ir.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/compiler/ir.py b/artiq/compiler/ir.py index 5b1015bfb..d22447196 100644 --- a/artiq/compiler/ir.py +++ b/artiq/compiler/ir.py @@ -113,7 +113,8 @@ def _emit_statements(env, builder, ns, stmts): elif isinstance(stmt, ast.Expr) and isinstance(stmt.value, ast.Call): call = stmt.value if call.func.id == "syscall": - env.emit_syscall(builder, call.args[0].s, []) + env.emit_syscall(builder, call.args[0].s, + [_emit_expr(builder, ns, expr) for expr in call.args[1:]]) else: raise NotImplementedError else: