From ef1f8787dc4e124186f27b988683b3864c751572 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 5 Sep 2014 21:51:58 +0800 Subject: [PATCH] devices/runtime: minor cleanup --- artiq/devices/runtime.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/artiq/devices/runtime.py b/artiq/devices/runtime.py index 5c345236b..7f4f46d0e 100644 --- a/artiq/devices/runtime.py +++ b/artiq/devices/runtime.py @@ -7,11 +7,11 @@ from artiq.compiler import ir_values lt.initialize_all() _syscalls = { - "rpc": "i+:i", - "gpio_set": "ii:n", - "rtio_set": "Iii:n", - "rtio_sync": "i:n", - "dds_program": "ii:n", + "rpc": "i+:i", + "gpio_set": "ii:n", + "rtio_set": "Iii:n", + "rtio_sync": "i:n", + "dds_program": "ii:n", } _chr_to_type = { @@ -76,4 +76,5 @@ class Environment(LinkInterface): def emit_object(self): tm = lt.TargetMachine.new(triple="or1k", cpu="generic") - return tm.emit_object(self.module) + obj = tm.emit_object(self.module) + return obj