diff options
author | Tim Newsome <tim@sifive.com> | 2022-04-07 17:25:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 17:25:54 -0700 |
commit | 2285a9083adf587507aa12802ce0ff763628ce9e (patch) | |
tree | 35934106d3e4ac27859690a560e0f521ed7606ab | |
parent | 3e2bf06b071a77ae62c09bf07c5229d1f9397d94 (diff) | |
download | riscv-tests-2285a9083adf587507aa12802ce0ff763628ce9e.zip riscv-tests-2285a9083adf587507aa12802ce0ff763628ce9e.tar.gz riscv-tests-2285a9083adf587507aa12802ce0ff763628ce9e.tar.bz2 |
Make download test data const. (#378)
That way it can go into flash.
-rwxr-xr-x | debug/gdbserver.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py index c6b7641..96ba326 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -1470,8 +1470,8 @@ class DownloadTest(GdbTest): self.download_c.write(b"#include <stdint.h>\n") self.download_c.write( b"unsigned int crc32a(uint8_t *message, unsigned int size);\n") - self.download_c.write(b"uint32_t length = %d;\n" % length) - self.download_c.write(b"uint8_t d[%d] = {\n" % length) + self.download_c.write(b"const uint32_t length = %d;\n" % length) + self.download_c.write(b"const uint8_t d[%d] = {\n" % length) self.crc = 0 assert length % 16 == 0 for i in range(length // 16): |