From 6c0e7e61a6baa9911fd48560180f54c6b493b772 Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Sun, 5 Apr 2020 15:25:51 -0400 Subject: [PATCH] Handle opcodes returning EXTS() results --- src/soc/decoder/isa/caller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2