aboutsummaryrefslogtreecommitdiff
path: root/debug/testlib.py
diff options
context:
space:
mode:
authorMegan Wachs <megan@sifive.com>2018-05-14 16:04:10 -0700
committerMegan Wachs <megan@sifive.com>2018-05-14 16:04:10 -0700
commitbd8f01b7942177911208fff916492ad4539638fb (patch)
tree56c93a9f42a40671ed8373774c2e35f1770d8c9a /debug/testlib.py
parentfc661cde26cfc3e07e74310ff73e1affaf047fd9 (diff)
parente0ce10a4148d4087e46252584b85b2fff3a0dbd7 (diff)
downloadriscv-tests-bd8f01b7942177911208fff916492ad4539638fb.zip
riscv-tests-bd8f01b7942177911208fff916492ad4539638fb.tar.gz
riscv-tests-bd8f01b7942177911208fff916492ad4539638fb.tar.bz2
Merge remote-tracking branch 'origin/downloadtest' into debug-tests-more-single
Diffstat (limited to 'debug/testlib.py')
-rw-r--r--debug/testlib.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index 09baf1b..fb5bee3 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -861,10 +861,8 @@ class GdbTest(BaseTest):
del self.gdb
BaseTest.classTeardown(self)
-class GdbSingleHartTest(GdbTest):
- def classSetup(self):
- GdbTest.classSetup(self)
-
+ def parkOtherHarts(self):
+ """Park harts besides the currently selected one in loop_forever()."""
for hart in self.target.harts:
# Park all harts that we're not using in a safe place.
if hart != self.hart:
@@ -873,6 +871,11 @@ class GdbSingleHartTest(GdbTest):
self.gdb.select_hart(self.hart)
+class GdbSingleHartTest(GdbTest):
+ def classSetup(self):
+ GdbTest.classSetup(self)
+ self.parkOtherHarts()
+
class ExamineTarget(GdbTest):
def test(self):
for hart in self.target.harts: