aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/common
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/common')
-rw-r--r--benchmarks/common/crt.S4
-rw-r--r--benchmarks/common/syscalls.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/benchmarks/common/crt.S b/benchmarks/common/crt.S
index debee6d..19ff3b2 100644
--- a/benchmarks/common/crt.S
+++ b/benchmarks/common/crt.S
@@ -135,7 +135,7 @@ _start:
la t0, _init
csrw mepc, t0
- mret
+ eret
trap_entry:
addi sp, sp, -272
@@ -211,7 +211,7 @@ trap_entry:
LREG x31, 248(sp)
addi sp, sp, 272
- mret
+ eret
.section ".tdata.begin"
.globl _tdata_begin
diff --git a/benchmarks/common/syscalls.c b/benchmarks/common/syscalls.c
index 12dab70..b1c100d 100644
--- a/benchmarks/common/syscalls.c
+++ b/benchmarks/common/syscalls.c
@@ -75,7 +75,7 @@ long handle_trap(long cause, long epc, long regs[32])
if (cause == CAUSE_ILLEGAL_INSTRUCTION &&
(*(int*)epc & *csr_insn) == *csr_insn)
;
- else if (cause != CAUSE_SCALL)
+ else if (cause != CAUSE_ECALL)
tohost_exit(1337);
else if (regs[17] == SYS_exit)
tohost_exit(regs[10]);