Implement bug 278, comment 1 - better version of EXTS
[soc.git] / src / soc / decoder / isa / caller.py
index 874a06973f3666d63917ce2adcf4a11f4efc4690..5b1c4c997148f30f25cf7af60151cf870c04bcd7 100644 (file)
@@ -110,7 +110,9 @@ class ISACaller:
         for name, output in zip(output_names, results):
             regnum = yield getattr(self.decoder, name)
             print('writing reg %d' % regnum)
-            self.gpr[regnum] = output.narrow(64)
+            if isinstance(output, int):
+                output = SelectableInt(output, 64)
+            self.gpr[regnum] = output
 
 
 def inject():