From: Luke Kenneth Casson Leighton Date: Tue, 14 Sep 2021 17:39:38 +0000 (+0100) Subject: change state_add to name, kls X-Git-Tag: DRAFT_SVP64_0_1~20 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d838656d2f4baca653c158198a0d28e6e97a9905;p=openpower-isa.git change state_add to name, kls --- diff --git a/src/openpower/test/state.py b/src/openpower/test/state.py index 80fc4749..701c69f7 100644 --- a/src/openpower/test/state.py +++ b/src/openpower/test/state.py @@ -115,8 +115,9 @@ global state_factory state_factory = {'sim': SimState} -def state_add(sdic): - state_factory.update(sdic) +def state_add(name, kls): + log("state_add", name, kls) + state_factory[name] = kls def TestState(state_type, to_test, dut, code):