Commit 06f522a3 authored by Christian Eichler's avatar Christian Eichler
Browse files

Flush instruction cache before starting the benchmark

parent bf7f02eb
......@@ -103,6 +103,10 @@ static void command_bch(char *arg) {
__set_BASEPRI(1 << (8 - __NVIC_PRIO_BITS));
gene_init();
// flush instruction cache prior to executing the benchmark to
// ensure a "clean" system state
XMC_PREFETCH_InvalidateInstructionBuffer();
timer_start();
gene_main(val);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment