From: Luke Kenneth Casson Leighton Date: Wed, 22 Sep 2021 18:33:40 +0000 (+0100) Subject: take a copy of SPRs so they are not modified by ISACaller X-Git-Tag: sv_maxu_works-initial~850 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6bca99fc25f44eea14ac737dcf9f168b06a48107;p=openpower-isa.git take a copy of SPRs so they are not modified by ISACaller --- diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index 8e7a0e06..f444b14f 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -620,6 +620,7 @@ class ISACaller: self.msr = SelectableInt(initial_msr, 64) # underlying reg self.pc = PC() # GPR FPR SPR registers + initial_sprs = copy(initial_sprs) # so as not to get modified self.gpr = GPR(decoder2, self, self.svstate, regfile) self.fpr = GPR(decoder2, self, self.svstate, fpregfile) self.spr = SPR(decoder2, initial_sprs) # initialise SPRs before MMU