Fix build with riscv-gcc version 4.9
[riscv-tests.git] / benchmarks / common / syscalls.c
index e9f04e23e5f645449a53362236cd1f44c43f1717..7be2b53c871d9e32c6f6a9fb46739897ab34191e 100644 (file)
@@ -106,6 +106,7 @@ static long syscall(long num, long arg0, long arg1, long arg2)
 void exit(int code)
 {
   syscall(SYS_exit, code, 0, 0);
+  while (1);
 }
 
 void setStats(int enable)