X-Git-Url: https://git.libre-soc.org/?p=riscv-tests.git;a=blobdiff_plain;f=benchmarks%2Fcommon%2Fsyscalls.c;h=b1c100dd10ce0830bc4ac68c921cd397f8bfd316;hp=12dab700af9b2e5b339d5dcbd42e3efcdca4a948;hb=211d78276b07b17f831cefaf79961d3e6dad3c90;hpb=dd0d4036430dc812c9168fad8870d58ce151f498;ds=sidebyside 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]);