aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/mm
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/mm')
-rw-r--r--benchmarks/mm/mm_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/benchmarks/mm/mm_main.c b/benchmarks/mm/mm_main.c
index 8b6a093..4d08b15 100644
--- a/benchmarks/mm/mm_main.c
+++ b/benchmarks/mm/mm_main.c
@@ -31,11 +31,11 @@ void thread_entry(int cid, int nc)
size_t instret, cycles;
for (int i = 0; i < R; i++)
{
- instret = -rdinstret();
- cycles = -rdcycle();
+ instret = -read_csr(minstret);
+ cycles = -read_csr(mcycle);
mm(m, n, p, a, p, b, n, c, n);
- instret += rdinstret();
- cycles += rdcycle();
+ instret += read_csr(minstret);
+ cycles += read_csr(mcycle);
}
asm volatile("fence");