From 1cb46c9d6adbe4271314fddd765d49ce37681ca1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 16 May 2022 16:25:14 +0200 Subject: treebench: do not use loop mode --- src/app/treebench/Makefile.inc | 4 ---- 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; } -- cgit v1.2.3