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 16:08:52 +0000 (17:08 +0100)
src/openpower/decoder/isa/caller.py

index c260cb01af19bacd81a3a501af8db7a233928344..ecf86de79439a5a1146ca56b3cadcfb86e33fca3 100644 (file)
@@ -2122,7 +2122,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):