From: klehman Date: Fri, 24 Sep 2021 17:20:32 +0000 (-0400) Subject: add SimRunner constructor X-Git-Tag: sv_maxu_works-initial~832 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c978c4fc4dde09eb29c2a1620954384a847634ef;p=openpower-isa.git add SimRunner constructor --- diff --git a/src/openpower/test/state.py b/src/openpower/test/state.py index 89d56d70..b065018c 100644 --- a/src/openpower/test/state.py +++ b/src/openpower/test/state.py @@ -40,6 +40,12 @@ class StateRunner: def cleanup(self): pass +class SimRunner(StateRunner): + def __init__(self, dut, **kwargs): + self.pspec = kwargs['pspec'] + self.m = kwargs['m'] + + class State: def get_state(self): yield from self.get_intregs()