From 4032bdefea429832d2d50bb1eb181f560750f78b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 19 Sep 2022 08:12:41 +0100 Subject: [PATCH] add svstate param to constructor of StepLoop, 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 3fe5e284..cdf7f416 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -527,8 +527,8 @@ class StepLoop: """deals with svstate looping. """ - def __init__(self): - pass + def __init__(self, svstate): + self.svstate = svstate def advance_svstate_steps(self, end_src=False, end_dst=False): """ advance sub/steps. note that Pack/Unpack *INVERTS* the order. @@ -742,7 +742,7 @@ class ISACaller(ISACallerHelper, ISAFPHelpers, StepLoop): if isinstance(initial_svstate, int): initial_svstate = SVP64State(initial_svstate) # SVSTATE, MSR and PC - self.svstate = initial_svstate + StepLoop.__init__(self, initial_svstate) self.msr = SelectableInt(initial_msr, 64) # underlying reg self.pc = PC() # GPR FPR SPR registers -- 2.30.2