From: Luke Kenneth Casson Leighton Date: Sat, 9 Jul 2022 21:12:06 +0000 (+0100) Subject: pass GPR to SVSHAPEs in ISACaller X-Git-Tag: sv_maxu_works-initial~272 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e908afaf2cc006c9b616acab873f9a98b36edc7;p=openpower-isa.git pass GPR to SVSHAPEs in ISACaller --- 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