diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/app/treebench/Makefile.inc | 4 | ||||
-rw-r--r-- | src/app/treebench/main.cc | 17 |
2 files changed, 8 insertions, 13 deletions
diff --git a/src/app/treebench/Makefile.inc b/src/app/treebench/Makefile.inc index 0eea52a..1bb6754 100644 --- a/src/app/treebench/Makefile.inc +++ b/src/app/treebench/Makefile.inc @@ -3,7 +3,3 @@ # Copyright 2020 Daniel Friesel # # SPDX-License-Identifier: CC0-1.0 - -ifdef app - loop = 1 -endif diff --git a/src/app/treebench/main.cc b/src/app/treebench/main.cc index e2ddfe3..fc8ffc5 100644 --- a/src/app/treebench/main.cc +++ b/src/app/treebench/main.cc @@ -11,22 +11,21 @@ #include "tree.c.inc" -void loop(void) +int main(void) { + arch.setup(); + gpio.setup(); + kout.setup(); + counter.start(); counter.stop(); kout << "nop @ " << counter.value << "/" << counter.overflow << " cycles" << endl << endl; run_benchmark(); -} - -int main(void) -{ - arch.setup(); - gpio.setup(); - kout.setup(); - arch.idle_loop(); + while (1) { + arch.idle(); + } return 0; } |