Commit 1cb46c9d authored by Daniel Friesel's avatar Daniel Friesel
Browse files

treebench: do not use loop mode

parent 71e891f2
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -3,7 +3,3 @@
# Copyright 2020 Daniel Friesel
#
# SPDX-License-Identifier: CC0-1.0

ifdef app
	loop = 1
endif
+8 −9
Original line number Diff line number Diff line
@@ -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;
}