projects
/
riscv-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge [shm]call into ecall, [shm]ret into eret
[riscv-tests.git]
/
benchmarks
/
common
/
syscalls.c
diff --git
a/benchmarks/common/syscalls.c
b/benchmarks/common/syscalls.c
index 12dab700af9b2e5b339d5dcbd42e3efcdca4a948..b1c100dd10ce0830bc4ac68c921cd397f8bfd316 100644
(file)
--- 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_
S
CALL)
+ else if (cause != CAUSE_
E
CALL)
tohost_exit(1337);
else if (regs[17] == SYS_exit)
tohost_exit(regs[10]);