whoops zero-error on masked-out
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 11 Oct 2022 16:08:52 +0000 (17:08 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 11 Oct 2022 20:15:04 +0000 (21:15 +0100)
src/openpower/decoder/isa/caller.py

index 81da65aed0cb6a77931f56f37508fb232061355b..c9e90262c4dede4f7b07e8b39aac19ab0753786a 100644 (file)
@@ -2113,7 +2113,7 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop):
                 log("read reg %d/%d: 0x%x" % (base, offs, reg_val.value))
         else:
             log('zero input reg %s %s' % (name, str(regnum)), is_vec)
-            reg_val = 0
+            reg_val = SelectableInt(0, ew_src)
         return reg_val
 
     def remap_set_steps(self, remaps):