From: Luke Kenneth Casson Leighton Date: Thu, 16 Dec 2021 14:21:11 +0000 (+0000) Subject: start/stop wb_get in TestRunnerBase, otherwise it never ends X-Git-Tag: sv_maxu_works-initial~630 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9432fdea1dbd32e91a24f3652aa4765471fb2c7f;p=openpower-isa.git start/stop wb_get in TestRunnerBase, otherwise it never ends --- diff --git a/src/openpower/test/runner.py b/src/openpower/test/runner.py index fd654025..cc91b75d 100644 --- a/src/openpower/test/runner.py +++ b/src/openpower/test/runner.py @@ -32,6 +32,7 @@ from openpower.decoder.power_decoder2 import PowerDecode2 from soc.config.test.test_loadstore import TestMemPspec from nmutil.util import wrap from openpower.test.wb_get import wb_get +import openpower.test.wb_get as wbget from openpower.test.state import TestState, StateRunner, ExpectedState @@ -161,6 +162,10 @@ class TestRunnerBase(FHDLTestCase): # The methods contained in the respective Runner classes are # called using this list when possible + # allow wb_get to run + if self.rom is not None: + wbget.stop = False + state_list = [] if self.run_hdl: @@ -314,6 +319,10 @@ class TestRunnerBase(FHDLTestCase): for runner in state_list: yield from runner.cleanup() # TODO, some arguments? + # finally stop wb_get from going + if self.rom is not None: + wbget.stop = True + styles = { 'dec': {'base': 'dec'}, 'bin': {'base': 'bin'},