Clean up benchmarks; support uarch-specific counters
[riscv-tests.git] / benchmarks / spmv / bmark.mk
index 5ab9cc0feaaa450796001b198ebcb5aa3dc063dd..dcfdb19abaaf63ae0030c72486b4a857d596574c 100644 (file)
@@ -10,6 +10,7 @@
 
 spmv_c_src = \
        spmv_main.c \
+       syscalls.c \
 
 spmv_riscv_src = \
        crt.S \
@@ -23,7 +24,7 @@ $(spmv_host_bin) : $(spmv_c_src)
 
 spmv_riscv_bin = spmv.riscv
 $(spmv_riscv_bin) : $(spmv_c_objs) $(spmv_riscv_objs)
-       $(RISCV_LINK) $(spmv_c_objs) $(spmv_riscv_objs) -o $(spmv_riscv_bin)
+       $(RISCV_LINK) $(spmv_c_objs) $(spmv_riscv_objs) -o $(spmv_riscv_bin) $(RISCV_LINK_OPTS)
 
 junk += $(spmv_c_objs) $(spmv_riscv_objs) \
         $(spmv_host_bin) $(spmv_riscv_bin)