diff options
author | Megan Wachs <megan@sifive.com> | 2017-04-18 15:09:55 -0700 |
---|---|---|
committer | Megan Wachs <megan@sifive.com> | 2017-04-18 15:09:55 -0700 |
commit | 2b116f9fb820641cb0a3a04e51164f2ef76478d6 (patch) | |
tree | 3022795d926a051c6ee386ad832fc45b458b1b0d /debug/programs | |
parent | b9cc9c27522499f91709d2ea6814692ed6131069 (diff) | |
download | riscv-tests-2b116f9fb820641cb0a3a04e51164f2ef76478d6.zip riscv-tests-2b116f9fb820641cb0a3a04e51164f2ef76478d6.tar.gz riscv-tests-2b116f9fb820641cb0a3a04e51164f2ef76478d6.tar.bz2 |
debug: Don't halt out of reset. It's unrealistic. Use a program which loops (actually it just gets an exception anyway).
Diffstat (limited to 'debug/programs')
-rwxr-xr-x | debug/programs/infinite_loop | bin | 0 -> 6344 bytes | |||
-rw-r--r-- | debug/programs/infinite_loop.c | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/debug/programs/infinite_loop b/debug/programs/infinite_loop Binary files differnew file mode 100755 index 0000000..628fd24 --- /dev/null +++ b/debug/programs/infinite_loop diff --git a/debug/programs/infinite_loop.c b/debug/programs/infinite_loop.c new file mode 100644 index 0000000..460f78a --- /dev/null +++ b/debug/programs/infinite_loop.c @@ -0,0 +1,14 @@ +#include <stdio.h> +#include <string.h> +#include <stdint.h> +#include <stdlib.h> + + +int main() +{ + + volatile int forever = 1; + while (forever); + + return 1; +} |