From 6bca99fc25f44eea14ac737dcf9f168b06a48107 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 22 Sep 2021 19:33:40 +0100 Subject: [PATCH] take a copy of SPRs so they are not modified by ISACaller --- src/openpower/decoder/isa/caller.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2