whoops forgot to put the copy of the wb_get memory back in
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 24 Dec 2021 13:40:12 +0000 (13:40 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 24 Dec 2021 13:40:12 +0000 (13:40 +0000)
src/openpower/test/runner.py

index e205c7b0629badd0c44cd6a75cb069ac7ef6e728..e0e8c9a3dc5258538c92315366af871cbdbe363a 100644 (file)
@@ -207,9 +207,11 @@ class TestRunnerBase(FHDLTestCase):
 
                     # HACK: if there is test memory and wb_get is in use,
                     # overwrite (reset) the wb_get memory dictionary with
-                    # the test's memory contents
+                    # the test's memory contents (oh, and put the wb_get
+                    # memory back in as well)
                     if self.rom is not None and test.mem is not None:
                         self.default_mem.clear()
+                        self.default_mem.update(deepcopy(self.rom))
                         self.default_mem.update(deepcopy(test.mem))
 
                     for runner in state_list: