From 4e908afaf2cc006c9b616acab873f9a98b36edc7 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 9 Jul 2022 22:12:06 +0100 Subject: [PATCH] pass GPR to SVSHAPEs in ISACaller --- src/openpower/decoder/isa/caller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index 04e8cd5c..7f57d293 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -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 -- 2.30.2