Don't rely on reset values of MSTATUS_UA/SA
[riscv-tests.git] / benchmarks / common / syscalls.c
index 4c494f1b253807ee2fe36a0dcce9661d2aed3126..3c08bc2f9a59089b46db462e592faf33b404bedd 100644 (file)
@@ -60,7 +60,7 @@ static int handle_stats(int enable)
   return 0;
 }
 
-static void tohost_exit(int code)
+void tohost_exit(long code)
 {
   write_csr(tohost, (code << 1) | 1);
   while (1);