From: Yunsup Lee Date: Tue, 17 Mar 2015 21:38:04 +0000 (-0700) Subject: need fence before scall for vector mm X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=211e4fcdc93654fc810cff0b6864fdc7097919dc;p=riscv-tests.git need fence before scall for vector mm --- 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));