From: Michael Nolan Date: Sun, 5 Apr 2020 19:25:51 +0000 (-0400) Subject: Handle opcodes returning EXTS() results X-Git-Tag: div_pipeline~1465 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c0e7e61a6baa9911fd48560180f54c6b493b772;p=soc.git Handle opcodes returning EXTS() results --- diff --git a/src/soc/decoder/isa/caller.py b/src/soc/decoder/isa/caller.py index 835c9b48..c60bdfc8 100644 --- a/src/soc/decoder/isa/caller.py +++ b/src/soc/decoder/isa/caller.py @@ -152,8 +152,8 @@ class ISACaller: for name, output in zip(output_names, results): regnum = yield getattr(self.decoder, name) print('writing reg %d' % regnum) - if isinstance(output, int): - output = SelectableInt(output, 64) + if output.bits > 64: + output = SelectableInt(output.value, 64) self.gpr[regnum] = output