Merge [shm]call into ecall, [shm]ret into eret
[riscv-tests.git] / benchmarks / common / syscalls.c
index 12dab700af9b2e5b339d5dcbd42e3efcdca4a948..b1c100dd10ce0830bc4ac68c921cd397f8bfd316 100644 (file)
@@ -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]);