From b3999a33b7bf9c115b095b56976394b19f825ff3 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 26 Apr 2017 12:25:01 -0700 Subject: Add abort() for benefit of benchmark code --- benchmarks/common/syscalls.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/benchmarks/common/syscalls.c b/benchmarks/common/syscalls.c index 4940aa2..0a7d6b7 100644 --- a/benchmarks/common/syscalls.c +++ b/benchmarks/common/syscalls.c @@ -5,6 +5,7 @@ #include #include #include +#include #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)); -- cgit v1.1 From af832bf8fd7ed43631e1d1ceb66b10027419a4e6 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Mon, 1 May 2017 14:42:42 -0700 Subject: Set ELF entry point correctly --- benchmarks/common/test.ld | 1 + env | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmarks/common/test.ld b/benchmarks/common/test.ld index a08d71d..ada0862 100644 --- a/benchmarks/common/test.ld +++ b/benchmarks/common/test.ld @@ -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 3f1d04a..70f5e06 160000 --- a/env +++ b/env @@ -1 +1 @@ -Subproject commit 3f1d04a2e8f849c306bdca7c7115462c3a60a6e0 +Subproject commit 70f5e06eef154a1eaeb65d3f034c1857771100ff -- cgit v1.1