diff options
author | Tim Newsome <tim@sifive.com> | 2018-11-30 13:08:14 -0800 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2018-11-30 13:08:14 -0800 |
commit | 9ab668e8a98428d023bcc2cbee576c5aa8b55842 (patch) | |
tree | 34e863ca65e75fd7cb65a8cfcefb995a9e376d39 /debug/gdbserver.py | |
parent | 7cc76ea83b4f827596158c8ba0763e93da65de8f (diff) | |
download | riscv-tests-9ab668e8a98428d023bcc2cbee576c5aa8b55842.zip riscv-tests-9ab668e8a98428d023bcc2cbee576c5aa8b55842.tar.gz riscv-tests-9ab668e8a98428d023bcc2cbee576c5aa8b55842.tar.bz2 |
Use more than 1KB for download test.
This is a pretty old bug. I limited the size to 256KB because against
spike my machine gets about 8KB/s, and I don't want to wait forever for
`make` to pass.
Diffstat (limited to 'debug/gdbserver.py')
-rwxr-xr-x | debug/gdbserver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py index a5f92b2..cba98e5 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -1041,7 +1041,7 @@ class WriteCsrs(RegsTest): class DownloadTest(GdbTest): def setup(self): # pylint: disable=attribute-defined-outside-init - length = min(2**10, self.hart.ram_size - 2048) + length = min(2**18, max(2**10, self.hart.ram_size - 2048)) self.download_c = tempfile.NamedTemporaryFile(prefix="download_", suffix=".c", delete=False) self.download_c.write("#include <stdint.h>\n") |