projects
/
riscv-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix RV32 handling of syscall arguments
[riscv-tests.git]
/
benchmarks
/
common
/
syscalls.c
diff --git
a/benchmarks/common/syscalls.c
b/benchmarks/common/syscalls.c
index 0975acd44c3f131e47aed65ddf8a0fa319aab4f4..ce6d6535176ca80f62900ddd865244c2a5b22252 100644
(file)
--- a/
benchmarks/common/syscalls.c
+++ b/
benchmarks/common/syscalls.c
@@
-66,7
+66,7
@@
void tohost_exit(long code)
while (1);
}
while (1);
}
-long handle_trap(long cause, long epc, long
long
regs[32])
+long handle_trap(long cause, long epc, long regs[32])
{
int* csr_insn;
asm ("jal %0, 1f; csrr a0, stats; 1:" : "=r"(csr_insn));
{
int* csr_insn;
asm ("jal %0, 1f; csrr a0, stats; 1:" : "=r"(csr_insn));