Benchmarks now run in user-mode.
[riscv-tests.git] / benchmarks / multiply / multiply_main.c
index f2ce12bdd04d951959dba14179eb763314ddcaa5..ca359eb88cc8405ef7d2d8bb0036e339444f21ec 100644 (file)
@@ -10,6 +10,9 @@
 
 #include "multiply.h"
 
+int ncores = 1;
+#include "util.h"
+
 //--------------------------------------------------------------------------
 // Macros
 
@@ -76,20 +79,6 @@ void printArray( char name[], int n, int arr[] )
 }
 #endif
 
-void finishTest( int toHostValue )
-{
-#if HOST_DEBUG
-  if ( toHostValue == 1 )
-    printf( "*** PASSED ***\n" );
-  else
-    printf( "*** FAILED *** (tohost = %d)\n", toHostValue );
-  exit(0);
-#else
-  asm( "mtpcr %0, tohost" : : "r" (toHostValue) );
-  while ( 1 ) { }
-#endif
-}
-
 void setStats( int enable )
 {
 #if ( !HOST_DEBUG && SET_STATS )