diff options
| author | Tim Newsome <tim@sifive.com> | 2016-09-05 11:23:33 -0700 |
|---|---|---|
| committer | Tim Newsome <tim@sifive.com> | 2016-09-05 11:23:33 -0700 |
| commit | 73be8bab0e036969e6779155a5f86256eebbc331 (patch) | |
| tree | 84ee97058b9582f77c88261409b74c7a7ec4d4e1 /tests/debug.c | |
| parent | 3032e25ae63ff4174e311e87f737cd750828bd18 (diff) | |
| download | riscv-isa-sim-remove-tests.zip riscv-isa-sim-remove-tests.tar.gz riscv-isa-sim-remove-tests.tar.bz2 | |
Remove generic debug tests.remove-tests
They live in riscv-tests/debug now, since they also test gdb, and can be
used to test other targets besides spike.
Diffstat (limited to 'tests/debug.c')
| -rw-r--r-- | tests/debug.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/debug.c b/tests/debug.c deleted file mode 100644 index 2cad88f..0000000 --- a/tests/debug.c +++ /dev/null @@ -1,27 +0,0 @@ -#include <stdio.h> - -char c = 'x'; - -void print_row(int length) -{ - for (int x=0; x<length; x++) { - printf("%c", c); - } - printf("\n"); -} - -int main() -{ - volatile int i = 42; - const char *text = "constant\n"; - int threshold = 7; - - // Wait for the debugger to get us out of this loop. - while (i) - ; - - printf("%s", text); - for (int y=0; y < 10; y++) { - print_row(y); - } -} |
