diff options
author | Tim Newsome <tim@sifive.com> | 2017-09-01 12:31:15 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2017-09-01 12:31:15 -0700 |
commit | a7238f6f683705a92a3216562d91cfc8979c75ed (patch) | |
tree | b05fb4b85558c595517fb23e08193baa8623c415 /debug/testlib.py | |
parent | 5acbf6414ddaa6552ead5099868897a161bd945f (diff) | |
download | riscv-tests-a7238f6f683705a92a3216562d91cfc8979c75ed.zip riscv-tests-a7238f6f683705a92a3216562d91cfc8979c75ed.tar.gz riscv-tests-a7238f6f683705a92a3216562d91cfc8979c75ed.tar.bz2 |
Add some infrastructure for multicore tests.
When compiling, define the number of harts. This means we only need to
allocate a lot of stack if there are a lot of harts.
Diffstat (limited to 'debug/testlib.py')
-rw-r--r-- | debug/testlib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debug/testlib.py b/debug/testlib.py index 692afb6..8ac616e 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -102,7 +102,7 @@ class Spike(object): if with_jtag_gdb: cmd += ['--rbb-port', '0'] os.environ['REMOTE_BITBANG_HOST'] = 'localhost' - self.infinite_loop = harts[0].compile( + self.infinite_loop = target.compile(harts[0], "programs/checksum.c", "programs/tiny-malloc.c", "programs/infinite_loop.S", "-DDEFINE_MALLOC", "-DDEFINE_FREE") cmd.append(self.infinite_loop) @@ -567,7 +567,7 @@ class BaseTest(object): if compile_args not in BaseTest.compiled: # pylint: disable=star-args BaseTest.compiled[compile_args] = \ - self.hart.compile(*compile_args) + self.target.compile(self.hart, *compile_args) self.binary = BaseTest.compiled.get(compile_args) def classSetup(self): |