diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-04-21 14:57:42 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-04-21 14:57:42 -0700 |
commit | bcf83a88846468dcb294e2646270f433d967cf26 (patch) | |
tree | 1cfd4da40a0b590d6ab20d460a75d132be5e2d42 /benchmarks/common | |
parent | 4496a12c2f0bca74d47c633cc5f970d214a3433a (diff) | |
download | riscv-tests-bcf83a88846468dcb294e2646270f433d967cf26.zip riscv-tests-bcf83a88846468dcb294e2646270f433d967cf26.tar.gz riscv-tests-bcf83a88846468dcb294e2646270f433d967cf26.tar.bz2 |
Fix benchmark compilation/execution on RV32
Diffstat (limited to 'benchmarks/common')
-rw-r--r-- | benchmarks/common/syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/common/syscalls.c b/benchmarks/common/syscalls.c index b1c100d..4c494f1 100644 --- a/benchmarks/common/syscalls.c +++ b/benchmarks/common/syscalls.c @@ -66,7 +66,7 @@ static void tohost_exit(int code) while (1); } -long handle_trap(long cause, long epc, long regs[32]) +long handle_trap(long cause, long epc, long long regs[32]) { int* csr_insn; asm ("jal %0, 1f; csrr a0, stats; 1:" : "=r"(csr_insn)); |