pass GPR to SVSHAPEs in ISACaller
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 9 Jul 2022 21:12:06 +0000 (22:12 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 9 Jul 2022 21:12:06 +0000 (22:12 +0100)
src/openpower/decoder/isa/caller.py

index 04e8cd5c156e34ba2389bff78e791d9272951e4a..7f57d29397e47e1cae713da2497e4197346afee3 100644 (file)
@@ -651,11 +651,11 @@ class ISACaller(ISACallerHelper, ISAFPHelpers):
         for i in range(4):
             sname = 'SVSHAPE%d' % i
             if sname not in self.spr:
-                self.spr[sname] = SVSHAPE(0)
+                val = 0
             else:
-                # make sure it's an SVSHAPE
                 val = self.spr[sname].value
-                self.spr[sname] = SVSHAPE(val)
+            # make sure it's an SVSHAPE
+            self.spr[sname] = SVSHAPE(val, self.gpr)
         self.last_op_svshape = False
 
         # "raw" memory