Merge remote-tracking branch 'origin/priv-1.10' into HEAD
authorMegan Wachs <megan@sifive.com>
Mon, 15 May 2017 02:41:07 +0000 (19:41 -0700)
committerMegan Wachs <megan@sifive.com>
Mon, 15 May 2017 02:41:07 +0000 (19:41 -0700)
benchmarks/common/syscalls.c
benchmarks/common/test.ld
env

index 4940aa24b9f31b02d0f81cea38ccd6be948525d1..0a7d6b728f633304d9b3aa9e01ecb2b8ddf6f57c 100644 (file)
@@ -5,6 +5,7 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <limits.h>
+#include <sys/signal.h>
 #include "util.h"
 
 #define SYS_write 64
@@ -68,6 +69,11 @@ void exit(int code)
   tohost_exit(code);
 }
 
+void abort()
+{
+  exit(128 + SIGABRT);
+}
+
 void printstr(const char* s)
 {
   syscall(SYS_write, 1, (uintptr_t)s, strlen(s));
index a08d71d3c4d7089552f1e3d2e66c366335ecab2a..ada0862d7464dc01b828aa5f8849b3166dbc58c8 100644 (file)
@@ -12,6 +12,7 @@
    specifically one of the entires in bfd/cpu-mips.c */
 
 OUTPUT_ARCH( "riscv" )
+ENTRY(_start)
 
 /*----------------------------------------------------------------------*/
 /* Sections                                                             */
diff --git a/env b/env
index 3f1d04a2e8f849c306bdca7c7115462c3a60a6e0..70f5e06eef154a1eaeb65d3f034c1857771100ff 160000 (submodule)
--- a/env
+++ b/env
@@ -1 +1 @@
-Subproject commit 3f1d04a2e8f849c306bdca7c7115462c3a60a6e0
+Subproject commit 70f5e06eef154a1eaeb65d3f034c1857771100ff