aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/mm
diff options
context:
space:
mode:
authorYunsup Lee <yunsup@cs.berkeley.edu>2015-03-17 14:38:04 -0700
committerYunsup Lee <yunsup@cs.berkeley.edu>2015-03-17 14:38:04 -0700
commit211e4fcdc93654fc810cff0b6864fdc7097919dc (patch)
tree4b21fdfd1653f1adc65be9ec7de7dd96df6d9f14 /benchmarks/mm
parentca4f7ce11774eac3f03465f8d9243ce6b23c815b (diff)
downloadriscv-tests-211e4fcdc93654fc810cff0b6864fdc7097919dc.zip
riscv-tests-211e4fcdc93654fc810cff0b6864fdc7097919dc.tar.gz
riscv-tests-211e4fcdc93654fc810cff0b6864fdc7097919dc.tar.bz2
need fence before scall for vector mm
Diffstat (limited to 'benchmarks/mm')
-rw-r--r--benchmarks/mm/mm_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmarks/mm/mm_main.c b/benchmarks/mm/mm_main.c
index 4fb1b1b..1f4e28b 100644
--- a/benchmarks/mm/mm_main.c
+++ b/benchmarks/mm/mm_main.c
@@ -55,6 +55,8 @@ void thread_entry(int cid, int nc)
}
}
+ asm volatile("fence");
+
printf("C%d: reg block %dx%dx%d, cache block %dx%dx%d\n",
cid, RBM, RBN, RBK, CBM, CBN, CBK);
printf("C%d: %d instructions\n", cid, (int)(instret));