diff options
author | Tim Newsome <tim@sifive.com> | 2022-12-14 16:52:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-14 16:52:28 -0800 |
commit | 898c20bf0b74b2899d7491823cbbac84b5508751 (patch) | |
tree | cea2fb6d7176f4cfe14fc1d8f3bf2823a481fe55 /debug/programs | |
parent | 45f4da6224ee254f235ff223f77e69dccf100c46 (diff) | |
download | riscv-tests-898c20bf0b74b2899d7491823cbbac84b5508751.zip riscv-tests-898c20bf0b74b2899d7491823cbbac84b5508751.tar.gz riscv-tests-898c20bf0b74b2899d7491823cbbac84b5508751.tar.bz2 |
debug: Remove unnecessary exit() functions. (#437)
Also make the semi-hosting test program return 10. That's more fragile
than returning 0, so makes for a better test.
Diffstat (limited to 'debug/programs')
-rw-r--r-- | debug/programs/semihosting.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/debug/programs/semihosting.c b/debug/programs/semihosting.c index ea3fdde..10f3c01 100644 --- a/debug/programs/semihosting.c +++ b/debug/programs/semihosting.c @@ -72,4 +72,6 @@ begin: fd = open(filename, O_WRONLY, 0644); write(fd, message, strlen(message)); write(1, message2, strlen(message2)); + + return 10; } |