aboutsummaryrefslogtreecommitdiff
path: root/debug/programs
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2022-12-14 16:52:28 -0800
committerGitHub <noreply@github.com>2022-12-14 16:52:28 -0800
commit898c20bf0b74b2899d7491823cbbac84b5508751 (patch)
treecea2fb6d7176f4cfe14fc1d8f3bf2823a481fe55 /debug/programs
parent45f4da6224ee254f235ff223f77e69dccf100c46 (diff)
downloadriscv-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.c2
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;
}